Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spamming spaces highlight with animation messes up colors #404

Closed
erics118 opened this issue Oct 2, 2023 · 3 comments
Closed

Spamming spaces highlight with animation messes up colors #404

erics118 opened this issue Oct 2, 2023 · 3 comments
Labels
available on master bug Something isn't working

Comments

@erics118
Copy link

erics118 commented Oct 2, 2023

basically, have a config where space highlight changes with an animation, then spam switching spaces (eg with hotkeys set with skhd)

video:

the white box is a window that i put on each space, so it is guaranteed to show the correct space.

CleanShot.2023-10-02.at.19.25.04.mp4
same video, 1/4 the speed
b.mp4
sample config (the one used for the video)

~/.config/sketchybar/demo/sketchybarrc:

#!/bin/bash

bar=(
    height=30
    color=0xff000000
    position=top
    sticky=on
    topmost=on
)
sketchybar --bar "${bar[@]}"

# spaces
SPACE_ICONS=("1" "2" "3" "4" "5" "6" "7" "8" "9" "10")

sid=0
spaces=()
for i in "${!SPACE_ICONS[@]}"; do
    sid=$(($i + 1))

    space=(
        associated_space=$sid
        icon="${SPACE_ICONS[i]}"
        icon.highlight_color=0xffff0000
        script="~/.config/sketchybar/demo/space.sh"
    )

    sketchybar --add space space.$sid left \
        --set space.$sid "${space[@]}"
done
# end spaces

sketchybar --update

echo "sketchybar configuration loaded.."

~/.config/sketchybar/demo/space.sh:

#!/bin/bash

sketchybar \
    --animate sin 10 \
    --set $NAME icon.highlight=$SELECTED
@SuperBo
Copy link

SuperBo commented Oct 3, 2023

I also had this issue, have to restart sketchy bar every day to fix it.

@FelixKratz
Copy link
Owner

Should be fixed on master, you can test by running:

brew services stop sketchybar
brew uninstall sketchybar
brew install sketchybar --head
brew services start sketchybar

and then go back to the stable release with

brew services stop sketchybar
brew uninstall sketchybar
brew install sketchybar
brew services start sketchybar

@SuperBo
Copy link

SuperBo commented Oct 4, 2023

Thank you for quick fix @FelixKratz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
available on master bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants