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:
parent
31f9e7dbef
commit
10a013d6a6
5 changed files with 266 additions and 163 deletions
|
@ -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=""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue