diff --git a/.config/mpv/input.conf b/.config/mpv/input.conf index 32231a8..834ada7 100644 --- a/.config/mpv/input.conf +++ b/.config/mpv/input.conf @@ -1,3 +1,8 @@ ctrl+r cycle-values video-rotate 0 90 180 270 ctrl+b cycle deband +b cycle-values scale "bilinear" "spline64"; cycle-values dscale "bilinear" "mitchell"; cycle-values cscale "bilinear" "sinc" ctrl+s sub-reload +S screenshot-to-file /tmp/mpv-screenshot.png ; run sh -c "cat /tmp/mpv-screenshot.png | wl-copy -t image/png" + +x add sub-delay -0.04 +X add sub-delay +0.04 diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index 9cde9fc..ae71e0d 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -1,14 +1,35 @@ profile=gpu-hq -gpu-api=vulkan -gpu-context=waylandvk +#gpu-api=vulkan +gpu-context=wayland hwdec=none #ao=jack #audio-channels=stereo +scale=spline64 +dscale=mitchell +cscale=sinc +cscale-window=blackman +cscale-radius=3 deband=yes +screenshot-format=png + +#Interpolation +#blend-subtitles=yes +#video-sync=display-resample +#interpolation=yes +#tscale=box +#tscale-window=sphinx +#tscale-radius=1.0 +#tscale-clamp=0.0 + +sub-gray=yes # pour pas avoir des subs jaunes de merde +sub-gauss=0.7 # ça rend les subs un peu moins carrés, peut-être à adapter à vos envies +sub-font="Roboto Regular" prefetch-playlist=yes rebase-start-time=no ytdl-format=bestvideo[height<=?1080]+bestaudio/best -ytdl-raw-options="rm-cache-dir=:yes-playlist=" +#ytdl-raw-options="rm-cache-dir=:yes-playlist=" + +osd-fractions=yes diff --git a/.config/sway/config b/.config/sway/config index 6a9f23b..d4ca5b8 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -32,7 +32,8 @@ output eDP-1 pos 0 1480 res 1920 1080 output HDMI-A-1 pos 1920 1480 res 1920 1080 output "Samsung Electric Company SyncMaster H1AK500000" res 3840 2160 output "Dell Inc. DELL U2410 F525M0A1082L" pos 1920 680 res 1920 1200 -output "Dell Inc. DELL U2717D JXRPT83GAHKS" pos 3840 0 mode --custom 2560x1440@39Hz transform 90 +#output "Dell Inc. DELL U2717D JXRPT83GAHKS" pos 3840 0 mode --custom 2560x1440@39Hz transform 90 +output "Dell Inc. DELL U2717D JXRPT83GAHKS" pos 1920 1480 mode 2560 1440 output * bg ~/wallpapers/filianore-u.jpg fill focus output eDP-1 # @@ -266,6 +267,8 @@ bar { } } +bindsym Ctrl+m exec mpv "$(wl-paste -t text)" + hide_edge_borders both default_border none gaps inner 6 @@ -283,8 +286,8 @@ exec redshift -O 4500 -m wayland exec megasync exec nm-applet --indicator -exec cadence -exec ~/.local/start_jack.sh +#exec cadence +#exec ~/.local/start_jack.sh exec ~/.config/sway/workspace-rename.sh diff --git a/.gitignore b/.gitignore index 0c4168d..4774152 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .config/nvim/plugged .config/nvim/.netrwhist +.config/mpv/scripts/japan7.lua diff --git a/.zshrc b/.zshrc index c9e97e5..77339b8 100644 --- a/.zshrc +++ b/.zshrc @@ -33,3 +33,5 @@ if [ -f ~/.bash_aliases ]; then source ~/.bash_aliases fi eval $(thefuck --alias) + +alias chromium='GDK_BACKEND=wayland chromium --enable-features=UseOzonePlatform --ozone-platform=wayland'