aboutsummaryrefslogtreecommitdiff
path: root/conf/xmonad
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-04-22 13:38:44 +0200
committerAdrian Kummerlaender2018-04-22 13:38:44 +0200
commit7f4ad08cb3e96c655ca3e16d63ccd104771a10ec (patch)
tree86530c05678aa23fcf1bfb507f8ddab34cadaaca /conf/xmonad
downloadnixos_home-7f4ad08cb3e96c655ca3e16d63ccd104771a10ec.tar
nixos_home-7f4ad08cb3e96c655ca3e16d63ccd104771a10ec.tar.gz
nixos_home-7f4ad08cb3e96c655ca3e16d63ccd104771a10ec.tar.bz2
nixos_home-7f4ad08cb3e96c655ca3e16d63ccd104771a10ec.tar.lz
nixos_home-7f4ad08cb3e96c655ca3e16d63ccd104771a10ec.tar.xz
nixos_home-7f4ad08cb3e96c655ca3e16d63ccd104771a10ec.tar.zst
nixos_home-7f4ad08cb3e96c655ca3e16d63ccd104771a10ec.zip
Start tracking NixOS home-manager configuration
Placed in ~/.config/nixpkgs/
Diffstat (limited to 'conf/xmonad')
-rw-r--r--conf/xmonad/xmonad.hs60
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")
+ ]