feat(darwin)!: rewrite sketchybar config

- Now written in `Clojure`, using `Babashka`
  Checked with `clj-kondo`
- Add TODO for module upstreaming
  (of allowing file or script for `config`)
- Set `yabai` `window_border_radius` to `0`
- Fix ` battery` script (`grep` does not do `\d`)
This commit is contained in:
reo101 2024-09-08 16:45:11 +03:00
parent 31f9e7dbef
commit 10a013d6a6
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
5 changed files with 266 additions and 163 deletions

View file

@ -2,12 +2,12 @@
source "${UTIL_DIR}/colors.sh"
BATT_PERCENT=$(pmset -g batt | grep -Eo "\d+%" | cut -d% -f1)
BATT_PERCENT=$(pmset -g batt | grep -Eo '[[:digit:]]+%' | cut -d% -f1)
CHARGING=$(pmset -g batt | grep 'AC Power')
sketchybar --set "${NAME}" icon.color=0xff989898
if [ ${CHARGING} != "" ]; then
if [ "${CHARGING}" != "" ]; then
case ${BATT_PERCENT} in
100)
ICON=""