diff --git a/power b/power new file mode 100755 index 0000000..9512bcb --- /dev/null +++ b/power @@ -0,0 +1,17 @@ +#!/bin/sh + +off() { + systemctl poweroff +} +reboot() { + systemctl reboot +} + +opt=`printf 'Off\nReboot' | dmenu -i -p 'Power option'` +if [ -z "$opt"]; then exit 0;fi +if [ "$opt" = "Off" ] +then + off +else + reboot +fi