Skip to content

Displaying item on only one display #205

Answered by FelixKratz
diegolhambi asked this question in Q&A
Discussion options

You must be logged in to vote

I have tracked down a bug in the updating logic that prevented the associated_display property to apply correctly. Also I have added the active display id to the $INFO variable for the display_change event: 5d31801

What you are asking for is now possible on current master by doing this:
sketchybarrc

sketchybar --add       system.label       left                                 \
           --set       system.label       label=Window                         \
                                          script="$PLUGIN_DIR/window_title.sh" \
           --subscribe system.label       front_app_switched display_change

window_title.sh

#!/usr/bin/env sh

case "$SENDER" in
  "front_app_switched") …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by FelixKratz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants