From de5cbb230dd53d42b9314b2fa7c7cf6fd2a5846f Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Mon, 2 Mar 2020 00:50:54 +0300 Subject: [PATCH] Update modules/workspace/i3/default.nix --- modules/workspace/i3/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/workspace/i3/default.nix b/modules/workspace/i3/default.nix index 5fe63b0..97b0a6f 100755 --- a/modules/workspace/i3/default.nix +++ b/modules/workspace/i3/default.nix @@ -2,6 +2,7 @@ let thm = config.themes.colors; apps = config.defaultApplications; + lock_fork = "swaylock -c ${builtins.substring 1 7 thm.bg}"; lock = pkgs.writeShellScript "lock" "swaymsg 'output * dpms off'; swaylock -c ${builtins.substring 1 7 thm.bg}; swaymsg 'output * dpms on'"; in { environment.sessionVariables._JAVA_AWT_WM_NONREPARENTING = "1"; @@ -86,7 +87,7 @@ in { { command = "${pkgs.cantata}/bin/cantata"; } { - command = "swayidle before-sleep '${lock}' lock '${lock}' unlock 'pkill -9 swaylock'"; + command = "swayidle -w before-sleep '${lock_fork}' lock '${lock_fork}' unlock 'pkill -9 swaylock'"; } ];