f4aa5d265c
- delete '.sh' from name - edit screenshot script * use rofi instead of dmenu * add notification * fix area mode - few changes in polybar config and updot
12 lines
279 B
Bash
Executable File
12 lines
279 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
WHAT="$(printf "Shutdown\nSuspend\nLock\nReboot" | dmenu -i -p 'What do you want?')"
|
|
if [ -z "$WHAT" ]; then exit; fi
|
|
|
|
case "$WHAT" in
|
|
Shutdown) systemctl poweroff;;
|
|
Suspend) systemctl suspend;;
|
|
Lock) sh ~/.scripts/lockscreen.sh;;
|
|
*) systemctl reboot
|
|
esac
|