diff --git a/.config/xmobar/scripts/battery.sh b/.config/xmobar/scripts/battery.sh index 822a9c3..c49c1d8 100755 --- a/.config/xmobar/scripts/battery.sh +++ b/.config/xmobar/scripts/battery.sh @@ -9,56 +9,56 @@ if [ $batLevel -le 20 ]; then if [ $charging == "on-line" ]; then - echo " $batLevel" + echo " " else - echo " $batLevel" + echo " " fi elif [ $batLevel -le 30 ]; then if [ $charging == "on-line" ]; then - echo " $batLevel" + echo " " else - echo " $batLevel" + echo " " fi elif [ $batLevel -le 40 ]; then if [ $charging == "on-line" ]; then - echo " $batLevel" + echo " " else - echo " $batLevel" + echo " " fi elif [ $batLevel -le 60 ]; then if [ $charging == "on-line" ]; then - echo " $batLevel" + echo " " else - echo " $batLevel" + echo " " fi elif [ $batLevel -le 80 ]; then if [ $charging == "on-line" ]; then - echo " $batLevel" + echo " " else - echo " $batLevel" + echo " " fi elif [ $batLevel -le 95 ]; then if [ $charging == "on-line" ]; then - echo " $batLevel" + echo " " else - echo " $batLevel" + echo " " fi elif [ $batLevel -g 95 ]; then if [ $charging == "on-line" ]; then - echo " $batLevel" + echo " " else - echo " $batLevel" + echo " " fi fi diff --git a/.config/xmobar/scripts/bluetooth.sh b/.config/xmobar/scripts/bluetooth.sh index 4b4304d..bb88ddc 100755 --- a/.config/xmobar/scripts/bluetooth.sh +++ b/.config/xmobar/scripts/bluetooth.sh @@ -15,4 +15,4 @@ do fi done -echo "$ICON" +echo "$ICON" diff --git a/.config/xmobar/scripts/network.sh b/.config/xmobar/scripts/network.sh index de1e837..d423eaa 100755 --- a/.config/xmobar/scripts/network.sh +++ b/.config/xmobar/scripts/network.sh @@ -5,7 +5,7 @@ STATES=($(nmcli device show | grep "GENERAL.STATE" | awk '{print $3}')) for ((i = 0; i < "${#TYPES[@]}"; i++)); do if [[ ${STATES[$i]} = "(connected)" ]]; then if [[ ${TYPES[$i]} == *"wifi"* ]]; then - echo "直" + echo "直" else echo "ﯱ" fi diff --git a/.config/xmobar/scripts/volume.sh b/.config/xmobar/scripts/volume.sh index 6814b3e..81c985f 100755 --- a/.config/xmobar/scripts/volume.sh +++ b/.config/xmobar/scripts/volume.sh @@ -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) if [ "$MUTE" = "yes" ]; then - echo "" -elif [ "$VOLUME" -eq 0 ]; then - echo "" + echo "婢" +elif [ "$VOLUME" -le 20 ]; then + echo "奔 $VOLUME" else - echo " $VOLUME" + echo " $VOLUME" fi diff --git a/.config/xmobar/xmobarrc0 b/.config/xmobar/xmobarrc0 index 9dba83d..ca38025 100644 --- a/.config/xmobar/xmobarrc0 +++ b/.config/xmobar/xmobarrc0 @@ -7,9 +7,10 @@ Config {font = "xft:Ubuntu:weight=bold:pixelsize=14:antialias=true:hinting=true" , additionalFonts = [ "xft:Font Awesome 6 Free Solid:pixelsize=14" - , "xft:Font Awesome 6 Free Solid:pixelsize=12:bold" - , "xft:FiraCode Nerd Font Mono:pixelsize=16" - , "xft:FiraCode Nerd Font Mono:pixelsize=12" + , "xft:Font Awesome 6 Free Solid:pixelsize=13:bold" + , "xft:FiraCode Nerd Font Mono:pixelsize=21" + , "xft:FiraCode Nerd Font Mono:pixelsize=14" + , "xft:Font Awesome 6 Free Solid:pixelsize=21" ] , bgColor = "#2B2E37" , fgColor = "#929AAD" @@ -57,6 +58,7 @@ Config {font = "xft:Ubuntu:weight=bold:pixelsize=14:antialias=true:hinting=true" \ \ \|\ \ \ + \ \ \%network%\ \ \ \%bluetooth%\