From 11fe5f2f40bb272dedd746b78df33a9cf1e90858 Mon Sep 17 00:00:00 2001 From: Phantop Date: Tue, 23 Mar 2021 08:16:56 -0400 Subject: [PATCH] mpv: decrease zoom/pan, fix twitch-dl, update qute also use python3 for starship, always supath, open with rifle --- .config/mpv/input.conf | 14 +++++++------- .config/qutebrowser/config.py | 2 +- .config/qutebrowser/redirects.py | 2 +- .config/starship.toml | 3 +++ .local/bin/aliases | 5 ++--- .local/bin/twitch-dl | 2 +- 6 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.config/mpv/input.conf b/.config/mpv/input.conf index 8392f97..15a2995 100644 --- a/.config/mpv/input.conf +++ b/.config/mpv/input.conf @@ -1,14 +1,14 @@ [ multiply speed 1/1.05 ] multiply speed 1.05 -Alt+- add video-zoom -0.1 -Alt+= add video-zoom 0.1 -Alt++ add video-zoom 0.1 +Alt+- add video-zoom -0.05 +Alt+= add video-zoom 0.05 +Alt++ add video-zoom 0.05 -Alt+h add video-pan-x 0.05 -Alt+l add video-pan-x -0.05 -Alt+k add video-pan-y 0.05 -Alt+j add video-pan-y -0.05 +Alt+Left add video-pan-x -0.05 +Alt+Right add video-pan-x 0.05 +Alt+Up add video-pan-y -0.05 +Alt+Down add video-pan-y 0.05 CTRL+1 change-list glsl-shaders set "~~/shaders/Anime4K_Upscale_CNN_L_x2_Denoise.glsl:~~/shaders/Anime4K_Auto_Downscale_Pre_x4.glsl:~~/shaders/Anime4K_Upscale_CNN_M_x2_Deblur.glsl" CTRL+2 change-list glsl-shaders set "~~/shaders/Anime4K_Upscale_CNN_L_x2_Denoise.glsl:~~/shaders/Anime4K_Auto_Downscale_Pre_x4.glsl:~~/shaders/Anime4K_DarkLines_HQ.glsl:~~/shaders/Anime4K_ThinLines_HQ.glsl:~~/shaders/Anime4K_Upscale_CNN_M_x2_Deblur.glsl" diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index beb01cc..b99e2b5 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -25,7 +25,7 @@ ccw = c.colors.webpage ccwd = ccw.darkmode ccwd.enabled = True ccwd.policy.images = 'never' -ccw.prefers_color_scheme_dark = True +ccw.preferred_color_scheme = 'dark' mpv = 'spawn -m -d -v mpv --ytdl-raw-options=write-sub=,write-auto-sub=,embed-subs=,sub-lang=en' c.aliases['mpv'] = mpv diff --git a/.config/qutebrowser/redirects.py b/.config/qutebrowser/redirects.py index c0773e2..b9b1c6a 100644 --- a/.config/qutebrowser/redirects.py +++ b/.config/qutebrowser/redirects.py @@ -2,7 +2,7 @@ from qutebrowser.api import interceptor import operator, typing invid = 'invidious.tube' -nitter = 'tweet.lambda.dance' +nitter = 'nitter.snopyta.org' reddit = 'teddit.net' o = operator.methodcaller diff --git a/.config/starship.toml b/.config/starship.toml index 42b43cc..aedfc7e 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -17,3 +17,6 @@ format = "[$duration]($style) " [jobs] disabled = true + +[python] +python_binary = "python3" diff --git a/.local/bin/aliases b/.local/bin/aliases index 771c1ce..af2c664 100755 --- a/.local/bin/aliases +++ b/.local/bin/aliases @@ -16,13 +16,12 @@ a la 'l -a' a launcher 'rofi -combi-modi "drun,run" -show combi -modi "combi,window"' a less 'eval $PAGER' a off shutdown -a open xdg-open +a open rifle a pagedl 'wget -H -k -p --no-clobber -e robots=off' a qb 'qutebrowser --target auto' a re 'systemctl reboot -i' -a s sudo +a s 'sudo env "PATH=$PATH"' a se 's eopkg' -a supath 's env "PATH=$PATH"' a up 'se up --y' a v vi a vi nvim diff --git a/.local/bin/twitch-dl b/.local/bin/twitch-dl index 0e7c7db..6b73c14 100755 --- a/.local/bin/twitch-dl +++ b/.local/bin/twitch-dl @@ -3,4 +3,4 @@ title=$(youtube-dl -e $1 | sed 's|/|_|g') link=$(youtube-dl -g $1) shift -ffmpeg -i $link -c copy $@ "$title.mkv" +ffmpeg -i $link -c copy $@ "file:$title.mkv"