Skip to content
Discussion options

You must be logged in to vote

The easiest way to get this displayed in sketchybar is to alias the original macOS menu item into sketchybar:

sketchybar --add alias TextInputMenuAgent right

This should be all you need to do to get the input language shown in sketchybar just like it is in the regular bar.
(This is the name of the item on my system at least, you can check if it is the same on your system by running: sketchybar --query default_menu_items)

If you howerver want to customize the behavior and make a custom item, there is an event that can be used to detect changes in the input source i.e.:

sketchybar --add event input_change AppleSelectedInputSourcesChangedNotification

you could then use a regular item with a …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zihao-liu-qs
Comment options

Answer selected by FelixKratz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #344 on March 19, 2023 14:13.