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

View File

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