From a151be6dfea7803c57e465d3e266d1a4824854c1 Mon Sep 17 00:00:00 2001 From: lucca Date: Mon, 29 Jun 2026 13:58:46 -0400 Subject: [PATCH] lots of organization --- ha | 1 + homeassistant/env | 1 + keymaps.sh.old | 16 ------- mount-all-filesystems.sh | 4 -- nohup.out | 0 .../clipboardbuffers.py | 0 lgctl => old/lgctl | 0 lgctl.sh => old/lgctl.sh | 0 .../ps3-controller-bluetooth-latency-fix.sh | 0 quest-cast.sh | 37 +------------- quest-cast2.sh | 43 ----------------- quest-cast3.sh | 48 ------------------- quest-cast4.sh | 47 ------------------ quest-cast5.sh | 46 ------------------ quest-cast6.sh | 47 ------------------ quest-cast7.sh | 44 ----------------- quest-cast8.sh | 42 ---------------- quest-cast9.sh | 43 ----------------- .../ultrawide-monitor-split.sh | 0 tModLoader | 5 -- tModLoaderFamilyShare.sh | 3 ++ rofi/viewcam => viewcam | 0 workspace/wl.sh | 8 ---- 23 files changed, 6 insertions(+), 429 deletions(-) create mode 120000 ha create mode 120000 homeassistant/env delete mode 100755 keymaps.sh.old delete mode 100755 mount-all-filesystems.sh delete mode 100644 nohup.out rename clipboardbuffers.py => old/clipboardbuffers.py (100%) rename lgctl => old/lgctl (100%) rename lgctl.sh => old/lgctl.sh (100%) rename ps3-controller-bluetooth-latency-fix.sh => old/ps3-controller-bluetooth-latency-fix.sh (100%) delete mode 100755 quest-cast2.sh delete mode 100755 quest-cast3.sh delete mode 100755 quest-cast4.sh delete mode 100755 quest-cast5.sh delete mode 100755 quest-cast6.sh delete mode 100755 quest-cast7.sh delete mode 100755 quest-cast8.sh delete mode 100755 quest-cast9.sh rename ultrawide-monitor-split.sh => screenlayout/ultrawide-monitor-split.sh (100%) delete mode 100755 tModLoader create mode 100755 tModLoaderFamilyShare.sh rename rofi/viewcam => viewcam (100%) delete mode 100755 workspace/wl.sh diff --git a/ha b/ha new file mode 120000 index 0000000..67296d7 --- /dev/null +++ b/ha @@ -0,0 +1 @@ +homeassistant \ No newline at end of file diff --git a/homeassistant/env b/homeassistant/env new file mode 120000 index 0000000..2eea525 --- /dev/null +++ b/homeassistant/env @@ -0,0 +1 @@ +.env \ No newline at end of file diff --git a/keymaps.sh.old b/keymaps.sh.old deleted file mode 100755 index 03604ee..0000000 --- a/keymaps.sh.old +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -#======================================================= -#Leave mod4 as windows key _only_ -xmodmap -e 'remove mod4 = Hyper_L' -#======================================================= -#Set mod3 to capslock -xmodmap -e 'add mod3 = Hyper_L' -#======================================================= -#bind the ><\ key next to left shift and ctrl to be the left windows key since this ibm keyboard doesnt have one -xmodmap -e 'keycode 94 = Super_L' -#======================================================= -#bind the capslock key to Hyper, which is an unused extra modifier key -#xmodmap -e 'keycode 66 = Hyper_L' -#======================================================= -#Bind hyper, when pressed and released by itself, to hit escape, because vim is cool -#pkill xcape && xcape -e 'Hyper_L=Escape' -d diff --git a/mount-all-filesystems.sh b/mount-all-filesystems.sh deleted file mode 100755 index 6951a3a..0000000 --- a/mount-all-filesystems.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -sshfs nas.mario:/mnt/b8ce9a57-7ce7-47b8-a233-21184c8a0953/share ~/share -o reconnect -o ServerAliveInterval=15 -sshfs gaming-win:/ ~/mnt/gaming-win -sshfs nas.mario:/mnt/mario/ ~/mnt/mario diff --git a/nohup.out b/nohup.out deleted file mode 100644 index e69de29..0000000 diff --git a/clipboardbuffers.py b/old/clipboardbuffers.py similarity index 100% rename from clipboardbuffers.py rename to old/clipboardbuffers.py diff --git a/lgctl b/old/lgctl similarity index 100% rename from lgctl rename to old/lgctl diff --git a/lgctl.sh b/old/lgctl.sh similarity index 100% rename from lgctl.sh rename to old/lgctl.sh diff --git a/ps3-controller-bluetooth-latency-fix.sh b/old/ps3-controller-bluetooth-latency-fix.sh similarity index 100% rename from ps3-controller-bluetooth-latency-fix.sh rename to old/ps3-controller-bluetooth-latency-fix.sh diff --git a/quest-cast.sh b/quest-cast.sh index 9c6f1ab..0ab051c 100755 --- a/quest-cast.sh +++ b/quest-cast.sh @@ -1,37 +1,2 @@ #!/bin/bash - -adb tcpip 5555 -sleep 1 -adb connect 10.0.0.30:5555 -read -p "Disconnect from USB and press Enter to continue" - -set -e -trap 'kill 0' EXIT - -screen_record() { - adb exec-out screenrecord \ - --bit-rate=5m \ - --output-format=h264 \ - --size 1832x960 \ - --time-limit=0 \ - - -} - -stream_play() { - ffplay \ - -framerate 30 \ - -fflags nobuffer+discardcorrupt\ - -flags low_delay \ - -framedrop \ - -strict experimental \ - -analyzeduration 100000 \ - -probesize 32 \ - -sync ext \ - -vf "setpts=PTS-STARTPTS,crop=916:960:0:0" \ - - -} - -# uncomment for audio - scrcpy --no-video --audio-buffer=200 & - -screen_record | stream_play +scrcpy --crop 1720:1664:0:100 -m 1000 -b 2M --max-fps 10 diff --git a/quest-cast2.sh b/quest-cast2.sh deleted file mode 100755 index 04906af..0000000 --- a/quest-cast2.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -# Enable ADB over TCP (run once usually) -adb tcpip 5555 -sleep 1 -adb connect 10.0.0.30:5555 || { echo "Connection failed - check IP/Wi-Fi"; exit 1; } - -read -p "Disconnect USB now if desired, then press Enter..." - -set -e -trap 'kill 0' EXIT INT TERM - -stream_play() { - ffplay \ - -fflags nobuffer+discardcorrupt+flush_packets \ - -flags low_delay \ - -framedrop \ - -probesize 32 \ - -analyzeduration 0 \ - -sync ext \ - -vf "setpts=PTS-STARTPTS" \ - - -} - -# Optional audio (low buffer, background) -# scrcpy --no-video --audio-buffer=80 --audio-bit-rate=128K & - -echo "Starting low-latency Quest mirror (Wi-Fi). Ctrl+C to stop." -echo "Expect 150–500 ms latency depending on network." - -while true; do - echo "[$(date '+%H:%M:%S')] (Re)starting screenrecord segment..." - - adb exec-out screenrecord \ - --bit-rate=8M \ - --output-format=h264 \ - --size 1280x720 \ - --time-limit 120 \ - - | stream_play - - # Small delay to let ffplay drain & avoid rapid respawn spam on error - sleep 0.5 -done diff --git a/quest-cast3.sh b/quest-cast3.sh deleted file mode 100755 index bccf054..0000000 --- a/quest-cast3.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash - -# Quest 2 wireless mirror to PC → 480i CRT (ultra-low quality for min game lag/latency) -# Removed --stay-awake (conflicts with --no-control) + fixed previous issues - -IP="10.0.0.30:5555" - -echo "Enabling ADB over TCP..." -adb tcpip 5555 -sleep 2 - -echo "Connecting to Quest..." -adb connect "${IP}" - -echo "" -echo "ADB devices (should list your Quest):" -adb devices - -echo "" -read -p "Disconnect USB now. Wake Quest fully (put it on), launch game/app, press Enter..." - -echo "" -echo "Starting scrcpy... (fullscreen the window with F11 or OS shortcut; q/Ctrl+C to quit)" -echo "" - -scrcpy -s "${IP}" \ -# --crop=1832:960:1832:0 \ - --crop=1832:960:0:0 \ - --max-size=640 \ - --max-fps=30 \ - --video-bit-rate=800K \ - --no-audio \ - --no-control \ - --always-on-top \ - --window-width=640 \ - --window-height=480 \ - --window-borderless - -echo "" -echo "Troubleshooting:" -echo " - Black screen? Try left-eye crop instead: change to --crop=1832:960:0:0" -echo " Or tweak offset: --crop=1832:960:1700:100 (experiment in 100-pixel steps)" -echo " - Still black/no video? Add this to the scrcpy line:" -echo " --encoder=OMX.google.h264.encoder" -echo " (forces a software encoder on Quest — often fixes black screens on Horizon OS)" -echo " - Game lag/stutter? Lower further: --video-bit-rate=500K or --max-size=480" -echo " - Output HDMI from PC → cheap HDMI-to-composite adapter → your 480i CRT" -echo " - Quest sleeps too fast? Enable 'Stay awake' manually in Quest Developer Options (while charging via USB briefly)" diff --git a/quest-cast4.sh b/quest-cast4.sh deleted file mode 100755 index 5f7d094..0000000 --- a/quest-cast4.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -# Quest 2 wireless mirror to PC → 480i CRT (ultra-low quality for min game lag/latency) -# Removed --stay-awake (conflicts with --no-control) + fixed previous issues - -IP="10.0.0.30:5555" - -echo "Enabling ADB over TCP..." -adb tcpip 5555 -sleep 2 - -echo "Connecting to Quest..." -adb connect "${IP}" - -echo "" -echo "ADB devices (should list your Quest):" -adb devices - -echo "" -read -p "Disconnect USB now. Wake Quest fully (put it on), launch game/app, press Enter..." - -echo "" -echo "Starting scrcpy... (fullscreen the window with F11 or OS shortcut; q/Ctrl+C to quit)" -echo "" - -scrcpy -s "${IP}" \ -# --crop=1832:960:1832:0 \ - --crop=1832:960:0:0 \ - --max-size=640 \ - --max-fps=30 \ - --video-bit-rate=800K \ - --no-control \ - --always-on-top \ - --window-width=640 \ - --window-height=480 \ - --window-borderless - -echo "" -echo "Troubleshooting:" -echo " - Black screen? Try left-eye crop instead: change to --crop=1832:960:0:0" -echo " Or tweak offset: --crop=1832:960:1700:100 (experiment in 100-pixel steps)" -echo " - Still black/no video? Add this to the scrcpy line:" -echo " --encoder=OMX.google.h264.encoder" -echo " (forces a software encoder on Quest — often fixes black screens on Horizon OS)" -echo " - Game lag/stutter? Lower further: --video-bit-rate=500K or --max-size=480" -echo " - Output HDMI from PC → cheap HDMI-to-composite adapter → your 480i CRT" -echo " - Quest sleeps too fast? Enable 'Stay awake' manually in Quest Developer Options (while charging via USB briefly)" diff --git a/quest-cast5.sh b/quest-cast5.sh deleted file mode 100755 index c0f3ece..0000000 --- a/quest-cast5.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -# Quest 2 wireless mirror to PC → 480i CRT -# --no-audio ensures Quest headset NOT muted (sound stays in-headset) -# Left-eye crop (since right gave black; tweak if needed) - -IP="10.0.0.30:5555" - -echo "Enabling ADB over TCP..." -adb tcpip 5555 -sleep 2 - -echo "Connecting to Quest..." -adb connect "${IP}" - -echo "" -echo "ADB devices (should list your Quest):" -adb devices - -echo "" -read -p "Disconnect USB now. Wake Quest fully (put it on), launch game/app, press Enter..." - -echo "" -echo "Starting scrcpy... (fullscreen with F11 or similar; q/Ctrl+C to quit)" -echo "" - -scrcpy -s "${IP}" \ - --crop=1832:960:0:0 \ - --max-size=640 \ - --max-fps=30 \ - --video-bit-rate=800K \ - --no-audio \ - --no-control \ - --always-on-top \ - --window-width=640 \ - --window-height=480 \ - --window-borderless - -echo "" -echo "Troubleshooting:" -echo " - Black screen? Try centered/right-ish crop: --crop=1600:900:2017:510" -echo " Or simple right half: --crop=1832:960:1832:0" -echo " Add --encoder=OMX.google.h264.encoder if black persists (forces software encoder)" -echo " - Audio still muted on Quest? Double-check no other flags removed --no-audio; restart Quest if stuck" -echo " - Game lag? Lower to --video-bit-rate=500K or --max-size=480" -echo " - HDMI from PC → composite adapter → CRT" diff --git a/quest-cast6.sh b/quest-cast6.sh deleted file mode 100755 index 31a983f..0000000 --- a/quest-cast6.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -# Quest 2 wireless mirror to PC → 480i CRT -# Updated crop to avoid lens top (centered single view) + audio on Quest - -IP="10.0.0.30:5555" - -echo "Enabling ADB over TCP..." -adb tcpip 5555 -sleep 2 - -echo "Connecting to Quest..." -adb connect "${IP}" - -echo "" -echo "ADB devices (should list your Quest):" -adb devices - -echo "" -read -p "Disconnect USB now. Wake Quest fully (put it on), launch game/app, press Enter..." - -echo "" -echo "Starting scrcpy... (fullscreen with F11 or similar; q/Ctrl+C to quit)" -echo "" - -scrcpy -s "${IP}" \ - --crop=1600:900:2017:510 \ - --max-size=640 \ - --max-fps=30 \ - --video-bit-rate=800K \ - --no-audio \ - --no-control \ - --always-on-top \ - --window-width=640 \ - --window-height=480 \ - --window-borderless - -echo "" -echo "Troubleshooting:" -echo " - Still seeing lens top/empty area? Try higher y-offset: --crop=1600:900:2017:550" -echo " Or alternative crops:" -echo " --crop=1600:900:68:495 (left-leaning centered view)" -echo " --crop=1832:960:1832:100 (simple right half, shifted down a bit)" -echo " - Black screen? Add --encoder=OMX.google.h264.encoder" -echo " - Crop feels off-center/UI cut? Tweak x-offset by 50–100 (e.g. 2017 → 1950 or 2100)" -echo " - Game lag? Lower --video-bit-rate=500K or --max-size=480" -echo " - HDMI from PC → composite adapter → CRT" diff --git a/quest-cast7.sh b/quest-cast7.sh deleted file mode 100755 index 34f2c86..0000000 --- a/quest-cast7.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash - -# Quest 2 wireless mirror to PC → 480i CRT -# Only crop changed for better 4:3 compatibility (taller source to reduce bars) - -IP="10.0.0.30:5555" - -echo "Enabling ADB over TCP..." -adb tcpip 5555 -sleep 2 - -echo "Connecting to Quest..." -adb connect "${IP}" - -echo "" -echo "ADB devices (should list your Quest):" -adb devices - -echo "" -read -p "Disconnect USB now. Wake Quest fully (put it on), launch game/app, press Enter..." - -echo "" -echo "Starting scrcpy... (fullscreen with F11 or similar; q/Ctrl+C to quit)" -echo "" - -scrcpy -s "${IP}" \ - --crop=1440:1080:2017:420 \ - --max-size=800 \ - --max-fps=30 \ - --video-bit-rate=800K \ - --no-audio \ - --no-control \ - --always-on-top \ - --window-width=640 \ - --window-height=480 \ - --window-borderless - -echo "" -echo "Troubleshooting:" -echo " - Too much lens top again? Increase y-offset: --crop=1440:1080:2017:480" -echo " - Cuts bottom/UI? Lower y-offset back: --crop=1440:1080:2017:510 or try original 1600:900:2017:510" -echo " - Still too many black bars? Use wider source: --crop=1500:1125:2017:450 (closer to 4:3 fill)" -echo " - Black screen? Add --encoder=OMX.google.h264.encoder" -echo " - HDMI from PC → composite adapter → CRT" diff --git a/quest-cast8.sh b/quest-cast8.sh deleted file mode 100755 index 0176eff..0000000 --- a/quest-cast8.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -# Quest 2 wireless mirror to PC → 480i CRT -# No crop to reduce flickering/black intermittents (common fix for Horizon OS 74+) - -IP="10.0.0.30:5555" - -echo "Enabling ADB over TCP..." -adb tcpip 5555 -sleep 2 - -echo "Connecting to Quest..." -adb connect "${IP}" - -echo "" -echo "ADB devices (should list your Quest):" -adb devices - -echo "" -read -p "Disconnect USB now. Put on Quest fully, launch game/app FIRST, then press Enter..." - -echo "" -echo "Starting scrcpy... (fullscreen with F11; q/Ctrl+C to quit)" -echo "" - -scrcpy -s "${IP}" \ - --max-size=480 \ - --max-fps=15 \ - --video-bit-rate=400K \ - --no-audio \ - --no-control \ - --always-on-top \ - --window-width=640 \ - --window-height=480 \ - --window-borderless - -echo "" -echo "Troubleshooting:" -echo " - Flicker gone? Re-add crop later (--crop=1440:1080:2017:420) and test if it returns" -echo " - Still flickers? Try --encoder=OMX.google.h264.encoder or lower bitrate to 500K" -echo " - Wider black bars now? Normal without crop — use OBS crop if needed" -echo " - HDMI PC → composite adapter → CRT" diff --git a/quest-cast9.sh b/quest-cast9.sh deleted file mode 100755 index 4d5528e..0000000 --- a/quest-cast9.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -# Quest 2 wireless mirror to PC → 480i CRT -# Forced encoder + low settings to stop ~20s black flicker (Horizon OS v74+ bug) - -IP="10.0.0.30:5555" - -echo "Enabling ADB over TCP..." -adb tcpip 5555 -sleep 2 - -echo "Connecting to Quest..." -adb connect "${IP}" - -echo "" -echo "ADB devices:" -adb devices - -echo "" -read -p "Disconnect USB now. Reboot Quest if possible. Put on headset, enter game/app NOW, then press Enter..." - -echo "" -echo "Starting scrcpy (test for flicker after 20–60s)..." -echo "" - -scrcpy -s "${IP}" \ - --max-size=640 \ - --max-fps=30 \ - --video-bit-rate=800K \ - --video-encoder=c2.qti.avc.encoder \ - --no-audio \ - --no-control \ - --always-on-top \ - --window-width=640 \ - --window-height=480 \ - --window-borderless - -echo "" -echo "Next steps if flicker remains:" -echo " - Swap encoder: --video-encoder=OMX.qcom.video.encoder.avc" -echo " - Lower more: --max-size=480 --video-bit-rate=400K --max-fps=24" -echo " - Check issue #5913 on GitHub for patched binaries (search 'Quest 2 fix')" -echo " - HDMI PC out → composite adapter → CRT" diff --git a/ultrawide-monitor-split.sh b/screenlayout/ultrawide-monitor-split.sh similarity index 100% rename from ultrawide-monitor-split.sh rename to screenlayout/ultrawide-monitor-split.sh diff --git a/tModLoader b/tModLoader deleted file mode 100755 index 427bb74..0000000 --- a/tModLoader +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -cd /home/lucka/.steam/debian-installation/steamapps/common/tModLoader -/home/lucka/.steam/debian-installation/steamapps/common/tModLoader/start-tModLoader-FamilyShare.sh -#sleep 10 -#steam steam://rungameid/12579072071637663744 diff --git a/tModLoaderFamilyShare.sh b/tModLoaderFamilyShare.sh new file mode 100755 index 0000000..017933d --- /dev/null +++ b/tModLoaderFamilyShare.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd ~/.steam/debian-installation/steamapps/common/tModLoader +~/.steam/debian-installation/steamapps/common/tModLoader/start-tModLoader-FamilyShare.sh diff --git a/rofi/viewcam b/viewcam similarity index 100% rename from rofi/viewcam rename to viewcam diff --git a/workspace/wl.sh b/workspace/wl.sh deleted file mode 100755 index 86ce8bd..0000000 --- a/workspace/wl.sh +++ /dev/null @@ -1,8 +0,0 @@ -sudo apt install \ - libwayland-dev \ - libwayland-client++0 \ - libwayland-client0 \ - libwayland-client-extra++0 \ - libegl-dev \ - libtls-dev -