Added xrandr support for 2K screen
This commit is contained in:
parent
b071206c87
commit
2d7c386aa3
|
@ -24,6 +24,8 @@ setTransparentHook _ = return (All True)
|
||||||
main = do
|
main = do
|
||||||
-- Make sure that HDMI is turned off by default
|
-- Make sure that HDMI is turned off by default
|
||||||
spawn "xrandr --output HDMI1 --off"
|
spawn "xrandr --output HDMI1 --off"
|
||||||
|
spawn "xrandr --newmode \"2560x1440R\" 241.50 2560 2608 2640 2720 1440 1443 1448 1481 +hsync -vsync"
|
||||||
|
spawn "xrandr --addmode HDMI-1 2560x1440R && xrandr --output eDP-1 --auto --output HDMI-1 --primary --above eDP-1 --mode 2560x1440R"
|
||||||
-- Launch the composite manager
|
-- Launch the composite manager
|
||||||
spawn "xcompmgr -f -C -n -D 3"
|
spawn "xcompmgr -f -C -n -D 3"
|
||||||
-- Launch xmobar as my task bar.
|
-- Launch xmobar as my task bar.
|
||||||
|
@ -80,7 +82,7 @@ main = do
|
||||||
)
|
)
|
||||||
-- Turn on the HDMI-1 port and set it as the secondary display
|
-- Turn on the HDMI-1 port and set it as the secondary display
|
||||||
, ((mod4Mask .|. shiftMask, xK_h), spawn
|
, ((mod4Mask .|. shiftMask, xK_h), spawn
|
||||||
"xrandr --output eDP-1 --primary --auto --output HDMI-1 --right-of eDP-1 --auto"
|
"xrandr --output eDP-1 --auto --output HDMI-1 --primary --above eDP-1 --mode 2560x1440R"
|
||||||
)
|
)
|
||||||
, ((0 , 0x1008FF11), spawn "amixer set Master 2%-") -- XF86AudioLowerVolume
|
, ((0 , 0x1008FF11), spawn "amixer set Master 2%-") -- XF86AudioLowerVolume
|
||||||
-- , ((mod4Mask , xK_Down), spawn "amixer set Master 2%-")
|
-- , ((mod4Mask , xK_Down), spawn "amixer set Master 2%-")
|
||||||
|
|
Loading…
Reference in a new issue