aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmonad.symlink/xmonad.hs32
1 files changed, 32 insertions, 0 deletions
diff --git a/xmonad.symlink/xmonad.hs b/xmonad.symlink/xmonad.hs
new file mode 100644
index 0000000..9185a7a
--- /dev/null
+++ b/xmonad.symlink/xmonad.hs
@@ -0,0 +1,32 @@
+import System.Posix.Env (putEnv)
+import XMonad
+import XMonad.Actions.CycleWS
+import XMonad.Actions.CycleWindows
+import XMonad.Hooks.SetWMName
+import XMonad.Layout.MultiColumns
+import XMonad.Util.EZConfig
+
+main = do
+ putEnv "_JAVA_AWT_WM_NONREPARENTING=1" -- java GUIs; see https://code.google.com/p/xmonad/issues/detail?id=559#c11
+ xmonad $ defaultConfig
+ { modMask = mod4Mask
+ , focusFollowsMouse = False
+ , layoutHook = myLayouts
+ , terminal = "uxterm -bg \"#002b35\" -fg \"#f8f8f8\""
+ }
+ `additionalKeysP` myKeys
+
+myKeys = [ ("M-<F5>", spawn "xbacklight -dec 5 -time 80")
+ , ("M-<F6>", spawn "xbacklight -inc 5 -time 80")
+ , ("<XF86AudioRaiseVolume>", spawn "amixer sset 'Master' 1%+")
+ , ("<XF86AudioLowerVolume>", spawn "amixer sset 'Master' 1%-")
+ , ("<XF86PowerOff>", spawn "sudo pm-suspend")
+ , ("M-<Up>", nextWS)
+ , ("M-<Down>", prevWS)
+ , ("M-S-p", spawn "passmenu -i")
+ ]
+
+myLayouts = Tall 1 0.01 0.5
+ ||| multiCol [1,1,0] 4 0.01 0.4
+ ||| Full
+