-
Notifications
You must be signed in to change notification settings - Fork 51
Keybindings
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.
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)