From cb17a6351988d837a72b92916aeaeaed08bf09e7 Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Fri, 19 May 2023 12:22:02 +0100 Subject: [PATCH] [FIX] fixed nerdfont xmobar deprecated icons --- .config/xmobar/scripts/battery.sh | 31 ++++++++++++++--------------- .config/xmobar/scripts/bluetooth.sh | 4 ++-- .config/xmobar/scripts/network.sh | 4 ++-- .config/xmobar/scripts/volume.sh | 6 +++--- 4 files changed, 22 insertions(+), 23 deletions(-) diff --git a/.config/xmobar/scripts/battery.sh b/.config/xmobar/scripts/battery.sh index c49c1d8..14e1e2d 100755 --- a/.config/xmobar/scripts/battery.sh +++ b/.config/xmobar/scripts/battery.sh @@ -9,56 +9,55 @@ if [ $batLevel -le 20 ]; then if [ $charging == "on-line" ]; then - echo " " + echo "󰂆 " else - echo " " + echo "󰁻 " fi elif [ $batLevel -le 30 ]; then if [ $charging == "on-line" ]; then - echo " " + echo "󰂇 " else - echo " " + echo "󰁼 " fi elif [ $batLevel -le 40 ]; then if [ $charging == "on-line" ]; then - echo " " + echo "󰂈 " else - echo " " + echo "󰁽 " fi elif [ $batLevel -le 60 ]; then if [ $charging == "on-line" ]; then - echo " " + echo "󰂉 " else - echo " " + echo "󰁿 " fi elif [ $batLevel -le 80 ]; then if [ $charging == "on-line" ]; then - echo " " + echo "󰂊 " else - echo " " + echo "󰂁 " fi elif [ $batLevel -le 95 ]; then if [ $charging == "on-line" ]; then - echo " " + echo "󰂋 " else - echo " " + echo "󰂂 " fi -elif [ $batLevel -g 95 ]; -then +else if [ $charging == "on-line" ]; then - echo " " + echo "󰂅 " else - echo " " + echo "󰁹 " fi fi diff --git a/.config/xmobar/scripts/bluetooth.sh b/.config/xmobar/scripts/bluetooth.sh index bb88ddc..747a6eb 100755 --- a/.config/xmobar/scripts/bluetooth.sh +++ b/.config/xmobar/scripts/bluetooth.sh @@ -2,14 +2,14 @@ regex="([0-9A-Z]*:)+" DEVICES=$(bluetoothctl devices) -ICON="" +ICON="󰂲" COLOR="#696B71" for DEVICE in $DEVICES do if [[ $DEVICE =~ $regex ]]; then STATUS=$(bluetoothctl info $DEVICE | grep "Connected" | awk '{print $2}') if [ $STATUS = "yes" ]; then - ICON="" + ICON="󰂱" COLOR="#DFDFDF" fi fi diff --git a/.config/xmobar/scripts/network.sh b/.config/xmobar/scripts/network.sh index 715357f..3d69bd3 100755 --- a/.config/xmobar/scripts/network.sh +++ b/.config/xmobar/scripts/network.sh @@ -5,9 +5,9 @@ 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 "ﯱ" + echo "󰛳" fi fi done diff --git a/.config/xmobar/scripts/volume.sh b/.config/xmobar/scripts/volume.sh index 81c985f..69da867 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 "婢" + echo "󰖁" elif [ "$VOLUME" -le 20 ]; then - echo "奔 $VOLUME" + echo "󰖀 $VOLUME" else - echo " $VOLUME" + echo "󰕾 $VOLUME" fi -- 2.45.3