xmonad: added modes for Philips 436M6

This commit is contained in:
Serĉanto de Scio 2022-02-09 08:38:49 +10:00
parent e7f13355b7
commit ba2822f5f5
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA

View file

@ -56,6 +56,7 @@ myXPConfig = def -- Configure the prompt's appearance
backgroundCmd = "feh --bg-scale ~/Documents/Images/Posters/STEVEs.jpeg" backgroundCmd = "feh --bg-scale ~/Documents/Images/Posters/STEVEs.jpeg"
compositeMgr = "xcompmgr -f -C -n -D 3" compositeMgr = "xcompmgr -f -C -n -D 3"
hdmi1Off = "xrandr --output eDP-1 --primary --output HDMI-1 --off"
musicCmd = "mpd" musicCmd = "mpd"
nextcloudCmd = "nextcloud" nextcloudCmd = "nextcloud"
notificationCmd = "lxqt-notificationd" notificationCmd = "lxqt-notificationd"
@ -66,7 +67,7 @@ trayerCmd = "trayer --edge top --SetPartialStrut false --width 7 --transpa
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 eDP-1 --primary --output HDMI-1 --off" spawn hdmi1Off -- Turn off HDMI-1 before we set the modes
wsbar <- spawnPipe myWsBar wsbar <- spawnPipe myWsBar
xmonad $ ewmh desktopConfig xmonad $ ewmh desktopConfig
{ focusFollowsMouse = False { focusFollowsMouse = False
@ -123,7 +124,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 --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 , ((0 , 0x1008FF11), spawn "amixer set Master 2%-") -- XF86AudioLowerVolume
-- , ((mod4Mask , xK_Down), spawn "amixer set Master 2%-") -- , ((mod4Mask , xK_Down), spawn "amixer set Master 2%-")