1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Add cool power-menu script from the interwebs somewhere

This commit is contained in:
2016-04-02 18:59:24 +01:00
parent 6ff8f4688a
commit 4afb857a0e
2 changed files with 14 additions and 1 deletions

13
.config/i3/powermenu.sh Executable file
View File

@ -0,0 +1,13 @@
#!/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