feat(darwin): add sketchybar
to yabai
module
This commit is contained in:
parent
7df97750b7
commit
89d280b7af
10 changed files with 288 additions and 9 deletions
23
modules/nix-darwin/yabai/sketchybar/plugins/space.sh
Executable file
23
modules/nix-darwin/yabai/sketchybar/plugins/space.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
# The ${SELECTED} variable is available for space components and indicates if
|
||||
# the space invoking this script (with name: ${NAME}) is currently selected:
|
||||
# https://felixkratz.github.io/SketchyBar/config/components#space----associate-mission-control-spaces-with-an-item
|
||||
|
||||
BACKGROUND_COLOR=0x502a2d3d
|
||||
HIGHLIGHT_COLOR=0x90faafa6
|
||||
|
||||
appearance=$(defaults read -g AppleInterfaceStyle)
|
||||
|
||||
if [[ ${appearance} != 'Dark' ]]; then
|
||||
BACKGROUND_COLOR=0x50f5f0f5
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if [ "${SELECTED}" == "true" ]; then
|
||||
sketchybar --set ${NAME} background.color=${HIGHLIGHT_COLOR}
|
||||
else
|
||||
sketchybar --set ${NAME} background.color=${BACKGROUND_COLOR} \
|
||||
blur_radius=30
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue