Dotfiles V.1.1.5

Updated Neovim Plugins as well as cleaned up aerospace config and
sketbar config and added fastfetch config
This commit is contained in:
2025-06-11 22:16:38 +02:00
parent 1f4666f417
commit af9d88c05f
100 changed files with 2045 additions and 3328 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
PERCENTAGE="$(pmset -g batt | grep -Eo "\d+%" | cut -d% -f1)"
CHARGING="$(pmset -g batt | grep 'AC Power')"
@@ -8,21 +8,32 @@ if [ "$PERCENTAGE" = "" ]; then
fi
case "${PERCENTAGE}" in
9[0-9]|100) ICON=""
9[0-9]|100)
ICON=""
COLOR="0xFFA6DA95"
;;
[6-8][0-9]) ICON=""
[6-8][0-9])
ICON=""
COLOR="0xFFEED49F"
;;
[3-5][0-9]) ICON=""
[3-5][0-9])
ICON=""
COLOR="0xFFF5A97F"
;;
[1-2][0-9]) ICON=""
[1-2][0-9])
ICON=""
COLOR="0xFFED8796"
;;
*) ICON=""
*)
ICON=""
COLOR="0xFFED8796"
esac
if [[ "$CHARGING" != "" ]]; then
ICON=""
COLOR="0xFFA6DA95"
fi
# The item invoking this script (name $NAME) will get its icon and label
# updated with the current battery status
sketchybar --set "$NAME" icon="$ICON" label="${PERCENTAGE}%"
sketchybar --set "$NAME" icon.color="$COLOR" icon="$ICON" label.color="$COLOR" label="${PERCENTAGE}%"