l xephyrify: handle resize
This commit is contained in:
parent
7e62c44607
commit
9c1e215dd5
@ -2,15 +2,18 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
minimalXmonad = writeHaskell "minimalXmonad" {
|
xephyrify-xmonad = writeHaskell "xephyrify-xmonad" {
|
||||||
executables.xmonad = {
|
executables.xmonad = {
|
||||||
extra-depends = [
|
extra-depends = [
|
||||||
"containers"
|
"containers"
|
||||||
|
"unix"
|
||||||
"xmonad"
|
"xmonad"
|
||||||
];
|
];
|
||||||
text = /* haskell */ ''
|
text = /* haskell */ ''
|
||||||
module Main where
|
module Main where
|
||||||
import XMonad
|
import XMonad
|
||||||
|
import Data.Monoid
|
||||||
|
import System.Posix.Process (executeFile)
|
||||||
import qualified Data.Map as Map
|
import qualified Data.Map as Map
|
||||||
|
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
@ -21,8 +24,18 @@ let
|
|||||||
, keys = myKeys
|
, keys = myKeys
|
||||||
, normalBorderColor = "#000000"
|
, normalBorderColor = "#000000"
|
||||||
, focusedBorderColor = "#000000"
|
, focusedBorderColor = "#000000"
|
||||||
|
, handleEventHook = myEventHook
|
||||||
}
|
}
|
||||||
|
|
||||||
|
myEventHook :: Event -> X All
|
||||||
|
|
||||||
|
myEventHook (ConfigureEvent { ev_event_type = 22 }) = do
|
||||||
|
spawn "${xorg.xrandr}/bin/xrandr >/dev/null 2>&1"
|
||||||
|
return (All True)
|
||||||
|
|
||||||
|
myEventHook _ = do
|
||||||
|
return (All True)
|
||||||
|
|
||||||
myLayoutHook = Full
|
myLayoutHook = Full
|
||||||
myKeys _ = Map.fromList []
|
myKeys _ = Map.fromList []
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user