mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
14 lines
358 B
Bash
14 lines
358 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
option=$(echo " lock| logout| sleep| shutdown| restart" | rofi -sep "|" -dmenu -i -p "" -auto-select -hide-scrollbar -monitor 0 -width 8 -location 3 | xargs)
|
||
|
|
||
|
case $option in
|
||
|
lock) ./lock.sh;;
|
||
|
logout) i3-msg exit;;
|
||
|
restart) reboot;;
|
||
|
sleep) systemctl suspend;;
|
||
|
shutdown) poweroff;;
|
||
|
esac
|
||
|
|
||
|
exit 0
|