forked from colonelpanic/dotfiles
[XMonad] Add FULL and MIRROR to selectable toggles
This commit is contained in:
parent
574286e326
commit
a2426214a8
@ -104,12 +104,14 @@ instance Transformer MyToggles Window where
|
|||||||
transform MAGICFOCUS x k = k (magicFocus x) unmodifyLayout
|
transform MAGICFOCUS x k = k (magicFocus x) unmodifyLayout
|
||||||
|
|
||||||
myToggles = [LIMIT, GAPS, MAGICFOCUS]
|
myToggles = [LIMIT, GAPS, MAGICFOCUS]
|
||||||
|
otherToggles = [FULL, MIRROR]
|
||||||
|
|
||||||
togglesMap = M.fromList [(show toggle, toggle) | toggle <- myToggles]
|
togglesMap = M.fromList $ [ (show toggle, Toggle toggle) | toggle <- myToggles ] ++
|
||||||
|
[ (show toggle, Toggle toggle) | toggle <- otherToggles ]
|
||||||
|
|
||||||
selectToggle = do
|
selectToggle = do
|
||||||
Just selectedToggle <- DM.menuMapArgs "rofi" ["-dmenu", "-i"] togglesMap
|
Just selectedToggle <- DM.menuMapArgs "rofi" ["-dmenu", "-i"] togglesMap
|
||||||
sendMessage $ Toggle selectedToggle
|
sendMessage selectedToggle
|
||||||
|
|
||||||
-- Layout setup
|
-- Layout setup
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user