sway: Fix DPMS key binding
This commit is contained in:
parent
9743f7050f
commit
cd2295ad7c
|
@ -159,7 +159,7 @@ in
|
|||
|
||||
# Locking and DPMS
|
||||
"${cfg.modifier}+y" = "exec ${pkgs.swaylock}/bin/swaylock -f -i ${wallpaper}";
|
||||
"--locked ${cfg.modifier}+q" = ''exec 'test $(swaymsg -t get_outputs | ${pkgs.jq}/bin/jq "[.[].dpms] | any") = "true" && swaymsg "output * dpms off" || swaymsg "output * dpms on"'';
|
||||
"--no-repeat --locked ${cfg.modifier}+q" = ''exec 'test $(swaymsg -t get_outputs | ${pkgs.jq}/bin/jq "[.[].dpms] | any") = "true" && swaymsg "output * dpms off" || swaymsg "output * dpms on"'';
|
||||
};
|
||||
|
||||
bars = [ ]; # managed as systemd user unit
|
||||
|
|
Loading…
Reference in a new issue