Major Update: created v4, new configs: alacritty, polybar, i3, and more.

This commit is contained in:
Keyitdev
2025-07-23 16:32:36 +02:00
parent fa1bbd4502
commit 7dcd9a13ad
451 changed files with 1380 additions and 7802 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
dir_icons="/usr/local/bin/icons"
vol_quiet=33
vol_loud=66
cur_vol_left=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -o '[0-9]\+%' | sed -n '1p'| sed 's/%//g')
cur_vol_right=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -o '[0-9]\+%' | sed -n '2p' | sed 's/%//g')
cur_vol_average=$(((cur_vol_left+cur_vol_right)/2))
mute=$(pactl get-sink-mute @DEFAULT_SINK@ | sed -n 's/^Mute: //p')
if [ "$mute" = "yes" ]; then
dunstify "Speakers" "Speakers are muted" -r 100 -i "$dir_icons"/volume-x.svg
elif [ "$mute" = "no" ]; then
if [ "$cur_vol_average" -le "$vol_quiet" ]; then
dunstify "Speakers" "Speakers are unmuted" -r 100 -i "$dir_icons"/volume.svg
elif [ "$cur_vol_average" -gt "$vol_quiet" ] && [ "$cur_vol_average" -le "$vol_loud" ]; then
dunstify "Speakers" "Speakers are unmuted" -r 100 -i "$dir_icons"/volume-1.svg
elif [ "$cur_vol_average" -gt "$vol_loud" ]; then
dunstify "Speakers" "Speakers are unmuted" -r 100 -i "$dir_icons"/volume-2.svg
fi
fi