-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmonad.hs
34 lines (33 loc) · 1.45 KB
/
xmonad.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import System.IO
-- import XMonad.Actions.Volume
main = do
xmproc <- spawnPipe "/usr/bin/xmobar /home/ds/.xmobarrc"
xmonad $ defaultConfig
{
-- terminal = "urxvt"
manageHook = manageDocks <+> manageHook defaultConfig
, layoutHook = avoidStruts $ layoutHook defaultConfig
, logHook = dynamicLogWithPP xmobarPP
{ ppOutput = hPutStrLn xmproc
, ppTitle = xmobarColor "green" "" . shorten 50
}
, modMask = mod4Mask
-- , ((modMask x, xK_F11 ), lowerVolume 3 >> return ())
-- , ((modMask x, xK_F12 ), raiseVolume 3 >> return ())
-- , ((modMask x, xK_F10 ), toggleMute >> return ())
-- , normalBorderColor = "green"
, focusedBorderColor = "green"
} `additionalKeys`
[ ((controlMask , xK_F12), spawn "pactl set-sink-volume 0 +5%")
, ((controlMask , xK_F11), spawn "pactl set-sink-volume 0 -- -5%")
, ((controlMask , xK_F10), spawn "pactl set-sink-mute 0 toggle")
, ((mod4Mask .|. shiftMask, xK_z), spawn "xscreensaver-command -lock")
, ((controlMask, xK_Print), spawn "sleep 0.2; scrot -s")
, ((0, xK_Print), spawn "scrot")
]
--