git.fiddlerwoaroof.com
Browse code

tweaking things

edwlan authored on 27/01/2015 07:42:29
Showing 2 changed files
... ...
@@ -18,6 +18,7 @@ import XMonad.Layout.Accordion
18 18
 import XMonad.Layout.Circle
19 19
 import XMonad.Layout.Combo
20 20
 import XMonad.Layout.DragPane
21
+import XMonad.Layout.Maximize
21 22
 import XMonad.Layout.SubLayouts
22 23
 import XMonad.Layout.Gaps
23 24
 import XMonad.Layout.Grid
... ...
@@ -193,7 +194,7 @@ main = do
193 194
       {
194 195
          manageHook = myManageHook <+> manageSpawn <+> manageHook defaultConfig,
195 196
          --handleEventHook = handleTimerEvent,
196
-         layoutHook = myLayout,
197
+         layoutHook = maximize myLayout,
197 198
          logHook = dynamicLogWithPP myPP {
198 199
             ppOutput = hPutStrLn xmproc
199 200
          },
... ...
@@ -205,6 +206,7 @@ main = do
205 206
          (((mod4Mask .|. controlMask, xK_q     ),
206 207
                spawn "if type xmonad; then xmonad --recompile && xmonad --restart; else xmessage xmonad not in \\$PATH: \"$PATH\"; fi")),
207 208
 
209
+         ((mod4Mask, xK_backslash), withFocused (sendMessage . maximizeRestore)),
208 210
          ((mod4Mask .|. controlMask .|. shiftMask, xK_h ), sendMessage $ Move L),
209 211
          ((mod4Mask .|. controlMask .|. shiftMask, xK_j ), sendMessage $ Move D),
210 212
          ((mod4Mask .|. controlMask .|. shiftMask, xK_k   ), sendMessage $ Move U),
... ...
@@ -549,4 +549,10 @@ export VIMCLOJURE_SERVER_JAR="$HOME/lib/vimclojure/server-2.3.6.jar"
549 549
 
550 550
 #unset -f set_colors
551 551
 
552
+pmkdir() {
553
+  mkdir $1
554
+  touch $1/__init__.py
555
+  cd $1 
556
+}
557
+
552 558
 # vim: set filetype=sh: