diff options
Diffstat (limited to 'bin/power_menu')
| -rwxr-xr-x | bin/power_menu | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/power_menu b/bin/power_menu new file mode 100755 index 0000000..4e0fa79 --- /dev/null +++ b/bin/power_menu @@ -0,0 +1,17 @@ +#!/bin/bash + +# small power menu using rofi, i3, systemd and pm-utils +# (last 3 dependencies are adjustable below) +# tostiheld, 2016 + +poweroff_command="loginctl poweroff" +reboot_command="loginctl reboot" +logout_command="loginctl terminate-session" + +# you can customise the rofi command all you want ... +menu_command="fuzzel" + +options=$'poweroff\nreboot\nlogout' + +# ... because the essential options (-dmenu and -p) are added here +eval \$"$(echo "$options" | $menu_command --dmenu)_command" |
