Updated i3quit script
This commit is contained in:
parent
1e475daa8b
commit
b63236470c
2 changed files with 20 additions and 5 deletions
14
Bin/i3quit.sh
Executable file
14
Bin/i3quit.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
# a simple logout dialog
|
||||
|
||||
# launch exit menu
|
||||
choice=`echo -e "0: Logout\n1: Shutdown\n2: Suspend\n3: Reboot\n4: Cancel" | rofi -dmenu -p "select an action" | cut -d ':' -f 1`
|
||||
|
||||
# execute the choice in background
|
||||
case "$choice" in
|
||||
0) i3-msg exit & ;;
|
||||
1) systemctl poweroff & ;;
|
||||
2) systemctl suspend & ;;
|
||||
3) systemctl reboot & ;;
|
||||
4) exit ;;
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue