gdritter repos dotfiles / 461d2a7
Some extra shortcut keys and some layout tweaking Getty Ritter 7 years ago
1 changed file(s) with 19 addition(s) and 7 deletion(s). Collapse all Expand all
1616 import qualified XMonad as XM
1717 import qualified XMonad.Hooks.DynamicLog as Log
1818 import qualified XMonad.Hooks.ManageDocks as XM
19 import qualified XMonad.Hooks.SetWMName as XM
1920 import qualified XMonad.Layout.NoBorders as XM
2021 import qualified XMonad.Layout.Tabbed as Tab
2122 import XMonad.ManageHook ((-->), (=?))
5859 , ((mdMask, XM.xK_u), XM.spawn "amixer -q sset Master 3%+")
5960 , ((mdMask, XM.xK_d), XM.spawn "amixer -q sset Master 3%-")
6061 , ((mdMask, XM.xK_m), XM.spawn "amixer -q sset Master 0%")
62 , ((mdMask, 0x1008ff13), XM.spawn "amixer -q set Master 3%+")
63 , ((mdMask, 0x1008ff12), XM.spawn "amixer set Master toggle")
64 , ((mdMask, 0x1008ff11), XM.spawn "amixer -q set Master 3%-")
65 , ((mdMask, 0x1008ff14), XM.spawn "mpc toggle")
66 , ((mdMask, 0x1008ff15), XM.spawn "mpc stop")
67 , ((mdMask, 0x1008ff16), XM.spawn "mpc prev")
68 , ((mdMask, 0x1008ff17), XM.spawn "mpc next")
6169 ]
6270
6371 recompile :: IO ()
8896 { XM.modMask = XM.mod4Mask
8997 , XM.terminal = "urxvt -e tmux"
9098 , XM.keys = keys <+> XM.keys def
99 , XM.handleEventHook =
100 XM.docksEventHook <+> XM.handleEventHook def
101 , XM.startupHook =
102 XM.setWMName "LG3D" <+> XM.docksStartupHook <+> XM.startupHook def
91103 , XM.layoutHook =
92 XM.avoidStruts (tabbed ||| tiled ||| XM.Mirror tiled)
93 ||| XM.noBorders (XM.smartBorders XM.Full)
94 , XM.manageHook = XM.composeAll
95 [ XM.className =? "Vkdraw" --> XM.doFloat
96 , XM.manageHook def
97 ]
104 XM.avoidStruts tiled |||
105 XM.avoidStruts (XM.Mirror tiled) |||
106 XM.noBorders (XM.smartBorders XM.Full) |||
107 XM.avoidStruts (XM.noBorders tabbed)
108 , XM.manageHook =
109 XM.manageDocks <+> XM.manageHook def
98110 , XM.normalBorderColor = normalC
99111 , XM.focusedBorderColor = focusedC
100112 , XM.logHook = Log.dynamicLogWithPP $ Log.xmobarPP
103115 , Log.ppCurrent = Log.xmobarColor grayC "" . ("<" ++) . (++ ">")
104116 }
105117 }
106 tiled = XM.Tall 1 (3/100) (1/2)
118 tiled = XM.Tall 1 (3/100) (3/5)
107119 tabbed = Tab.tabbed Tab.shrinkText def
108120 { Tab.activeColor = focusedC
109121 , Tab.inactiveColor = normalC