dwmblocks: update scripts to work with nerdfont, requiring trailing space, updated internet script to allow for WWAN

This commit is contained in:
2025-08-08 11:27:53 +02:00
parent a4a1f44e4e
commit 4779d4f566
4 changed files with 20 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ esac
vol="$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
# If muted, print  and exit.
[ "$vol" != "${vol%\[MUTED\]}" ] && echo  && exit
[ "$vol" != "${vol%\[MUTED\]}" ] && echo  && exit
vol="${vol#Volume: }"
@@ -30,10 +30,10 @@ split() {
vol="$(printf "%.0f" "$(split "$vol" ".")")"
case 1 in
$((vol >= 70)) ) icon="" ;;
$((vol >= 30)) ) icon="" ;;
$((vol >= 1)) ) icon="" ;;
* ) echo  && exit ;;
$((vol >= 70)) ) icon=" " ;;
$((vol >= 30)) ) icon=" " ;;
$((vol >= 1)) ) icon=" " ;;
* ) echo  && exit ;;
esac
echo "$icon$vol%"