feat: lock and suspend on screen close
This commit is contained in:
parent
51322327b8
commit
5b60fa3cc8
1 changed files with 3 additions and 0 deletions
|
|
@ -176,10 +176,13 @@
|
||||||
|
|
||||||
bindl = let
|
bindl = let
|
||||||
playerctl = lib.getExe' pkgs.playerctl "playerctl";
|
playerctl = lib.getExe' pkgs.playerctl "playerctl";
|
||||||
|
swaylock = lib.getExe pkgs.swaylock;
|
||||||
in [
|
in [
|
||||||
", XF86AudioPrev, exec, ${playerctl} previous"
|
", XF86AudioPrev, exec, ${playerctl} previous"
|
||||||
", XF86AudioPlay, exec, ${playerctl} play-pause"
|
", XF86AudioPlay, exec, ${playerctl} play-pause"
|
||||||
", XF86AudioNext, exec, ${playerctl} next"
|
", XF86AudioNext, exec, ${playerctl} next"
|
||||||
|
", switch:on:Lid Switch, exec, ${swaylock}"
|
||||||
|
", switch:on:Lid Switch, exec, systemctl suspend"
|
||||||
];
|
];
|
||||||
|
|
||||||
bindm = [
|
bindm = [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue