Merge branch 'master' of gitee.com:klesh/dotfiles

This commit is contained in:
Klesh Wong 2020-10-20 11:02:08 +08:00
commit 312e1361d0
2 changed files with 20 additions and 18 deletions

View File

@ -5,6 +5,7 @@
<family>serif</family> <family>serif</family>
<prefer> <prefer>
<family>DejaVu Serif</family> <family>DejaVu Serif</family>
<family>agave Nerd Font</family>
<family>WenQuanYi Micro Hei</family> <family>WenQuanYi Micro Hei</family>
<family>Symbola</family> <family>Symbola</family>
</prefer> </prefer>
@ -13,6 +14,7 @@
<family>sans-serif</family> <family>sans-serif</family>
<prefer> <prefer>
<family>URW Gothic</family> <family>URW Gothic</family>
<family>agave Nerd Font</family>
<family>WenQuanYi Micro Hei</family> <family>WenQuanYi Micro Hei</family>
<family>Symbola</family> <family>Symbola</family>
</prefer> </prefer>
@ -20,7 +22,7 @@
<alias> <alias>
<family>monospace</family> <family>monospace</family>
<prefer> <prefer>
<family>Cascadia Code</family> <family>agave Nerd Font</family>
<family>WenQuanYi Micro Hei</family> <family>WenQuanYi Micro Hei</family>
<family>Symbola</family> <family>Symbola</family>
</prefer> </prefer>

View File

@ -14,21 +14,21 @@ set ICON_BATTERY 🔋
set ICON_DATETIME ⏲ set ICON_DATETIME ⏲
# nerdfont # nerdfont
set ICON_RECORDING set ICON_RECORDING
set ICON_MUSIC set ICON_MUSIC
set ICON_MUTED set ICON_MUTED 'ﱝ '
set ICON_VOLUME  set ICON_VOLUME ' '
set ICON_NIC  set ICON_NIC ' '
set ICON_WIFI  set ICON_WIFI ' '
set ICON_MEMORY  set ICON_MEMORY ' '
set ICON_TEMPERATURE  set ICON_TEMPERATURE 
set ICON_PLUGGED  set ICON_PLUGGED ' '
set ICON_BATTERY_0  set ICON_BATTERY_0 ' '
set ICON_BATTERY_1  set ICON_BATTERY_1 ' '
set ICON_BATTERY_2  set ICON_BATTERY_2 ' '
set ICON_BATTERY_3  set ICON_BATTERY_3 ' '
set ICON_BATTERY_4  set ICON_BATTERY_4 ' '
set ICON_DATETIME  set ICON_DATETIME ' '
function update function update
@ -79,10 +79,10 @@ function update
set plugged (cat /sys/class/power_supply/AC/online) set plugged (cat /sys/class/power_supply/AC/online)
if test $plugged -eq 1 if test $plugged -eq 1
set battery "$ICON_PLUGGED $battery%" set battery "$ICON_PLUGGED $battery%"
elif test -n "$ICON_BATTERY" else if test -n "$ICON_BATTERY"
set battery "$ICON_BATTERY $battery%" set battery "$ICON_BATTERY $battery%"
elif test -n "$ICON_BATTERY_0" else if test -n "$ICON_BATTERY_0"
if test $battery -gt 90 if test ""$battery -gt 90
set battery "$ICON_BATTERY_4 $battery%" set battery "$ICON_BATTERY_4 $battery%"
else if test $battery -gt 75 else if test $battery -gt 75
set battery "$ICON_BATTERY_3 $battery%" set battery "$ICON_BATTERY_3 $battery%"