1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-04-20 08:37:49 +02:00

Compare commits

...

3 Commits

3 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,7 @@
#!/bin/sh #!/bin/sh
sensors | awk '/Core 0/ {print " " $3}' if [ "$1" = "amd" ]; then
sensors | awk '/Tctl/ {print " " $2}'
elif [ "$1" = "intel" ]; then
sensors | awk '/Core 0/ {print " " $3}'
fi

View File

@ -1,7 +1,7 @@
#!/usr/bin/env sh #!/usr/bin/env sh
# #
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="" [ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon=" -%"
[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "", int($3 * 100 / 70) "%" }') [ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "", int($3 * 100 / 70) "%" }')

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
vol=$(pulsemixer --get-volume | awk '{print $1}') vol="$(pulsemixer --get-volume | awk '{print $1}')"
if [ "$vol" -eq "0" ]; then if [ "$vol" -eq "0" ]; then
icon="" icon=""
@ -10,7 +10,7 @@ else
icon="" icon=""
fi fi
[ "$(pulsemixer --get-mute)" = "1" ] && icon="" && vol="M" [ "$(pulsemixer --get-mute)" = "1" ] && icon="" && vol="-"
if amixer get Capture | tail -2 | grep -q '\[on\]'; then if amixer get Capture | tail -2 | grep -q '\[on\]'; then
mic="" mic=""
@ -18,4 +18,4 @@ else
mic="" mic=""
fi fi
printf "%s %s %s\\n" "$vol" "$icon" "$mic" printf "%s %s %s\\n" "$mic" "$icon" "$vol%"