Muh dotfiles

This commit is contained in:
2025-05-10 10:18:28 +03:00
commit 0f4558597e
84 changed files with 4306 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#!/usr/bin/bash
STATE=$(pactl get-source-mute @DEFAULT_SOURCE@)
NAME=$(pactl get-default-source | grep -Po '(?<=\.).*?(?=[_-]\d)')
VOL=$(pactl get-source-volume @DEFAULT_SOURCE@ | grep -Po '\d*(?=%)' | head -n1)
ICON='󱦊'; CLASS='unknown'
case $STATE in
"Mute: yes") ICON='󰍭'; CLASS='muted';;
"Mute: no") ICON='󰍬'; CLASS='unmuted';;
esac
echo '{"text": "'$ICON'", "alt": "'$ICON $VOL%'", "tooltip": "'${NAME//[-_]/ }'", "class": "'$CLASS'"}'