Skip to content

Instantly share code, notes, and snippets.

@aaronedev
Last active October 18, 2025 10:26
Show Gist options
  • Select an option

  • Save aaronedev/8a5b8e0f8d083f1adfea12e36bfbc529 to your computer and use it in GitHub Desktop.

Select an option

Save aaronedev/8a5b8e0f8d083f1adfea12e36bfbc529 to your computer and use it in GitHub Desktop.
#!/bin/bash
# new display select usb -d 90fps
scrcpy -d --legacy-paste --video-codec=h265 --max-fps=90 --shortcut-mod=ralt --mouse-bind=++bh:++sn --keyboard=uhid --new-display=1920x1080/180 &
# first scrcpy
scrcpy --video-codec=h265 --max-size=1920 --max-fps=60 --shortcut-mod=lctrl --mouse-bind=++bh:++sn --keyboard=uhid &
# second scrcpy
scrcpy --video-codec=h265 --max-fps=60 --shortcut-mod=rctrl --mouse-bind=++bh:++sn --keyboard=uhid --new-display=1920x1080 &
# third scrcpy
scrcpy --video-codec=h265 --max-fps=60 --shortcut-mod=rctrl --mouse-bind=++bh:++sn --keyboard=uhid --new-display=1920x1080 --window-borderless --window-x=0 --window-y=0 --window-width=1920 --window-height=1080 --window-title='pixel7' &
# legacy-paste pixel-7 copy paste fix + /180 smaller less intrusive UI
scrcpy --legacy-paste --video-codec=h265 --max-fps=60 --shortcut-mod=ralt --mouse-bind=++bh:++sn --keyboard=uhid --new-display=1920x1080/180 &
# nohup live forever
nohup scrcpy --legacy-paste --video-codec=h265 --max-fps=60 --shortcut-mod=ralt --mouse-bind=++bh:++sn --keyboard=uhid &
# INFO best one
scrcpy --legacy-paste --shortcut-mod=lalt --mouse-bind=++bh:++sn --keyboard=uhid --disable-screensaver --new-display=1920x1080/144 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment