rofi, dunst configuration
This commit is contained in:
19
.config/rofi/scripts/powermenu.sh
Executable file
19
.config/rofi/scripts/powermenu.sh
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -n $@ ]]; then
|
||||
case $1 in
|
||||
'Logout')
|
||||
i3-msg exit;;
|
||||
'Suspend')
|
||||
systemctl suspend;;
|
||||
'Reboot')
|
||||
systemctl reboot;;
|
||||
'Shutdown')
|
||||
systemctl poweroff;;
|
||||
esac
|
||||
else
|
||||
echo -en "Logout\x00icon\x1fsystem-log-out\n"
|
||||
echo -en "Suspend\x00icon\x1fsystem-suspend\n"
|
||||
echo -en "Reboot\x00icon\x1fsystem-reboot\n"
|
||||
echo -en "Shutdown\x00icon\x1fsystem-shutdown\n"
|
||||
fi
|
Reference in New Issue
Block a user