Skip to content

Kainoa-h/aerospace-sketchybar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple sketchybar config for aerospace users!

alt text I couldn't find any resources for a simple sketchybar config that worked with aerospace. So this is what I came up with!

Here's my how current configuration looks

Credits:

I'm kinda new to shell scripting and all this stuff. Here are the resources that helped me make this config besides the official sketchybar and aerospace docs :p

Aerospace:

Getting it working:

If you already have an aerospace config or don't want to use mine, add the following into your aerospace.toml to trigger sketchybar & pass workspace data.

exec-on-workspace-change = ['/bin/bash', '-c',
    'sketchybar --trigger aerospace_workspace_change FOCUSED_WORKSPACE=$AEROSPACE_FOCUSED_WORKSPACE PREV_WORKSPACE=$AEROSPACE_PREV_WORKSPACE'
]

do note that 'sketchybar --trigger aerospace_workspace_change FOCUSED_WORKSPACE=$AEROSPACE_FOCUSED_WORKSPACE PREV_WORKSPACE=$AEROSPACE_PREV_WORKSPACE' should be on a single line.

Sketchybar

Current Functionality:

  • Dynamically displays/hides active/inactive workspaces. (not working perfectly...)
  • Displays apps in each workspace
  • Displays total swap memory (updates every 20 seconds)

Getting it working:

You will need to install a Nerd Fontif you haven't already!

brew tap homebrew/cask-fonts
brew install font-hack-nerd-font

jq as well!

brew install jq

I used the SF font in my config so let's install that too! If you don't want to, that's fine as well. Just remeber to change the fonts used in sketchybarrc

brew install font-sf-pro

Lastly, you'll want to grab the sketchybar app font and add it to your '~/Library/Fonts/' directory!

About

simple starting aerospace & sketchybar config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages