add hibernate option

This commit is contained in:
tristan 2023-05-18 08:21:36 +01:00
parent a4e239898c
commit 6b601bfa4b
2 changed files with 17 additions and 1 deletions

View file

@ -226,10 +226,12 @@ in
name = "lock";
text = ''
res=$(echo "lock
sleep" | ${my-deps.menu})
sleep
hibernate" | ${my-deps.menu})
case $res in
lock) swaylock;;
sleep) systemctl suspend;;
hibernate) systemctl hibernate;;
esac
'';
hotkeys = [