From 7f4ad08cb3e96c655ca3e16d63ccd104771a10ec Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 22 Apr 2018 13:38:44 +0200 Subject: Start tracking NixOS home-manager configuration Placed in ~/.config/nixpkgs/ --- conf/xmonad/xmonad.hs | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 conf/xmonad/xmonad.hs (limited to 'conf/xmonad/xmonad.hs') 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-" ] + `additionalKeysP` +-- application launchers + [ ("M-p" , spawn "rofi -show combi") + , ("M-" , spawn "urxvt") + , ("M-" , spawn "vim -g") +-- actual window management + , ("M-" , prevWS) + , ("M-" , nextWS) + , ("M-S-" , shiftToPrev >> prevWS) + , ("M-S-" , shiftToNext >> nextWS) + , ("M-S-m" , windows swapMaster) +-- system control + , ("M-s " , spawn "amixer sset Master 10%+") + , ("M-s " , spawn "amixer sset Master 10%-") + , ("M-s m" , spawn "amixer sset Master toggle") + ] -- cgit v1.2.3