Skip to content

xiamaz/sketchybar-aerospace-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sketchybar Aerospace plugin

image

Fast plugin to render aerospace workspaces with app icons in sketchybar. Supports multiple monitors with correct ordering. Spaces will only appear on the monitor on which the space is.

Currently all style is hardcoded. Fork and adjust as needed.

Required sketchybar config:

sketchybar --add event aerospace_workspace_change
sketchybar --add event aerospace_focus_change
sketchybar --add item aerospace left \
        --subscribe aerospace aerospace_workspace_change \
        --subscribe aerospace aerospace_focus_change \
        --set aerospace \
        label="󱂬" \
        click_script="aerospace reload-config" \
        script="$CONFIG_DIR/plugins/aerospace_plugin"

Required aerospace config:

exec-on-workspace-change = ['/bin/dash', '-c',
  'sketchybar --trigger aerospace_workspace_change FOCUSED=$AEROSPACE_FOCUSED_WORKSPACE PREV_FOCUSED=$AEROSPACE_PREV_WORKSPACE'
]

on-focus-changed = [
  'exec-and-forget sketchybar --trigger aerospace_focus_change'
]

Attribution

mach.h from FelixKrat/SbarLua

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published