2020-04-19 19:26:10 +02:00
|
|
|
import Data.Function ( (&) )
|
|
|
|
import Control.Monad ( join )
|
|
|
|
|
|
|
|
import XMonad
|
|
|
|
import XMonad.Config.Kde
|
|
|
|
import XMonad.Util.EZConfig
|
|
|
|
import XMonad.Actions.SpawnOn
|
|
|
|
import XMonad.Hooks.ManageDocks
|
|
|
|
|
2020-04-21 15:46:43 +02:00
|
|
|
import XMonad.Layout.Spacing
|
|
|
|
import XMonad.Layout.ThreeColumns
|
|
|
|
|
2020-04-19 19:26:10 +02:00
|
|
|
main =
|
|
|
|
xmonad
|
2020-04-20 15:44:24 +02:00
|
|
|
$ docks
|
|
|
|
$ kdeConfig
|
|
|
|
{ modMask = mod4Mask
|
|
|
|
, layoutHook = myLayoutHook
|
|
|
|
, manageHook = manageDocks <+> myManagerHook <+> manageHook kdeConfig
|
|
|
|
, terminal = myTerminal
|
|
|
|
}
|
2020-04-19 19:26:10 +02:00
|
|
|
`additionalKeys` keymap
|
|
|
|
where
|
|
|
|
kdeFloats =
|
|
|
|
[ "yakuake"
|
|
|
|
, "Yakuake"
|
|
|
|
, "Kmix"
|
|
|
|
, "kmix"
|
|
|
|
, "plasma"
|
|
|
|
, "Plasma"
|
|
|
|
, "plasma-desktop"
|
|
|
|
, "Plasma-desktop"
|
|
|
|
, "krunner"
|
|
|
|
, "ksplashsimple"
|
|
|
|
, "ksplashqml"
|
|
|
|
, "ksplashx"
|
|
|
|
]
|
|
|
|
|
|
|
|
myManagerHook =
|
|
|
|
composeAll [ className =? name --> doFloat | name <- kdeFloats ]
|
|
|
|
|
|
|
|
myTerminal = "alacritty"
|
2020-04-20 15:44:24 +02:00
|
|
|
keymap = [((mod4Mask, xK_p), spawn "rofi -show run")]
|
2020-04-19 19:26:10 +02:00
|
|
|
|
|
|
|
uniformBorder = join $ join $ join Border
|
|
|
|
border = uniformBorder 4
|
|
|
|
spacingHook = spacingRaw True border True border True
|
|
|
|
|
2020-04-21 15:46:43 +02:00
|
|
|
tall = Tall 1 (3 / 100) (1 / 2)
|
|
|
|
threeCols = ThreeCol 1 (3 / 100) (1 / 2)
|
|
|
|
|
|
|
|
layouts = tall ||| threeCols ||| Full
|
2020-04-19 19:26:10 +02:00
|
|
|
myLayoutHook = desktopLayoutModifiers $ spacingHook layouts
|
|
|
|
|
|
|
|
|