[xmonad] Trouble Rebinding ToggleStruts

Brandon Allbery allbery.b at gmail.com
Sun May 4 20:58:27 UTC 2014


On Sun, May 4, 2014 at 2:49 PM, Eyal Erez <oneself at gmail.com> wrote:

> To this:
> main = xmonad =<< xmobar defaultConfig
>         {  -- no logHook defined
>          -- Other definitions.
>         }
>
> This works fine, but now for some reason, Alt-B is bound to ToggleStruts.
>  I would like this to be Ctrl-Shift-B, and I have a key binding which adds
> the second one, but I can't seem to get rid of the first.
>
> How can I unbind Alt-B, and where is it coming from?
>

It's coming from the xmobar combinator applied to defaultConfig:

    xmobar conf = statusBar "xmobar" xmobarPP toggleStrutsKey conf


(see
http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-DynamicLog.html#v:xmobar
)

If you want to replace toggleStrutsKey then you will need to use your own
invocation of statusBar.

    -- |    -- Helper function which provides ToggleStruts keybinding
  --    toggleStrutsKey :: XConfig t -> (KeyMask, KeySym)
toggleStrutsKey XConfig{modMask = modm} = (modm, xK_b )


-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20140504/8bb4a169/attachment.html>


More information about the xmonad mailing list