i3: Use --release

This commit is contained in:
Geoffrey Frogeye 2024-03-09 19:02:57 +01:00
parent 2fa993ad2d
commit 82bafb3428
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
2 changed files with 2 additions and 4 deletions

View file

@ -45,8 +45,7 @@ in
xsession.windowManager.i3.config = {
keybindings = {
# Screen off commands
"${mod}+F1" = "exec --no-startup-id ${pkgs.bash}/bin/sh -c \"${pkgs.coreutils}/bin/sleep .25 && ${pkgs.xorg.xset}/bin/xset dpms force off\"";
# TODO --release?
"${mod}+F1" = "--release exec --no-startup-id ${pkgs.xorg.xset}/bin/xset dpms force off";
"${mod}+F4" = "exec --no-startup-id ${pkgs.xautolock}/bin/xautolock -disable";
"${mod}+F5" = "exec --no-startup-id ${pkgs.xautolock}/bin/xautolock -enable";
};

View file

@ -10,8 +10,7 @@ in
xsession.windowManager.i3.config.keybindings = {
"Print" = "exec ${scrot} --focused";
"${mod}+Print" = "exec ${scrot}";
"Ctrl+Print" = "exec ${pkgs.coreutils}/bin/sleep 1 && ${scrot} --select";
# TODO Try using bindsym --release instead of sleep
"Ctrl+Print" = "--release exec ${scrot} --select";
};
};
}