power menu, redshift, polybar

This commit is contained in:
azpsen
2024-01-28 16:37:10 -06:00
parent 89516a6ce1
commit 319b44ecbd
307 changed files with 7642 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
# Script: popup-powermenu
A popup menu made with Yad that provides a window giving options to shutdown, reboot, logout.
## Dependencies
* [`yad`](https://sourceforge.net/projects/yad-dialog/)
## Module
```ini
[module/popup-powermenu]
type = custom/script
exec = ~/polybar-scripts/popup-powermenu.sh
interval = 5
click-left = ~/polybar-scripts/popup-powermenu.sh --popup &
```

View File

@@ -0,0 +1,25 @@
#!/bin/sh
case "$1" in
--popup)
yad=$(yad --width 300 --entry --undecorated --title "System Logout" --image=gnome-shutdown --text "Choose action:" --entry-text "Shutdown" "Reboot" "Logout" "Suspend")
case "$yad" in
Shutdown)
poweroff
;;
Reboot)
reboot
;;
Suspend)
hibernate
;;
Logout)
bspc quit
;;
esac
;;
*)
echo "#1"
;;
esac