Reduced tabs from 7(?!) to 4 and cleaned up long lines
This commit is contained in:
parent
2ba76430fc
commit
3297bebb28
|
@ -24,7 +24,11 @@ main = do
|
|||
--, borderWidth = 1
|
||||
} `additionalKeys`
|
||||
-- Custom dmenu launcher
|
||||
[ ((mod4Mask, xK_p ), spawn "exe=`dmenu_path | dmenu -fn \"Open Sans-10\" -p \"λ:\" -nb \"#073642\" -nf \"#93a1a1\" -sb \"#002b36\" -sf \"#859900\"` && eval \"exec $exe\"")
|
||||
[ ((mod4Mask, xK_p ), spawn
|
||||
"exe=`dmenu_path | dmenu -fn \"Open Sans-10\" -p \"λ:\" -nb
|
||||
\"#073642\" -nf \"#93a1a1\" -sb \"#002b36\" -sf \"#859900\"` &&
|
||||
eval \"exec $exe\""
|
||||
)
|
||||
-- Lock the screen
|
||||
, ((0, 0x1008ff2d), spawn "xscreensaver-command -lock")
|
||||
-- XF86ScreenSaver
|
||||
|
@ -33,16 +37,32 @@ main = do
|
|||
-- Turn off the display port
|
||||
, ((mod4Mask, xK_d), spawn "/usr/bin/xrandr --output DP-1 --off")
|
||||
-- Turn on the display port and set it as the primary display
|
||||
, ((mod4Mask .|. shiftMask, xK_d), spawn "/usr/bin/xrandr --output LVDS-1 --primary --auto --output DP-1 --left-of LVDS-1 --auto")
|
||||
, ((mod4Mask .|. shiftMask, xK_d), spawn
|
||||
"/usr/bin/xrandr --output LVDS-1 --primary --auto --output DP-1
|
||||
--left-of LVDS-1 --auto"
|
||||
)
|
||||
-- Turn off the HDMI port
|
||||
, ((mod4Mask .|. controlMask, xK_h), spawn "/usr/bin/xrandr --output HDMI-1 --off")
|
||||
, ((mod4Mask .|. controlMask, xK_h), spawn
|
||||
"/usr/bin/xrandr --output HDMI-1 --off"
|
||||
)
|
||||
-- Turn on the HDMI port and set it as the primary display
|
||||
, ((mod4Mask .|. shiftMask, xK_h), spawn "/usr/bin/xrandr --output LVDS-1 --primary --auto --output HDMI-1 --left-of LVDS-1 --auto")
|
||||
, ((mod4Mask .|. shiftMask, xK_h), spawn
|
||||
"/usr/bin/xrandr --output LVDS-1 --primary --auto --output
|
||||
HDMI-1 --left-of LVDS-1 --auto"
|
||||
)
|
||||
-- Turn off the VGA port
|
||||
, ((mod4Mask, xK_v), spawn "/usr/bin/xrandr --output VGA-1 --off")
|
||||
, ((mod4Mask .|. shiftMask, xK_v), spawn "/usr/bin/xrandr --output LVDS-1 --primary --auto --output VGA-1 --left-of LVDS-1 --auto")
|
||||
, ((0 , 0x1008FF11), spawn "amixer set Master 2%-") -- XF86AudioLowerVolume
|
||||
, ((0 , 0x1008FF12), spawn "amixer set Master toggle") -- XF86AudioMute
|
||||
, ((0 , 0x1008FF13), spawn "amixer set Master 2%+") -- XF86AudioRaiseVolume
|
||||
-- Turn on the VGA port and set it as the primary display
|
||||
, ((mod4Mask .|. shiftMask, xK_v), spawn
|
||||
"/usr/bin/xrandr --output LVDS-1 --primary --auto --output VGA-1
|
||||
--left-of LVDS-1 --auto"
|
||||
)
|
||||
, ((0 , 0x1008FF11), spawn
|
||||
"amixer set Master 2%-") -- XF86AudioLowerVolume
|
||||
, ((0 , 0x1008FF12), spawn
|
||||
"amixer set Master toggle") -- XF86AudioMute
|
||||
, ((0 , 0x1008FF13), spawn
|
||||
"amixer set Master 2%+") -- XF86AudioRaiseVolume
|
||||
, ((0 , 0x1008FF14), spawn "mpc toggle") -- Play/pause
|
||||
, ((0 , 0x1008FF15), spawn "mpc stop") -- Stop
|
||||
, ((0 , 0x1008FF16), spawn "mpc prev") -- XF86AudioPrevious
|
||||
|
|
Loading…
Reference in a new issue