Skip to content
adamwagner edited this page Aug 23, 2020 · 13 revisions

Currently, the only externally available stackline action is the ability to toggle between indicator icons and indicator pills/blobs. This section will be updated as features are added.

Toggle indicator icons

If you use shkd, you can bind a key combo to toggle icons ~/.skhdrc file using the hammerspoon cli we installed earlier.

# if this doesn't work, try using the absolute path to the hammerspoon cli: /usr/local/bin/hs
shift + alt - b :  echo ":toggle_icons:1" | hs -m stackline-config

Alternatively, you can control stackline by accessing the instance directly via Hammerspoon.

For example, to bind a key combo to toggle icons, you could add the following to your ~/.hammerspoon/init.lua file, after requiring the stackline module & assigning a local variable stackline:

local stackline = require "stackline.stackline.stackline" -- you should already have this line ;-)

-- bind alt+ctrl+t to toggle stackline icons
hs.hotkey.bind({'alt', 'ctrl'}, 't', function()
    stackline.manager:toggleIcons()
end)

Next: Working with lua →

Clone this wiki locally