mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
Xmonad add keybind to move to physical screens
Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
parent
4a47ce1e8c
commit
c9db1e39b5
|
@ -205,13 +205,20 @@ myKeymap c =
|
||||||
, ("M-<F9>", (workspacesGrouped >>= \ws -> (liftIO . print $ ws)))
|
, ("M-<F9>", (workspacesGrouped >>= \ws -> (liftIO . print $ ws)))
|
||||||
]
|
]
|
||||||
++
|
++
|
||||||
|
|
||||||
--
|
--
|
||||||
-- mod-[1..9], Switch to workspace N
|
-- mod-[1..9], Switch to workspace N
|
||||||
--
|
--
|
||||||
[("M-" ++ m ++ [k], windows $ onCurrentScreen f i)
|
[("M-" ++ m ++ [k], windows $ onCurrentScreen f i)
|
||||||
| (i, k) <- zip (workspaces' c) "1234567890"
|
| (i, k) <- zip (workspaces' c) "1234567890"
|
||||||
, (f, m) <- [(W.greedyView, ""), (W.shift, "S-"), (copy, "S-C-")]]
|
, (f, m) <- [(W.greedyView, ""), (W.shift, "S-"), (copy, "S-C-")]]
|
||||||
|
++
|
||||||
|
--
|
||||||
|
-- mod-{w,e,r}, Switch to physical/Xinerama screens 1, 2, or 3
|
||||||
|
-- mod-shift-{w,e,r}, Move client to screen 1, 2, or 3
|
||||||
|
--
|
||||||
|
[("M-"++m++[key], screenWorkspace sc >>= flip whenJust (windows . f))
|
||||||
|
| (key, sc) <- zip ".o," [0..]
|
||||||
|
, (f, m) <- [(W.view, ""), (W.shift, "S-")]]
|
||||||
where
|
where
|
||||||
xMoveWindow
|
xMoveWindow
|
||||||
:: (Position, Position)
|
:: (Position, Position)
|
||||||
|
|
Loading…
Reference in a new issue