mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
Add castero, cmus, dmenufm, zathura config
This commit is contained in:
parent
f407ac09bc
commit
ae217b0fe1
19 changed files with 728 additions and 346 deletions
|
|
@ -1,13 +1,12 @@
|
|||
#!/bin/sh
|
||||
declare options=("Shut Down
|
||||
Reboot
|
||||
declare options=("Poweroff
|
||||
Lock
|
||||
Logout
|
||||
Suspend
|
||||
Lock Screen")
|
||||
Reboot")
|
||||
|
||||
choice=$(echo -e "${options[@]}" | dmenu -p 'Power' $@)
|
||||
case "$choice" in
|
||||
"Shut Down")
|
||||
"Poweroff")
|
||||
declare opt=("Yes\nNo")
|
||||
yesno=$(echo -e "${opt[@]}" | dmenu -p 'Power' $@)
|
||||
case "$yesno" in
|
||||
|
|
@ -15,11 +14,11 @@ case "$choice" in
|
|||
"No") exec exit 0 ;;
|
||||
esac
|
||||
;;
|
||||
"Reboot")
|
||||
"Lock")
|
||||
declare opt=("Yes\nNo")
|
||||
yesno=$(echo -e "${opt[@]}" | dmenu -p 'Power' $@)
|
||||
case "$yesno" in
|
||||
"Yes") exec systemctl reboot ;;
|
||||
"Yes") exec betterlockscreen --off 300 -t "Computer is lockerd" -l;;
|
||||
"No") exec exit 0 ;;
|
||||
esac
|
||||
;;
|
||||
|
|
@ -37,11 +36,11 @@ case "$choice" in
|
|||
"No") exec exit 0 ;;
|
||||
esac
|
||||
;;
|
||||
"Lock Screen")
|
||||
"Reboot")
|
||||
declare opt=("Yes\nNo")
|
||||
yesno=$(echo -e "${opt[@]}" | dmenu -p 'Power' $@)
|
||||
case "$yesno" in
|
||||
"Yes") exec loginctl lock-session $XDG_SESSION_ID ;;
|
||||
"Yes") exec systemctl reboot ;;
|
||||
"No") exec exit 0 ;;
|
||||
esac
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue