feat(waybar): add config

This commit is contained in:
2026-03-12 17:43:03 +01:00
parent f82afb4611
commit d7cb42a64c
6 changed files with 498 additions and 0 deletions

12
waybar/scripts/mic-status.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# mic volume for waybar custom module
vol=$(pamixer --default-source --get-volume 2>/dev/null || echo 0)
muted=$(pamixer --default-source --get-mute 2>/dev/null || echo false)
if [[ "$muted" == "true" ]]; then
printf '{"text": "󰍭", "class": "muted", "tooltip": "mic muted"}\n'
else
printf '{"text": "󰍬 %d%%", "class": "", "tooltip": "mic %d%%"}\n' "$vol" "$vol"
fi