Moved sway to --user service and other fixes

Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
Marko Korhonen 2020-01-11 18:51:29 +02:00
parent daec7ef233
commit b98cc2a7e0
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
9 changed files with 64 additions and 96 deletions

View file

@ -1,29 +1,29 @@
#!/bin/bash
RESP=$(cat <<EOF | fzf
Exit
RESP=$(cat <<EOF | fzf +s --tac
Shutdown
Reboot
Suspend
Lock
Reboot
Shutdown
Exit
EOF
);
case "$RESP" in
Exit)
swaymsg exit
;;
Suspend)
systemctl suspend
Shutdown)
systemctl poweroff
;;
Reboot)
systemctl reboot
;;
Shutdown)
systemctl poweroff
Suspend)
systemctl suspend
;;
Lock)
loginctl lock-session
loginctl lock-session $(loginctl show-user $USER -p Sessions | cut -d'=' -f2)
;;
Exit)
swaymsg exit
;;
*)
exit 1