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 15210b6e68
commit f6bd12c582
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