Commits

Toby Davies committed 0920ac9

New workspace names and volume control buttons!

  • Participants
  • Parent commits 7269a72

Comments (0)

Files changed (2)

File .xmonad/startup.d/tray

+#!/usr/bin/zsh
+
+trayer &!

File .xmonad/xmonad.hs

                terminal           = myTerminal,
                startupHook        = execScriptHook "startup" >> (checkKeymap config myKeys),
                manageHook         = composeAll manageHooks,
-               layoutHook         = myLayoutHook
+               layoutHook         = myLayoutHook,
+               workspaces         = myWorkspaces
                }
              myUrgentHook = SpawnUrgencyHook "~/.xmonad/urgentHook "
              myUrgentConfig = urgencyConfig {
   ("M-s", inputPrompt defaultXPConfig "Google" ?+ \t -> safeSpawn "search" [t]),
   ("M-S-s", spawn "bash -c 'search \"$(xclip -o)\"'"),
   ("M-g", spawn "sensible-browser --app=http://www.gmail.com"),
-  ("M-;", focusUrgent)
+  ("M-;", focusUrgent),
+  ("<XF86AudioLowerVolume>", spawn "amixer sset -- Master playback 10-"),
+  ("<XF86AudioRaiseVolume>", spawn "amixer sset -- Master playback 10+"),
+  ("<XF86AudioMute>", spawn "amixer sset -- Master playback 0%")
   ]
 
 manageHooks = [
   className =? "XClock" --> doFloat,
   className =? "Xmessage" -->doFloat,
   className =? "Zenity" -->doFloat,
-  className =? "Rhythmbox" -->doShift "8",
-  className =? "trayer" -->doShift "9"
+  className =? "Rhythmbox" -->doShift "music",
+  className =? "trayer" -->doShift "misc"
   ]
               
 myLayoutHook = showWName $ smartBorders $ (tiled (9/15) ||| Grid ||| Mirror (tiled (13/15)) ||| simpleTabbedBottom ||| Full)
         nmaster    = 1
         inc        = 1/15
 
+myWorkspaces = [
+  "web",
+  "code",
+  "chat",
+  "extra-terminals",
+  "5",
+  "6",
+  "7",
+  "music",
+  "misc"
+  ]