Ver Código Fonte

~/.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 anos atrás
pai
commit
54c6b489ba
1 arquivos alterados com 7 adições e 1 exclusões
  1. 7 1
      .xmonad/xmonad.hs

+ 7 - 1
.xmonad/xmonad.hs

7
import XMonad.Layout.Fullscreen (fullscreenEventHook, fullscreenManageHook)
7
import XMonad.Layout.Fullscreen (fullscreenEventHook, fullscreenManageHook)
8
import XMonad.Util.Run (spawnPipe)
8
import XMonad.Util.Run (spawnPipe)
9
import XMonad.Util.EZConfig (additionalKeys)
9
import XMonad.Util.EZConfig (additionalKeys)
10
import Graphics.X11.ExtraTypes.XF86
11
10
import System.IO (hPutStrLn)
12
import System.IO (hPutStrLn)
11
import Data.IORef.MonadIO (newIORef, readIORef, modifyIORef)
13
import Data.IORef.MonadIO (newIORef, readIORef, modifyIORef)
12
13
import Control.Monad (when)
14
import Control.Monad (when)
14
import Data.Monoid (All (All))
15
import Data.Monoid (All (All))
15
import qualified XMonad.StackSet as W
16
import qualified XMonad.StackSet as W
43
        ((mod4Mask, xK_b), spawnHere "chromium --allow-file-access-from-files"),
44
        ((mod4Mask, xK_b), spawnHere "chromium --allow-file-access-from-files"),
44
        ((mod4Mask .|. shiftMask, xK_b), spawnHere "chromium --incognito --allow-file-access-from-files"),
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
        ((mod4Mask .|. shiftMask, xK_Tab), changeKbMap kbMap),
52
        ((mod4Mask .|. shiftMask, xK_Tab), changeKbMap kbMap),
47
        ((mod4Mask .|. shiftMask, xK_l), spawn "slock"),
53
        ((mod4Mask .|. shiftMask, xK_l), spawn "slock"),
48
54