added quickshell and updated zsh

This commit is contained in:
2026-08-17 23:16:05 -07:00
parent 9bca669f4e
commit 1f3dde6de2
55 changed files with 4251 additions and 381 deletions

View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
# Read audio volume & mute state
volume=50
muted=false
if command -v pactl &>/dev/null; then
vol_str=$(pactl get-sink-volume @DEFAULT_SINK@ 2>/dev/null | grep -Po '[0-9]+(?=%)' | head -n 1)
if [ -n "$vol_str" ]; then
volume=$vol_str
fi
mute_str=$(pactl get-sink-mute @DEFAULT_SINK@ 2>/dev/null)
if echo "$mute_str" | grep -q "yes"; then
muted=true
fi
elif command -v pamixer &>/dev/null; then
volume=$(pamixer --get-volume 2>/dev/null || echo 50)
muted=$(pamixer --get-mute 2>/dev/null || echo false)
fi
echo "{\"volume\": $volume, \"muted\": $muted}"