Modernize i3 setup: alacritty, dunst, rofi, i3blocks, blurlock, picom updates

This commit is contained in:
2026-02-15 06:05:55 +01:00
parent a4dad1f508
commit 0b9647b407
17 changed files with 139 additions and 73 deletions

View File

@@ -0,0 +1,25 @@
#!/bin/bash
VOLUME=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -o '[0-9]*%' | head -1)
MUTE=$(pactl get-sink-mute @DEFAULT_SINK@ | awk '{print $2}')
if [[ "${MUTE}" == "yes" ]]; then
echo " MUTE"
echo " MUTE"
echo "#FF6666"
else
VOL_NUM=${VOLUME%\%}
echo " ${VOLUME}"
echo " ${VOLUME}"
if (( VOL_NUM > 80 )); then
echo "#FFBF00"
else
echo "#33CC33"
fi
fi
case $BLOCK_BUTTON in
3) pactl set-sink-mute @DEFAULT_SINK@ toggle ;;
4) pactl set-sink-volume @DEFAULT_SINK@ +5% ;;
5) pactl set-sink-volume @DEFAULT_SINK@ -5% ;;
esac