How to perform actions on current window in keybindings?
Posted
by
user905686
on Super User
See other posts from Super User
or by user905686
Published on 2013-11-04T17:14:34Z
Indexed on
2013/11/05
15:59 UTC
Read the original article
Hit count: 181
xmonad
In the ManageHook I can define what should happen to windows that have specific xprops etc.
For example, I can call doShift
or doFloat
.
How can I do the same to the currently focused window with a key binding?
The section looks like this:
`additionalKeys` ( [ -- Key bindings --
-- Minimize window
((myModMask .|. shiftMask, xK_m ), withFocused minimizeWindow)
As you can see, I can call the minimizedWindow function (which takes a Window
as parameter) on the current window when pressing a combination of keys, but doFloat
etc. do not work like this.
© Super User or respective owner