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,18 @@
# Script: pulseaudio-simple
A script that shows the PulseAudio volume.
## Dependencies
* `pamixer`
## Module
```ini
[module/pulseaudio-simple]
type = custom/script
exec = ~/polybar-scripts/pulseaudio-simple.sh
interval = 3
```

View File

@@ -0,0 +1,15 @@
#!/bin/sh
muted=$(pamixer --sink 0 --get-mute)
if [ "$muted" = true ]; then
echo "#1 --"
else
volume=$(pamixer --sink 0 --get-volume)
if [ "$volume" -gt 49 ]; then
echo "#2 $volume %"
else
echo "#3 $volume %"
fi
fi