lots of organization

This commit is contained in:
lucca
2026-06-29 13:58:46 -04:00
parent a8cf478c03
commit a151be6dfe
23 changed files with 6 additions and 429 deletions
Symlink
+1
View File
@@ -0,0 +1 @@
homeassistant
+1
View File
@@ -0,0 +1 @@
.env
-16
View File
@@ -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
-4
View File
@@ -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
View File
View File
View File
+1 -36
View File
@@ -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
-43
View File
@@ -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 150500 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
-48
View File
@@ -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)"
-47
View File
@@ -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)"
-46
View File
@@ -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"
-47
View File
@@ -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 50100 (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"
-44
View File
@@ -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"
-42
View File
@@ -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"
-43
View File
@@ -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 2060s)..."
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"
-5
View File
@@ -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
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
cd ~/.steam/debian-installation/steamapps/common/tModLoader
~/.steam/debian-installation/steamapps/common/tModLoader/start-tModLoader-FamilyShare.sh
View File
-8
View File
@@ -1,8 +0,0 @@
sudo apt install \
libwayland-dev \
libwayland-client++0 \
libwayland-client0 \
libwayland-client-extra++0 \
libegl-dev \
libtls-dev