initial import

This commit is contained in:
lifning 2021-12-09 00:16:56 -08:00
commit 235b04935a
4 changed files with 45 additions and 0 deletions

8
disable-animations.css Normal file
View file

@ -0,0 +1,8 @@
*, :before, :after {
/*CSS transitions*/
transition-property: none !important;
/*CSS transforms*/
transform: none !important;
/*CSS animations*/
animation: none !important;
}

9
mpv.conf Normal file
View file

@ -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

23
xorg.conf Normal file
View file

@ -0,0 +1,23 @@
Section "Device"
Identifier "Card0"
Driver "modesetting"
Option "AccelMethod" "none"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 16
SubSectionSub "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

5
ytdl-mpv.sh Executable file
View file

@ -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'