FelixKratz / SketchyBar

A highly customizable macOS status bar replacement
https://felixkratz.github.io/SketchyBar/
GNU General Public License v3.0
5.25k stars 82 forks source link

Animation scroll_texts speed #478

Closed mr-scrpt closed 4 months ago

mr-scrpt commented 6 months ago

It seems that the animation speed is related to max_chars. If you set a large value for max_chars, the animation becomes very fast. Is there any way to adjust the animation speed separately from max_chars?

FelixKratz commented 4 months ago

Example usage of the new property:

sketchybar --set <name> label.scroll_duration=<positive_integer>

it is configurable on a per-text basis.

mr-scrpt commented 4 months ago

Example usage of the new property:

sketchybar --set <name> label.scroll_duration=<positive_integer>

it is configurable on a per-text basis.

Thanks for your reply but I'm not getting any effect, tried putting 0.1, 1, 10, 1000 looks the same fast. I have updated the package to the latest version sketchybar-v2.20.1

sketchybar --add item media e \
           --set media label.color=$COLOR_PEACH_LIGHT \
                       label.max_chars=50 \
                       scroll_texts=on \
                       label.scroll_duration=0.1 \
                       icon.padding_left=0 \
                       icon=􀑪             \
                       icon.color=$COLOR_PEACH_ACCENT  \
                       background.drawing=off \
                       script="$PLUGIN_DIR/media.sh" \
           --subscribe media media_change
FelixKratz commented 4 months ago

Its not yet released