commit 235b04935ace1d8a1b4e2fe5bbc67e2ca7187f51 Author: lifning <> Date: Thu Dec 9 00:16:56 2021 -0800 initial import diff --git a/disable-animations.css b/disable-animations.css new file mode 100644 index 0000000..0012a9c --- /dev/null +++ b/disable-animations.css @@ -0,0 +1,8 @@ +*, :before, :after { + /*CSS transitions*/ + transition-property: none !important; + /*CSS transforms*/ + transform: none !important; + /*CSS animations*/ + animation: none !important; + } diff --git a/mpv.conf b/mpv.conf new file mode 100644 index 0000000..0102b37 --- /dev/null +++ b/mpv.conf @@ -0,0 +1,9 @@ +vo=x11 +vd-lavc-fast +sws-fast +# "point" is nearest-neighbor, but fast-bilinear is also not too slow +sws-scaler=point +audio-pitch-correction=no +# make screen tearing less perceptible +speed=1.005 +demuxer-thread=no diff --git a/xorg.conf b/xorg.conf new file mode 100644 index 0000000..99ab1d7 --- /dev/null +++ b/xorg.conf @@ -0,0 +1,23 @@ +Section "Device" + Identifier "Card0" + Driver "modesetting" + Option "AccelMethod" "none" +EndSection + +Section "Screen" + Identifier "Screen0" + Device "Card0" + Monitor "Monitor0" + DefaultDepth 16 + SubSection "Display" + Depth 16 + Viewport 0 0 + EndSubSection +EndSection + +Section "Monitor" + Identifier "Monitor0" + Modeline "1000x480_60.00" 37.45 1000 1024 1128 1256 480 481 484 497 -HSync +Vsync + Modeline "752x360_60.00" 20.05 752 752 824 896 360 361 364 373 -HSync +Vsync + Option "PreferredMode" "1000x480_60.00" +EndSection diff --git a/ytdl-mpv.sh b/ytdl-mpv.sh new file mode 100755 index 0000000..3602c09 --- /dev/null +++ b/ytdl-mpv.sh @@ -0,0 +1,5 @@ +#!/bin/sh +set -ex +mkdir -p /dev/shm/ytdl +cd /dev/shm/ytdl +yt-dlp -f 'bestvideo[height<=360][ext=mp4]+bestaudio[ext=m4a]' "$(xsel -b)" --exec 'mpv --video-unscaled=yes'