Compare commits
3 Commits
498aed50d2
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a60bcba0e0 | |||
| bbe7f72f36 | |||
| 30c406f8c4 |
+3
-1
@@ -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 "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 "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 "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_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
|
addMode "640x360_119i_up" 27.810 640 672 736 824 360 485 493 563 -HSync -VSync Interlace
|
||||||
|
|||||||
@@ -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 "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 "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 "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
|
|
||||||
|
|||||||
@@ -128,13 +128,6 @@ testvidmode () {
|
|||||||
xrandr --addmode HDMI-A-0 $1
|
xrandr --addmode HDMI-A-0 $1
|
||||||
xrandr --output HDMI-A-0 --mode $1
|
xrandr --output HDMI-A-0 --mode $1
|
||||||
}
|
}
|
||||||
testvidmode2 () {
|
|
||||||
xrandr --delmode DisplayPort-0 $1
|
|
||||||
xrandr --rmmode $1
|
|
||||||
xrandr --newmode $*
|
|
||||||
xrandr --addmode DisplayPort-0 $1
|
|
||||||
xrandr --output DisplayPort-0 --mode $1
|
|
||||||
}
|
|
||||||
nintendontify () {
|
nintendontify () {
|
||||||
for i in *; do mkdir "$(echo $i | sed 's/.iso//')"; mv "$i" "$(echo $i | sed 's/.iso//')"/game.iso; done
|
for i in *; do mkdir "$(echo $i | sed 's/.iso//')"; mv "$i" "$(echo $i | sed 's/.iso//')"/game.iso; done
|
||||||
}
|
}
|
||||||
@@ -144,12 +137,30 @@ wiiconnect () {
|
|||||||
vsync () {
|
vsync () {
|
||||||
picom --backend glx --vsync
|
picom --backend glx --vsync
|
||||||
}
|
}
|
||||||
|
testvidmode2 () {
|
||||||
|
xrandr --delmode DisplayPort-0 $1
|
||||||
|
xrandr --rmmode $1
|
||||||
|
xrandr --newmode $*
|
||||||
|
xrandr --addmode DisplayPort-0 $1
|
||||||
|
xrandr --output DisplayPort-0 --mode $1
|
||||||
|
}
|
||||||
crtTV () {
|
crtTV () {
|
||||||
testvidmode "1280x480_60i" 26.108 1280 1332 1455 1664 480 483 489 523 interlace -hsync -vsync
|
testvidmode2 "640x480_60i" 13.038 640 666 727 831 480 483 489 523 interlace -hsync -vsync
|
||||||
xrandr --output DisplayPort-0 --mode 1280x480_60i --scale-from 640x480 --below HDMI-A-0
|
xrandr --output DisplayPort-0 --transform none --below HDMI-A-0
|
||||||
}
|
}
|
||||||
crtTVscale () {
|
crtTVscale () {
|
||||||
testvidmode "1280x480_60i" 26.108 1280 1332 1455 1664 480 483 489 523 interlace -hsync -vsync
|
testvidmode2 "1280x480_60i" 26.108 1280 1364 1487 1664 480 483 489 523 interlace -hsync -vsync
|
||||||
xrandr --output DisplayPort-0 --mode 1280x480_60i --scale-from 1280x960 --below HDMI-A-0
|
xrandr --output DisplayPort-0 --mode 1280x480_60i --scale-from 1280x960 --same-as HDMI-A-0
|
||||||
|
}
|
||||||
|
crtTV240 () {
|
||||||
|
# testvidmode2 "320x240_60" 6.515 320 333 364 416 240 241 244 261 -hsync -vsync
|
||||||
|
testvidmode2 "320x240_60" 6.515 320 341 372 416 240 241 244 261 -hsync -vsync
|
||||||
|
xrandr --output DisplayPort-0 --transform none --below HDMI-A-0
|
||||||
|
}
|
||||||
|
crtTV240scale () {
|
||||||
|
testvidmode2 "1280x240_60" 26.108 1280 1364 1487 1664 240 241 244 262 -hsync -vsync
|
||||||
|
xrandr --output DisplayPort-0 --mode 1280x240_60 --scale-from 1280x960 --same-as HDMI-A-0
|
||||||
|
}
|
||||||
|
crtTVOff () {
|
||||||
|
xrandr --output DisplayPort-0 --off
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
normal
|
||||||
Executable
+15
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Toggle between crtTV240 and crtTV240ra each time this script is run
|
||||||
|
|
||||||
|
source ~/.profile 2>/dev/null || true
|
||||||
|
|
||||||
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
STATE_FILE="$SCRIPT_DIR/.crt_tv_toggle"
|
||||||
|
|
||||||
|
if [[ -f "$STATE_FILE" && $(cat "$STATE_FILE") == "ra" ]]; then
|
||||||
|
crtTV240
|
||||||
|
echo "normal" > "$STATE_FILE"
|
||||||
|
else
|
||||||
|
crtTV240ra
|
||||||
|
echo "ra" > "$STATE_FILE"
|
||||||
|
fi
|
||||||
Executable
+15
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Toggle between crtTV240 and crtTV240ra each time this script is run
|
||||||
|
|
||||||
|
source ~/.profile 2>/dev/null || true
|
||||||
|
|
||||||
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
STATE_FILE="$SCRIPT_DIR/.crt_tv_toggle"
|
||||||
|
|
||||||
|
if [[ -f "$STATE_FILE" && $(cat "$STATE_FILE") == "ra" ]]; then
|
||||||
|
crtTV
|
||||||
|
echo "normal" > "$STATE_FILE"
|
||||||
|
else
|
||||||
|
crtTVscale
|
||||||
|
echo "ra" > "$STATE_FILE"
|
||||||
|
fi
|
||||||
@@ -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
|
||||||
+2
-1
@@ -4,7 +4,8 @@ xdotool windowactivate $(xdotool getmouselocation|sed "s/.*://")
|
|||||||
}
|
}
|
||||||
case $1 in
|
case $1 in
|
||||||
1)
|
1)
|
||||||
xdotool mousemove 800 400
|
#xdotool mousemove 800 400 # top left of ultrawide display
|
||||||
|
xdotool mousemove 2080 2160 #15khz crt
|
||||||
focusWindowUnderMouse
|
focusWindowUnderMouse
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
|
|||||||
@@ -11,7 +11,8 @@ wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz
|
|||||||
moveWindowToMonitor () {
|
moveWindowToMonitor () {
|
||||||
if [ "$(xprop -id $(xdotool getmouselocation --shell | awk -F= '/WINDOW/{print $2}') WM_CLASS | awk -F\" '{print $4}')" != "plasmashell" ]; then
|
if [ "$(xprop -id $(xdotool getmouselocation --shell | awk -F= '/WINDOW/{print $2}') WM_CLASS | awk -F\" '{print $4}')" != "plasmashell" ]; then
|
||||||
unMaximizeWindow
|
unMaximizeWindow
|
||||||
xdotool getactivewindow windowsize 800 600
|
#xdotool getactivewindow windowsize 800 600
|
||||||
|
xdotool getactivewindow windowsize 200 100
|
||||||
xdotool mousemove $1 $2
|
xdotool mousemove $1 $2
|
||||||
xdotool getactivewindow windowmove $1 $2
|
xdotool getactivewindow windowmove $1 $2
|
||||||
maximizeWindow
|
maximizeWindow
|
||||||
@@ -20,7 +21,8 @@ fi
|
|||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
1)
|
1)
|
||||||
moveWindowToMonitor 800 400
|
#moveWindowToMonitor 800 400 # top left of ultrawide display
|
||||||
|
moveWindowToMonitor 2080 2160 #15khz crt
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
moveWindowToMonitor 2650 500
|
moveWindowToMonitor 2650 500
|
||||||
|
|||||||
Reference in New Issue
Block a user