Cleaned up scripts folder and moved some stuff
This commit is contained in:
parent
d003263cb6
commit
02642f9dc6
33 changed files with 42 additions and 142 deletions
30
home/.config/sway/scripts/exit.sh
Executable file
30
home/.config/sway/scripts/exit.sh
Executable file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
|
||||
RESP=$(cat <<EOF | fzf +s --tac
|
||||
Shutdown
|
||||
Reboot
|
||||
Suspend
|
||||
Lock
|
||||
Exit
|
||||
EOF
|
||||
);
|
||||
|
||||
case "$RESP" in
|
||||
Shutdown)
|
||||
systemctl poweroff
|
||||
;;
|
||||
Reboot)
|
||||
systemctl reboot
|
||||
;;
|
||||
Suspend)
|
||||
systemctl suspend
|
||||
;;
|
||||
Lock)
|
||||
loginctl lock-session $(loginctl show-user $USER -p Sessions | cut -d'=' -f2)
|
||||
;;
|
||||
Exit)
|
||||
swaymsg exit
|
||||
;;
|
||||
*)
|
||||
exit 1
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue