This commit is contained in:
2026-01-05 10:57:27 +04:00
parent 842e1c94f2
commit cc03ff37c4
25 changed files with 373 additions and 114 deletions

18
.scripts/dwmblocks/volume_mic Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/env bash
colors_path=$HOME/.cache/wal/colors.sh
vol=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk -F "Volume: " '{print $2}')
vol=$(echo "$vol * 100" | bc)
vol=$(printf "%.0f" "$vol")
mic=$(wpctl get-volume @DEFAULT_SOURCE@ | awk -F "Volume: " '{print $2}')
mic=$(echo "$mic * 100" | bc)
mic=$(printf "%.0f" "$mic")
if [ -f "$colors_path" ]; then
source $colors_path
echo "^b$color1^^c$color0^  $vol ^d^^b$color8^^c$color0^  $mic ^d^"
fi