totte avatar totte committed 2263648

Add volume control keybindings

Comments (0)

Files changed (1)

.xmonad/xmonad.hs

         ((modm, xK_m), windows W.swapMaster),           -- Make focused window master window
         ((modm, xK_comma), sendMessage Shrink),         -- Shrink the master area
         ((modm, xK_period), sendMessage Expand),        -- Expand the master area
-        ((modm, xK_space), spawn "~/bin/drunner.sh")
+        ((modm, xK_space), spawn "~/bin/drunner.sh"),
+        ((0, 0x1008FF11), spawn "amixer set Master 2-"),
+        ((0, 0x1008FF12), spawn "amixer set Master toggle"),
+        ((0, 0x1008FF13), spawn "amixer set Master 2+")
     ]
     ++
     -- mod-[1..9], Switch to workspace N
 -- Layouts
 --------------------------------------------------------------------------------------
 
-myFocus = gaps [(L,256), (R,256)] $ spacing 4 $ limitWindows 2 $ Dishes nmaster ratio
+myFull = Full
+
+myWide = Mirror $ Tall nmaster delta ratio
     where
         -- The default number of windows in the master pane
         nmaster = 1
-        -- Default proportion of screen occupied by other panes
-        ratio = 1/5
-
-myFull = Full
+        -- Percent of screen to increment by when resizing panes
+        delta   = 4/100
+        -- Default proportion of screen occupied by master pane
+        ratio   = 80/100
 
-myDiscs = spacing 4 $ limitWindows 5 $ Dishes nmaster ratio
+myDish = limitWindows 5 $ Dishes nmaster ratio
     where
         -- The default number of windows in the master pane
         nmaster = 1
         -- Default proportion of screen occupied by other panes
-        ratio = 1/5
+        ratio = 1/4
 
 myLayout =
     avoidStruts $
-    noBorders (renamed [Replace "Full"] myFull) ||| renamed [Replace "Focus"] myFocus ||| renamed [Replace "Discs"] myDiscs
+    noBorders (renamed [Replace "Full"] myFull) ||| renamed [Replace "Wide"] myWide ||| renamed [Replace "Discs"] myDish
 
 --------------------------------------------------------------------------------------
 -- Window rules
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.