Icon fixes
This commit is contained in:
parent
59716d53ef
commit
f6b77a9118
5 changed files with 25 additions and 23 deletions
|
@ -9,56 +9,56 @@ if [ $batLevel -le 20 ];
|
||||||
then
|
then
|
||||||
if [ $charging == "on-line" ];
|
if [ $charging == "on-line" ];
|
||||||
then
|
then
|
||||||
echo "<fn=3> $batLevel</fn>"
|
echo "<fn=3> </fn>"
|
||||||
else
|
else
|
||||||
echo "<fn=4> $batLevel</fn>"
|
echo "<fn=4> </fn>"
|
||||||
fi
|
fi
|
||||||
elif [ $batLevel -le 30 ];
|
elif [ $batLevel -le 30 ];
|
||||||
then
|
then
|
||||||
if [ $charging == "on-line" ];
|
if [ $charging == "on-line" ];
|
||||||
then
|
then
|
||||||
echo "<fn=3> $batLevel</fn>"
|
echo "<fn=3> </fn>"
|
||||||
else
|
else
|
||||||
echo "<fn=4> $batLevel</fn>"
|
echo "<fn=4> </fn>"
|
||||||
fi
|
fi
|
||||||
elif [ $batLevel -le 40 ];
|
elif [ $batLevel -le 40 ];
|
||||||
then
|
then
|
||||||
if [ $charging == "on-line" ];
|
if [ $charging == "on-line" ];
|
||||||
then
|
then
|
||||||
echo "<fn=3> $batLevel</fn>"
|
echo "<fn=3> </fn>"
|
||||||
else
|
else
|
||||||
echo "<fn=3> $batLevel</fn>"
|
echo "<fn=3> </fn>"
|
||||||
fi
|
fi
|
||||||
elif [ $batLevel -le 60 ];
|
elif [ $batLevel -le 60 ];
|
||||||
then
|
then
|
||||||
if [ $charging == "on-line" ];
|
if [ $charging == "on-line" ];
|
||||||
then
|
then
|
||||||
echo "<fn=3> $batLevel</fn>"
|
echo "<fn=3> </fn>"
|
||||||
else
|
else
|
||||||
echo "<fn=4> $batLevel</fn>"
|
echo "<fn=4> </fn>"
|
||||||
fi
|
fi
|
||||||
elif [ $batLevel -le 80 ];
|
elif [ $batLevel -le 80 ];
|
||||||
then
|
then
|
||||||
if [ $charging == "on-line" ];
|
if [ $charging == "on-line" ];
|
||||||
then
|
then
|
||||||
echo "<fn=3> $batLevel</fn>"
|
echo "<fn=3> </fn>"
|
||||||
else
|
else
|
||||||
echo "<fn=4> $batLevel</fn>"
|
echo "<fn=4> </fn>"
|
||||||
fi
|
fi
|
||||||
elif [ $batLevel -le 95 ];
|
elif [ $batLevel -le 95 ];
|
||||||
then
|
then
|
||||||
if [ $charging == "on-line" ];
|
if [ $charging == "on-line" ];
|
||||||
then
|
then
|
||||||
echo "<fn=3> $batLevel</fn>"
|
echo "<fn=3> </fn>"
|
||||||
else
|
else
|
||||||
echo "<fn=4> $batLevel</fn>"
|
echo "<fn=4> </fn>"
|
||||||
fi
|
fi
|
||||||
elif [ $batLevel -g 95 ];
|
elif [ $batLevel -g 95 ];
|
||||||
then
|
then
|
||||||
if [ $charging == "on-line" ];
|
if [ $charging == "on-line" ];
|
||||||
then
|
then
|
||||||
echo "<fn=3> $batLevel</fn>"
|
echo "<fn=3> </fn>"
|
||||||
else
|
else
|
||||||
echo "<fn=4> $batLevel</fn>"
|
echo "<fn=4> </fn>"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -15,4 +15,4 @@ do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "<fc=$COLOR><fn=4>$ICON</fn></fc>"
|
echo "<fc=$COLOR><fn=3>$ICON</fn></fc>"
|
||||||
|
|
|
@ -5,7 +5,7 @@ STATES=($(nmcli device show | grep "GENERAL.STATE" | awk '{print $3}'))
|
||||||
for ((i = 0; i < "${#TYPES[@]}"; i++)); do
|
for ((i = 0; i < "${#TYPES[@]}"; i++)); do
|
||||||
if [[ ${STATES[$i]} = "(connected)" ]]; then
|
if [[ ${STATES[$i]} = "(connected)" ]]; then
|
||||||
if [[ ${TYPES[$i]} == *"wifi"* ]]; then
|
if [[ ${TYPES[$i]} == *"wifi"* ]]; then
|
||||||
echo "<fc=#DFDFDF><fn=4>直</fn></fc>"
|
echo "<fc=#DFDFDF><fn=3>直</fn></fc>"
|
||||||
else
|
else
|
||||||
echo "<fc=#DFDFDF><fn=5>ﯱ</fn></fc>"
|
echo "<fc=#DFDFDF><fn=5>ﯱ</fn></fc>"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -3,9 +3,9 @@ MUTE=$(pactl get-sink-mute @DEFAULT_SINK@ | sed -En 's/Mute: (.)/\1/p')
|
||||||
VOLUME=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Po '[0-9]*%' | sed -En 's/(.)\%/\1/p' | head -n1)
|
VOLUME=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Po '[0-9]*%' | sed -En 's/(.)\%/\1/p' | head -n1)
|
||||||
|
|
||||||
if [ "$MUTE" = "yes" ]; then
|
if [ "$MUTE" = "yes" ]; then
|
||||||
echo "<fc=#696B71><fn=3></fn></fc>"
|
echo "<fc=#696B71><fn=3>婢</fn></fc>"
|
||||||
elif [ "$VOLUME" -eq 0 ]; then
|
elif [ "$VOLUME" -le 20 ]; then
|
||||||
echo "<fc=#696B71><fn=3></fn></fc>"
|
echo "<fc=#DFDFDF><fn=3>奔</fn><fn=2> $VOLUME</fn></fc>"
|
||||||
else
|
else
|
||||||
echo "<fc=#DFDFDF><fn=3></fn><fn=2> $VOLUME</fn></fc>"
|
echo "<fc=#DFDFDF><fn=3>墳</fn><fn=2> $VOLUME</fn></fc>"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -7,9 +7,10 @@
|
||||||
Config {font = "xft:Ubuntu:weight=bold:pixelsize=14:antialias=true:hinting=true"
|
Config {font = "xft:Ubuntu:weight=bold:pixelsize=14:antialias=true:hinting=true"
|
||||||
, additionalFonts =
|
, additionalFonts =
|
||||||
[ "xft:Font Awesome 6 Free Solid:pixelsize=14"
|
[ "xft:Font Awesome 6 Free Solid:pixelsize=14"
|
||||||
, "xft:Font Awesome 6 Free Solid:pixelsize=12:bold"
|
, "xft:Font Awesome 6 Free Solid:pixelsize=13:bold"
|
||||||
, "xft:FiraCode Nerd Font Mono:pixelsize=16"
|
, "xft:FiraCode Nerd Font Mono:pixelsize=21"
|
||||||
, "xft:FiraCode Nerd Font Mono:pixelsize=12"
|
, "xft:FiraCode Nerd Font Mono:pixelsize=14"
|
||||||
|
, "xft:Font Awesome 6 Free Solid:pixelsize=21"
|
||||||
]
|
]
|
||||||
, bgColor = "#2B2E37"
|
, bgColor = "#2B2E37"
|
||||||
, fgColor = "#929AAD"
|
, fgColor = "#929AAD"
|
||||||
|
@ -57,6 +58,7 @@ Config {font = "xft:Ubuntu:weight=bold:pixelsize=14:antialias=true:hinting=true"
|
||||||
\ \
|
\ \
|
||||||
\|\
|
\|\
|
||||||
\ \
|
\ \
|
||||||
|
\ \
|
||||||
\%network%\
|
\%network%\
|
||||||
\ \
|
\ \
|
||||||
\%bluetooth%\
|
\%bluetooth%\
|
||||||
|
|
Loading…
Add table
Reference in a new issue