mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
IndependentScreens, v0.0
This commit is contained in:
parent
d6d03e84af
commit
ffe5f0cf6f
8
XMonad/Layout/IndependentScreens.hs
Normal file
8
XMonad/Layout/IndependentScreens.hs
Normal file
@ -0,0 +1,8 @@
|
||||
module IndependentScreens where
|
||||
|
||||
marshall (S sc) ws = show sc ++ '_':ws
|
||||
unmarshall = ((S . read) *** drop 1) . break (=='_')
|
||||
workspaces' = nub . map (snd . unmarshall) . workspaces
|
||||
withScreens n workspaces = [marshall sc ws | ws <- workspaces, sc <- [0..n-1]]
|
||||
onScreen f workspace = screen . current >>= f . flip marshall workspace
|
||||
countScreens = fmap genericLength $ openDisplay "" >>= getScreenInfo
|
Loading…
x
Reference in New Issue
Block a user