+ Added scripts directory
This commit is contained in:
parent
c42020a930
commit
08332199a2
23 changed files with 547 additions and 0 deletions
23
.scripts/prompt
Executable file
23
.scripts/prompt
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
#--- Option ------------------
|
||||
cancel=""
|
||||
suspend=""
|
||||
log_out=""
|
||||
restart=""
|
||||
shutdown=""
|
||||
#--- Choices -----------------
|
||||
choice="$cancel
|
||||
$shutdown
|
||||
$restart
|
||||
$suspend
|
||||
$log_out"
|
||||
|
||||
chosen=$(echo -en "$choice" | rofi -selected-row 0 -dmenu -i -theme ~/.config/rofi/theme/Android/five.rasi)
|
||||
|
||||
case "$chosen" in
|
||||
$cancel) ;;
|
||||
$log_out) bspc quit ;;
|
||||
$suspend) systemctl suspend ;;
|
||||
$restart) systemctl reboot ;;
|
||||
$shutdown) systemctl poweroff ;;
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue