diff options
author | Arseniy Seroka <jagajaga@users.noreply.github.com> | 2015-10-27 12:51:50 +0300 |
---|---|---|
committer | Arseniy Seroka <jagajaga@users.noreply.github.com> | 2015-10-27 12:51:50 +0300 |
commit | 50f5122d7210526fa23de41d5d4a06d8183e5cb2 (patch) | |
tree | 908ab4a9f0d37abc99b45a0707f20a9134bd20f1 /nixos | |
parent | 16c6420c257b239c1978fdcb5ea060351722b73c (diff) | |
parent | eb46e0fc7249e304dd6d4b3bdec2d7a07c7a9b84 (diff) | |
download | nixlib-50f5122d7210526fa23de41d5d4a06d8183e5cb2.tar nixlib-50f5122d7210526fa23de41d5d4a06d8183e5cb2.tar.gz nixlib-50f5122d7210526fa23de41d5d4a06d8183e5cb2.tar.bz2 nixlib-50f5122d7210526fa23de41d5d4a06d8183e5cb2.tar.lz nixlib-50f5122d7210526fa23de41d5d4a06d8183e5cb2.tar.xz nixlib-50f5122d7210526fa23de41d5d4a06d8183e5cb2.tar.zst nixlib-50f5122d7210526fa23de41d5d4a06d8183e5cb2.zip |
Merge pull request #10635 from layus/i3log
i3wm: Add debug & logging options
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/x11/window-managers/i3.nix | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/window-managers/i3.nix b/nixos/modules/services/x11/window-managers/i3.nix index e85c3bce591d..510997e76af8 100644 --- a/nixos/modules/services/x11/window-managers/i3.nix +++ b/nixos/modules/services/x11/window-managers/i3.nix @@ -23,6 +23,23 @@ in If left at the default value, $HOME/.i3/config will be used. ''; }; + + debug = mkOption { + default = false; + example = true; + type = types.bool; + description = "Enable debug/verbose logging (see -V option)"; + }; + + logFile = mkOption { + default = null; + example = "$HOME/.i3/i3log"; + type = types.string; + description = '' + Path to a logfile for i3. + If left at the default value, logs will appear in display-manager.service's logs. + ''; + }; }; }; @@ -32,7 +49,11 @@ in name = "i3"; start = '' ${pkgs.i3}/bin/i3 ${optionalString (cfg.configFile != null) - "-c \"${cfg.configFile}\"" + ''-c "${cfg.configFile}"'' + } ${optionalString cfg.debug + ''-V'' + } ${optionalString (cfg.logFile != null) + ''>> "${cfg.logFile}"'' } & waitPID=$! ''; |