diff options
Diffstat (limited to 'conf')
-rw-r--r-- | conf/xmonad/xmonad.hs | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/conf/xmonad/xmonad.hs b/conf/xmonad/xmonad.hs new file mode 100644 index 0000000..32f4813 --- /dev/null +++ b/conf/xmonad/xmonad.hs @@ -0,0 +1,60 @@ +import XMonad +import XMonad.Util.EZConfig +import XMonad.Hooks.EwmhDesktops +import XMonad.StackSet + +import XMonad.Layout.NoBorders +import XMonad.Layout.Tabbed +import XMonad.Layout.Reflect +import XMonad.Util.Themes + +import XMonad.Actions.SpawnOn +import XMonad.Actions.CycleWS + +customTabTheme = (theme xmonadTheme) + { fontName = "xft:Iosevka Medium-12" + , decoHeight = 20 + , activeTextColor = "#222222" + , activeColor = "#aadb0f" + , inactiveTextColor = "#999999" + , inactiveColor = "#161616" + , activeBorderColor = "#aadb0f" + , inactiveBorderColor = "#161616" } + +availableLayouts = smartBorders $ tabs ||| tilesLM ||| tilesRM ||| tilesTM ||| tilesBM + where + tabs = tabbed shrinkText customTabTheme + tilesLM = Tall 1 delta ratio + tilesRM = reflectHoriz tilesLM + tilesTM = Mirror tilesLM + tilesBM = reflectVert tilesTM + ratio = 1/2 + delta = 3/100 + +main = xmonad $ ewmh defaultConfig + { modMask = mod4Mask -- super key as modifier + , borderWidth = 3 + , normalBorderColor = "#161616" + , focusedBorderColor = "#aadb0f" + , terminal = "urxvt" + , handleEventHook = handleEventHook defaultConfig <+> fullscreenEventHook + , layoutHook = availableLayouts + } + `removeKeysP` + [ "M-S-<Return>" ] + `additionalKeysP` +-- application launchers + [ ("M-p" , spawn "rofi -show combi") + , ("M-<Return>" , spawn "urxvt") + , ("M-<Backspace>" , spawn "vim -g") +-- actual window management + , ("M-<Left>" , prevWS) + , ("M-<Right>" , nextWS) + , ("M-S-<Left>" , shiftToPrev >> prevWS) + , ("M-S-<Right>" , shiftToNext >> nextWS) + , ("M-S-m" , windows swapMaster) +-- system control + , ("M-s <Up>" , spawn "amixer sset Master 10%+") + , ("M-s <Down>" , spawn "amixer sset Master 10%-") + , ("M-s m" , spawn "amixer sset Master toggle") + ] |