From 235b04935ace1d8a1b4e2fe5bbc67e2ca7187f51 Mon Sep 17 00:00:00 2001 From: lifning <> Date: Thu, 9 Dec 2021 00:16:56 -0800 Subject: [PATCH] initial import --- disable-animations.css | 8 ++++++++ mpv.conf | 9 +++++++++ xorg.conf | 23 +++++++++++++++++++++++ ytdl-mpv.sh | 5 +++++ 4 files changed, 45 insertions(+) create mode 100644 disable-animations.css create mode 100644 mpv.conf create mode 100644 xorg.conf create mode 100755 ytdl-mpv.sh 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'