From ba2822f5f51cf5db7ddce96dc67232681922dde3 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Wed, 9 Feb 2022 08:38:49 +1000 Subject: [PATCH] xmonad: added modes for Philips 436M6 --- .xmonad/xmonad.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index d196261..5b94c2a 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs @@ -56,6 +56,7 @@ myXPConfig = def -- Configure the prompt's appearance backgroundCmd = "feh --bg-scale ~/Documents/Images/Posters/STEVEs.jpeg" compositeMgr = "xcompmgr -f -C -n -D 3" +hdmi1Off = "xrandr --output eDP-1 --primary --output HDMI-1 --off" musicCmd = "mpd" nextcloudCmd = "nextcloud" notificationCmd = "lxqt-notificationd" @@ -66,7 +67,7 @@ trayerCmd = "trayer --edge top --SetPartialStrut false --width 7 --transpa main = do -- Make sure that HDMI is turned off by default - spawn "xrandr --output eDP-1 --primary --output HDMI-1 --off" + spawn hdmi1Off -- Turn off HDMI-1 before we set the modes wsbar <- spawnPipe myWsBar xmonad $ ewmh desktopConfig { focusFollowsMouse = False @@ -123,7 +124,7 @@ main = do ) -- Turn on the HDMI-1 port and set it as the secondary display , ((mod4Mask .|. shiftMask, xK_h), spawn - "xrandr --newmode \"3840x2160R\" 241.50 2560 2608 2640 2720 1440 1443 1448 1481 +hsync -vsync ; xrandr --addmode HDMI-1 2560x1440R ; xrandr --output eDP-1 --primary --auto --output HDMI-1 --above eDP-1 --mode 2560x1440R ; feh --bg-scale ~/Documents/Images/Posters/STEVEs.jpeg" + "xrandr --newmode 3840x2160 266.75 3840 4056 4456 5072 2160 2163 2168 2192 -hsync +vsync; xrandr --addmode HDMI-1 3840x2160; xrandr --output eDP-1 --off --output HDMI-1 --mode 3840x2160; feh --bg-scale ~/Documents/Images/Posters/STEVEs.jpeg" ) , ((0 , 0x1008FF11), spawn "amixer set Master 2%-") -- XF86AudioLowerVolume -- , ((mod4Mask , xK_Down), spawn "amixer set Master 2%-")