From a60bcba0e000a6e5e850057d88ec2c750688c923 Mon Sep 17 00:00:00 2001 From: lucca Date: Mon, 21 Sep 2026 23:14:22 -0400 Subject: [PATCH] added 640x240 mode for the 119hz wega crt --- addCRTModes.sh | 4 +- delCRTModes.sh | 1 - sxhkdrc | 103 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 106 insertions(+), 2 deletions(-) create mode 100644 sxhkdrc diff --git a/addCRTModes.sh b/addCRTModes.sh index 2005dd1..606830c 100755 --- a/addCRTModes.sh +++ b/addCRTModes.sh @@ -16,6 +16,8 @@ addMode "1600x1000_120i" 133.000 1600 1696 1864 2128 1000 1003 1008 1075 -HSync addMode "640x480_120p" 52.95 640 680 748 856 480 482 485 516 -HSync +VSync addMode "480x360_120p" 29.00 480 504 552 624 360 363 367 389 -hsync +vsync #enter the gungeon addMode "760x284_120p" 35.50 760 792 864 968 284 287 297 308 -hsync +vsync #downwell -addMode "1920x240_120p" 92.443 1920 2202 2266 2744 240 245 250 281 -HSync -VSync +#addMode "1920x240_120p" 92.443 1920 2202 2266 2744 240 245 250 281 -HSync -VSync +#addMode 640x480_119i 27.810 640 672 736 824 480 483 488 563 -HSync -VSync Interlace +addMode "640x240_119p" 27.810 640 672 736 824 240 242 244 282 -HSync -VSync addMode "640x360_119i_down" 27.810 640 672 736 824 360 365 373 563 -HSync -VSync Interlace addMode "640x360_119i_up" 27.810 640 672 736 824 360 485 493 563 -HSync -VSync Interlace diff --git a/delCRTModes.sh b/delCRTModes.sh index 368e60c..b16e95f 100755 --- a/delCRTModes.sh +++ b/delCRTModes.sh @@ -11,4 +11,3 @@ delMode "1600x1000_120i" 137.500 1600 1696 1864 2128 1000 1003 1008 1049 -HSync delMode "640x480_120p" 52.50 640 680 744 848 480 483 487 518 -hsync +vsync delMode "480x360_120p" 29.00 480 504 552 624 360 363 367 389 -hsync +vsync delMode "760x284_120p" 35.50 760 792 864 968 284 287 297 308 -hsync +vsync -delMode "1920x240_120p" 92.443 1920 2202 2266 2744 240 245 250 281 -HSync -VSync diff --git a/sxhkdrc b/sxhkdrc new file mode 100644 index 0000000..4cb71af --- /dev/null +++ b/sxhkdrc @@ -0,0 +1,103 @@ +shift + Escape + /home/lucka/sh/keymaps.sh +mod3 + {1,9,0} + smartplug.sh hs100-wega.mario off && addCRTModes.sh && xrandr --output HDMI-A-0 --mode {1280x960_120i,1600x900_120i,1600x1000_120i} --scale 1 +# mm {1280x960@120i,wegaOnly,bedroomLCD1080p,bedroomLCD720p,3dsWega} +mod3 + shift + 1 + smartplug.sh hs100-wega.mario off && addCRTModes.sh && xrandr --output HDMI-A-0 --mode 640x480_120p +mod3 + shift + 2 + xrandr --output HDMI-A-0 --mode 640x480i --scale-from 1280x960 --filter bilinear; delCRTModes.sh && smartplug.sh hs100-wega.mario on +mod3 + shift + 9 + smartplug.sh hs100-wega.mario off && addCRTModes.sh && ~/sh/screenlayout/mirror900p.sh +mod3 + 2 + xrandr --output HDMI-A-0 --mode 640x480i --scale 1; delCRTModes.sh && smartplug.sh hs100-wega.mario on +mod3 + alt + 2 + xrandr --output HDMI-A-0 --mode 640x240_119p --scale-from 320x240; delCRTModes.sh && smartplug.sh hs100-wega.mario on +mod3 + alt + shift + 2 + xrandr --output HDMI-A-0 --mode 640x240_119p --scale-from 1280x960; delCRTModes.sh && smartplug.sh hs100-wega.mario on +mod3 + {3,4} + smartplug.sh hs100-wega.mario off && ~/.screenlayout/{3monitors.sh,tv720p.sh} +mod3 + shift + 3 + ~/.screenlayout/crtOnly.sh +mod3 + alt + 3 + xrandr --output DisplayPort-2 --off +mod3 + shift + 4 + smartplug.sh hs100-wega.mario off && ~/.screenlayout/tv1080p.sh +mod3 + 5 + smartplug.sh hs100-bedroomCRT.mario on +mod3 + F5 + smartplug.sh hs100-bedroomCRT2.mario on +mod3 + shift + F5 + smartplug.sh hs100-bedroomCRT2.mario off +mod3 + shift + 5 + smartplug.sh hs100-bedroomCRT.mario off +mod3 + 6 + smartplug.sh hs103-bedroomLCD.mario on +mod3 + shift + 6 + smartplug.sh hs103-bedroomLCD.mario off +mod3 + 7 + ~/sh/screenlayout/crt15khz240p.sh +mod3 + shift + 7 + ~/sh/screenlayout/crt15khz480i.sh +mod3 + {Left,Right} + curl -v -u lucka:h0gC3PMwSCXjJH8L "http://wattbox.mario/control.cgi?outlet=1&command={0,1}" +ctrl + shift + super + alt + {Left,Right} + curl -v -u lucka:h0gC3PMwSCXjJH8L "http://wattbox.mario/control.cgi?outlet=1&command={0,1}" +ctrl + shift + super + alt + {Up,Down} + bash -c 'comm={1,0}; curl -v -u lucka:h0gC3PMwSCXjJH8L "http://wattbox.mario/control.cgi?outlet=2&command=$comm" & curl -v -u lucka:h0gC3PMwSCXjJH8L "http://wattbox.mario/control.cgi?outlet=3&command=$comm"' + +#{XF86AudioForward,XF86AudioRewind} +mod3 + Up + bash -c 'curl -v -u lucka:h0gC3PMwSCXjJH8L "http://wattbox.mario/control.cgi?outlet=2&command=1" & curl -v -u lucka:h0gC3PMwSCXjJH8L "http://wattbox.mario/control.cgi?outlet=3&command=1"' +mod3 + Down + bash -c 'curl -v -u lucka:h0gC3PMwSCXjJH8L "http://wattbox.mario/control.cgi?outlet=2&command=0" & curl -v -u lucka:h0gC3PMwSCXjJH8L "http://wattbox.mario/control.cgi?outlet=3&command=0"' +mod3 + shift + Left + ~/sh/ha/light.sh bedroom off +mod3 + shift + Right + ~/sh/ha/light.sh bedroom on +mod3 + shift + Up + ~/sh/ha/light.sh bedroom 100 +mod3 + shift + Down + ~/sh/ha/light.sh bedroom 1 + +super + shift + {0-9} + cd /home/lucka/sh && python3 clipboardbuffers.py copy {0-9} +#{KP_Insert,KP_End,KP_Down,KP_Next,KP_Left,KP_Begin,KP_Right,KP_Home,KP_Up,KP_Prior} +# cd /home/lucka/sh && python3 clipboardbuffers.py edit {0-9} +#mod5 + {KP_Insert,KP_End,KP_Down,KP_Next,KP_Left,KP_Begin,KP_Right,KP_Home,KP_Up,KP_Prior} +# cd /home/lucka/sh && python3 clipboardbuffers.py paste {0-9} +alt + {comma,period,m,slash} + /home/lucka/sh/warpMouse.sh {1-4} +alt + shift + {comma,period,m,slash} + /home/lucka/sh/warpMouseAndWindow.sh {1-4} +Print + flameshot gui +alt + shift + w + librewolf -P +alt + w + librewolf -P Default +F10 + /home/lucka/sh/keymaps.sh +alt + shift + Return + konsole +alt + F1 + ~/sh/typeclipboard.sh +mod3 + s + rofi -show rofi-sound -modi "rofi-sound:rofi-sound-output-chooser" +mod3 + shift + s + ~/sh/hdmi-audio-selector.sh +mod3 + alt + s + ~/sh/hdmi-audio-selector.sh +mod3 + a + pactl set-card-profile bluez_card.00_6A_8E_17_25_51 a2dp-sink +mod3 + d +# pactl set-card-profile bluez_card.00_6A_8E_17_25_51 headset-head-unit + ~/sh/bt-disconnect.sh +mod3 + b + viewnior --fullscreen ~/black.jpg +mod3 + alt + b + pkill -f "viewnior --fullscreen /home/lucka/black.jpg" +super + f + xdotool search --class moonlight key --window %@ ctrl+alt+shift+x +mod3 + v + ~/sh/vsyncToggle.sh