power menu, redshift, polybar
This commit is contained in:
16
.config/polybar/scripts/dunst-snooze/README.md
Normal file
16
.config/polybar/scripts/dunst-snooze/README.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Script: dunst-snooze
|
||||
|
||||
A script to disable/enable Dunst notifications. When disabled, notifications will still be created and saved by dunst until you enable it again.
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
## Module
|
||||
```ini
|
||||
[module/dunst-snooze]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/dunst-snooze.sh
|
||||
interval = 10
|
||||
click-left = ~/polybar-scripts/dunst-snooze.sh --toggle &
|
||||
```
|
||||
14
.config/polybar/scripts/dunst-snooze/dunst-snooze.sh
Normal file
14
.config/polybar/scripts/dunst-snooze/dunst-snooze.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
--toggle)
|
||||
dunstctl set-paused toggle
|
||||
;;
|
||||
*)
|
||||
if [ "$(dunstctl is-paused)" = "true" ]; then
|
||||
echo "#1"
|
||||
else
|
||||
echo "#2"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
BIN
.config/polybar/scripts/dunst-snooze/screenshots/1.png
Normal file
BIN
.config/polybar/scripts/dunst-snooze/screenshots/1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 756 B |
BIN
.config/polybar/scripts/dunst-snooze/screenshots/2.png
Normal file
BIN
.config/polybar/scripts/dunst-snooze/screenshots/2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 955 B |
Reference in New Issue
Block a user