black and white it is

master
TiynGER 5 years ago
parent a8f027e974
commit 356f9c5077

@ -11,4 +11,4 @@ status=$(cat /sys/class/power_supply/"$1"/status)
[ "$status" = "Charging" ] && color="#ffffff" [ "$status" = "Charging" ] && color="#ffffff"
printf "%s%s" "$(echo "$status" | sed -e "s/,//;s/Discharging/🔋/;s/Not Charging/🛑/;s/Charging/🔌/;s/Unknown/🛑/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/' ) " printf "%s%s" "$(echo "$status" | sed -e "s/,//;s/Discharging//;s/Not Charging//;s/Charging//;s/Unknown//;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/' ) "

@ -2,4 +2,4 @@
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
date +"%d %b %H:%M" date +"%d %b %H:%M"

@ -2,4 +2,4 @@
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
sensors | awk '/Core 0/ {print $3}' sensors | awk '/Core 0/ {print " " $3}'

@ -5,9 +5,10 @@
# $2 is optional icon, otherwise mountpoint will displayed # $2 is optional icon, otherwise mountpoint will displayed
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
[ -z "$1" ] && exit disk="/"
[ ! -z "$1" ] && disk="$1"
icon="$2" icon="$2"
[ -z "$2" ] && icon="$1" [ -z "$2" ] && icon="$disk"
printf "%s: %s\n" "$icon" "$(df -h "$1" | awk ' /[0-9]/ {print $3 "/" $2}')" printf " %s %s\n" "$icon" "$(df -h "$disk" | awk ' /[0-9]/ {print $3 "/" $2}')"

@ -2,8 +2,8 @@
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
[ "$(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) "%" }')
printf "%s %s\n" "$wifiicon" "$(cat /sys/class/net/e*/operstate | sed "s/down/❎/;s/up/🌐/")" printf "%s %s\n" "$(cat /sys/class/net/e*/operstate | sed "s/down//;s/up//")" "$wifiicon"

@ -2,4 +2,4 @@
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
free -h | awk '/^Mem:/ {print $3 "/" $2}' free -h | awk '/^Mem:/ {print " " $3 "/" $2}'

@ -2,16 +2,16 @@
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
[ "$(pulsemixer --get-mute)" = "1" ] && printf "🔇\\n" && exit [ "$(pulsemixer --get-mute)" = "1" ] && printf "\\n" && exit
vol=$(pulsemixer --get-volume | awk '{print $1}') vol=$(pulsemixer --get-volume | awk '{print $1}')
if [ "$vol" -gt "70" ]; then if [ "$vol" -gt "70" ]; then
icon="🔊" icon=""
elif [ "$vol" -lt "30" ]; then elif [ "$vol" -lt "30" ]; then
icon="🔈" icon=""
else else
icon="🔉" icon=""
fi fi
printf "%s %s\\n" "$vol" "$icon" printf "%s %s\\n" "$vol" "$icon"

Loading…
Cancel
Save