sway: Fix DPMS key binding

This commit is contained in:
Simon Bruder 2021-10-06 19:41:00 +02:00
parent 9743f7050f
commit cd2295ad7c
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -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