Parcourir la Source

~/.xmonad: volume & quodlibet shortcuts.

There's a bug when the master volume is off. Somehow the mute button
doesn't work then which is a little weird. Ideally I'd have the mute
button "pick up" the master volume state and then light up if it is
muted "externally", but it's a bit out of scope for now.
Lucas Stadler 12 ans auparavant
Parent
commit
54c6b489ba
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 7 1
      .xmonad/xmonad.hs

+ 7 - 1
.xmonad/xmonad.hs

@ -7,9 +7,10 @@ import XMonad.Layout.NoBorders (smartBorders)
7 7
import XMonad.Layout.Fullscreen (fullscreenEventHook, fullscreenManageHook)
8 8
import XMonad.Util.Run (spawnPipe)
9 9
import XMonad.Util.EZConfig (additionalKeys)
10
import Graphics.X11.ExtraTypes.XF86
11
10 12
import System.IO (hPutStrLn)
11 13
import Data.IORef.MonadIO (newIORef, readIORef, modifyIORef)
12
13 14
import Control.Monad (when)
14 15
import Data.Monoid (All (All))
15 16
import qualified XMonad.StackSet as W
@ -43,6 +44,11 @@ main = do
43 44
        ((mod4Mask, xK_b), spawnHere "chromium --allow-file-access-from-files"),
44 45
        ((mod4Mask .|. shiftMask, xK_b), spawnHere "chromium --incognito --allow-file-access-from-files"),
45 46
47
        ((0, xF86XK_AudioMute), spawn "amixer set Master toggle"),
48
        ((0, xF86XK_AudioLowerVolume), spawn "amixer set Master 5%-"),
49
        ((0, xF86XK_AudioRaiseVolume), spawn "amixer set Master 5%+"),
50
        ((mod4Mask .|. shiftMask, xK_m), spawnHere "quodlibet"),
51
46 52
        ((mod4Mask .|. shiftMask, xK_Tab), changeKbMap kbMap),
47 53
        ((mod4Mask .|. shiftMask, xK_l), spawn "slock"),
48 54