mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2026-02-04 06:36:35 -08:00
Compare commits
4 Commits
f16148c0ca
...
fb7b605e55
| Author | SHA1 | Date | |
|---|---|---|---|
| fb7b605e55 | |||
| 84185b8dc6 | |||
| 063a3aaf9b | |||
| 2b53dd6ee1 |
Submodule .config/mpv-modules/ModernZ updated: 3b0c750466...f66905acff
Submodule .config/mpv-modules/mpv-anilist-updater updated: 8c1630d8e6...ace1f74822
176
.config/mpv/mpv.conf##os.WSL
Normal file
176
.config/mpv/mpv.conf##os.WSL
Normal file
@@ -0,0 +1,176 @@
|
|||||||
|
profile=high-quality
|
||||||
|
user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
|
||||||
|
|
||||||
|
# --- Shaders ---
|
||||||
|
glsl-shaders=""
|
||||||
|
# glsl-shaders="~~/shaders/ArtCNN_C4F32_DS.glsl"
|
||||||
|
# glsl-shaders="~~/shaders/ArtCNN_C4F32.glsl"
|
||||||
|
|
||||||
|
# --- Scaling & dithering ---
|
||||||
|
scale=spline36
|
||||||
|
dither=fruit
|
||||||
|
|
||||||
|
# --- Window & interface ---
|
||||||
|
ontop=yes
|
||||||
|
border=no
|
||||||
|
no-border
|
||||||
|
autofit=50%
|
||||||
|
osc=no
|
||||||
|
blend-subtitles=video
|
||||||
|
opengl-early-flush=no
|
||||||
|
|
||||||
|
# --- Subtitle defaults ---
|
||||||
|
sub-font="JetBrainsMono Nerd Font"
|
||||||
|
sub-font-size=45
|
||||||
|
sub-auto=fuzzy
|
||||||
|
slang=en,eng
|
||||||
|
subs-with-matching-audio=no
|
||||||
|
sub-fix-timing=yes
|
||||||
|
sub-ass-override=scale
|
||||||
|
sub-gauss=1.0
|
||||||
|
sub-gray=yes
|
||||||
|
sub-pos=100
|
||||||
|
|
||||||
|
# --- Audio (Windows) ---
|
||||||
|
volume=75
|
||||||
|
ao=wasapi
|
||||||
|
audio-spdif=ac3,dts-hd,truehd
|
||||||
|
audio-stream-silence=yes
|
||||||
|
audio-wait-open=0.1
|
||||||
|
|
||||||
|
# --- Networking ---
|
||||||
|
ytdl-format=bestvideo+bestaudio/best
|
||||||
|
ytdl-raw-options=sub-langs=en.*,write-auto-subs=
|
||||||
|
ytdl-raw-options-append=sponsorblock-mark=all
|
||||||
|
ytdl-raw-options-append=sponsorblock-remove=sponsor,selfpromo,interaction
|
||||||
|
|
||||||
|
# --- Video output & decoding ---
|
||||||
|
vo=gpu-next
|
||||||
|
hwdec=nvdec
|
||||||
|
hwdec-codecs=all
|
||||||
|
gpu-api=vulkan
|
||||||
|
gpu-context=winvk
|
||||||
|
vulkan-queue-count=2
|
||||||
|
vulkan-async-compute=yes
|
||||||
|
vulkan-async-transfer=yes
|
||||||
|
vd-lavc-dr=yes
|
||||||
|
vd-lavc-threads=0
|
||||||
|
video-sync=display-resample
|
||||||
|
|
||||||
|
# --- Scaling, interpolation, dithering ---
|
||||||
|
scale=ewa_lanczossharp
|
||||||
|
dscale=catmull_rom
|
||||||
|
cscale=ewa_lanczos
|
||||||
|
tscale=oversample
|
||||||
|
interpolation=yes
|
||||||
|
interpolation-preserve=no
|
||||||
|
interpolation-threshold=0.5
|
||||||
|
sigmoid-upscaling=yes
|
||||||
|
temporal-dither=yes
|
||||||
|
dither=error-diffusion
|
||||||
|
dither-depth=auto
|
||||||
|
error-diffusion=sierra-lite
|
||||||
|
|
||||||
|
# --- Antiring ---
|
||||||
|
scale-antiring=0.5
|
||||||
|
dscale-antiring=0.5
|
||||||
|
cscale-antiring=0.5
|
||||||
|
|
||||||
|
# --- Debanding ---
|
||||||
|
deband=yes
|
||||||
|
deband-iterations=2
|
||||||
|
deband-threshold=24
|
||||||
|
deband-range=16
|
||||||
|
deband-grain=4
|
||||||
|
|
||||||
|
# --- IPC (Windows named pipe) ---
|
||||||
|
input-ipc-server=\\.\pipe\mpv-socket
|
||||||
|
|
||||||
|
# --- Screenshots ---
|
||||||
|
screenshot-format=webp
|
||||||
|
screenshot-webp-lossless=yes
|
||||||
|
screenshot-high-bit-depth=yes
|
||||||
|
screenshot-sw=no
|
||||||
|
screenshot-directory="Z:/sudacode/pictures/mpv"
|
||||||
|
screenshot-template="%f-%wH.%wM.%wS.%wT-#%#00n"
|
||||||
|
|
||||||
|
# --- Session persistence ---
|
||||||
|
save-position-on-quit
|
||||||
|
watch-later-dir="~~/.watch-later"
|
||||||
|
resume-playback=yes
|
||||||
|
save-watch-history
|
||||||
|
watch-history-path="~~/state/watch_history.jsonl"
|
||||||
|
|
||||||
|
# --- HDR hints ---
|
||||||
|
target-colorspace-hint=yes
|
||||||
|
|
||||||
|
# --- Cache ---
|
||||||
|
cache=yes
|
||||||
|
demuxer-max-bytes=1GiB
|
||||||
|
demuxer-max-back-bytes=200MiB
|
||||||
|
cache-secs=30
|
||||||
|
demuxer-readahead-secs=30
|
||||||
|
|
||||||
|
# =========================
|
||||||
|
# Profiles
|
||||||
|
# =========================
|
||||||
|
|
||||||
|
[anime]
|
||||||
|
profile-desc="Anime upscaling with ArtCNN"
|
||||||
|
glsl-shaders="~~/shaders/ArtCNN_C4F32.glsl"
|
||||||
|
scale=ewa_lanczossharp
|
||||||
|
dither=error-diffusion
|
||||||
|
deband=yes
|
||||||
|
|
||||||
|
[movies]
|
||||||
|
profile-desc="Movies and TV shows"
|
||||||
|
profile-cond=width >= 1920 and filename:match("mkv$|mp4$")
|
||||||
|
glsl-shaders=""
|
||||||
|
scale=ewa_lanczos
|
||||||
|
target-peak=800
|
||||||
|
|
||||||
|
[hdr]
|
||||||
|
tone-mapping-param=0.5
|
||||||
|
tone-mapping-max-boost=2.0
|
||||||
|
allow-delayed-peak-detect=yes
|
||||||
|
icc-profile-auto=yes
|
||||||
|
|
||||||
|
[svp]
|
||||||
|
interpolation=no
|
||||||
|
input-ipc-server=\\.\pipe\mpv-socket
|
||||||
|
hr-seek-framedrop=no
|
||||||
|
resume-playback=no
|
||||||
|
|
||||||
|
[Idle]
|
||||||
|
profile-cond=p["idle-active"]
|
||||||
|
profile-restore=copy-equal
|
||||||
|
title=' '
|
||||||
|
keepaspect=no
|
||||||
|
|
||||||
|
[immersion]
|
||||||
|
cookies=yes
|
||||||
|
cookies-file="Z:/sudacode/japanese/cookies.Japanese.txt"
|
||||||
|
ytdl-raw-options=mark-watched=,write-auto-subs=,sub-langs=ja.*
|
||||||
|
ytdl-raw-options-append=cookies=Z:/sudacode/japanese/cookies.Japanese.txt
|
||||||
|
ytdl-raw-options-append=sponsorblock-mark=all
|
||||||
|
ytdl-raw-options-append=sponsorblock-remove=sponsor,selfpromo,interaction
|
||||||
|
sub-auto=fuzzy
|
||||||
|
alang=ja,jp,jpn,japanese,en,eng,english
|
||||||
|
slang=ja,jp,jpn,japanese,en,eng,english
|
||||||
|
vlang=ja,jpn
|
||||||
|
subs-with-matching-audio=yes
|
||||||
|
sub-font="Noto Sans CJK JP Regular"
|
||||||
|
glsl-shaders="~~/shaders/ArtCNN_C4F32.glsl"
|
||||||
|
scale=ewa_lanczossharp
|
||||||
|
dither=error-diffusion
|
||||||
|
deband=yes
|
||||||
|
|
||||||
|
[anime-subs]
|
||||||
|
profile-cond=p["slang"] == "ja" or p["slang"] == "ja.hi"
|
||||||
|
sub-font="Noto Sans CJK JP Regular"
|
||||||
|
sub-font-size=42
|
||||||
|
sub-border-size=1.2
|
||||||
|
sub-shadow-color=0.0/0.0/0.0/0.6
|
||||||
|
sub-shadow-offset=3
|
||||||
|
sub-hinting=light
|
||||||
|
|
||||||
11
.config/mpv/script-opts/anilistUpdater.conf##os.WSL
Normal file
11
.config/mpv/script-opts/anilistUpdater.conf##os.WSL
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# Use 'yes' or 'no' for boolean options below
|
||||||
|
# Example for multiple directories (comma or semicolon separated):
|
||||||
|
# DIRECTORIES=D:/Torrents,D:/Anime
|
||||||
|
# or
|
||||||
|
# DIRECTORIES=D:/Torrents;D:/Anime
|
||||||
|
DIRECTORIES=/mnt/j/anime
|
||||||
|
UPDATE_PERCENTAGE=85
|
||||||
|
SET_COMPLETED_TO_REWATCHING_ON_FIRST_EPISODE=no
|
||||||
|
UPDATE_PROGRESS_WHEN_REWATCHING=yes
|
||||||
|
SET_TO_COMPLETED_AFTER_LAST_EPISODE_CURRENT=yes
|
||||||
|
SET_TO_COMPLETED_AFTER_LAST_EPISODE_REWATCHING=yes
|
||||||
33
.config/mpv/script-opts/autosubsync.conf##os.WSL
Normal file
33
.config/mpv/script-opts/autosubsync.conf##os.WSL
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# Absolute paths to the executables, if needed:
|
||||||
|
|
||||||
|
# 1. ffmpeg
|
||||||
|
ffmpeg_path=/usr/bin/ffmpeg
|
||||||
|
|
||||||
|
# 2. ffsubsync
|
||||||
|
ffsubsync_path=/usr/bin/ffsubsync
|
||||||
|
|
||||||
|
# 3. alass
|
||||||
|
alass_path=/usr/bin/alass
|
||||||
|
|
||||||
|
# Preferred retiming tool. Allowed options: 'ffsubsync', 'alass', 'ask'.
|
||||||
|
# If set to 'ask', the add-on will ask to choose the tool every time:
|
||||||
|
|
||||||
|
# 1. Preferred tool for syncing to audio.
|
||||||
|
# audio_subsync_tool=ask
|
||||||
|
audio_subsync_tool=ffsubsync
|
||||||
|
# audio_subsync_tool=alass
|
||||||
|
|
||||||
|
# 2. Preferred tool for syncing to another subtitle.
|
||||||
|
# altsub_subsync_tool=ask
|
||||||
|
# altsub_subsync_tool=ffsubsync
|
||||||
|
altsub_subsync_tool=alass
|
||||||
|
|
||||||
|
# Unload old subs (yes,no)
|
||||||
|
# After retiming, tell mpv to forget the original subtitle track.
|
||||||
|
unload_old_sub=yes
|
||||||
|
# unload_old_sub=no
|
||||||
|
|
||||||
|
# Overwrite the original subtitle file.
|
||||||
|
# Replace the old subtitle file with the retimed file.
|
||||||
|
# overwrite_old_sub=yes
|
||||||
|
overwrite_old_sub=no
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
start_tracking_key=ctrl+t
|
start_tracking_key=ctrl+t
|
||||||
data_dir=/home/sudacode/.config/mpv/scripts/immersion-tracker/data
|
data_dir=/home/sudacode/.config/mpv/scripts/immersion-tracker/data
|
||||||
csv_file=/truenas/sudacode/japanese/immersion_tracker.csv
|
csv_file=/mnt/h/japanese/immersion_tracker.csv
|
||||||
session_file=/home/sudacode/.config/mpv/scripts/immersion-tracker/data/current_session.json
|
session_file=/home/sudacode/.config/mpv/scripts/immersion-tracker/data/current_session.json
|
||||||
min_session_duration=30
|
min_session_duration=30
|
||||||
save_interval=10
|
save_interval=10
|
||||||
|
|||||||
22
.config/mpv/script-opts/immersion-tracker.conf##os.WSL
Normal file
22
.config/mpv/script-opts/immersion-tracker.conf##os.WSL
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
start_tracking_key=ctrl+t
|
||||||
|
data_dir=/home/sudacode/.config/mpv/scripts/immersion-tracker/data
|
||||||
|
csv_file=/truenas/sudacode/japanese/immersion_tracker.csv
|
||||||
|
session_file=/home/sudacode/.config/mpv/scripts/immersion-tracker/data/current_session.json
|
||||||
|
min_session_duration=30
|
||||||
|
save_interval=10
|
||||||
|
enable_debug_logging=no
|
||||||
|
backup_sessions=no
|
||||||
|
max_backup_files=10
|
||||||
|
use_title=yes
|
||||||
|
use_filename=no
|
||||||
|
custom_prefix=[Immersion]
|
||||||
|
max_title_length = 100
|
||||||
|
export_csv=yes
|
||||||
|
export_json=no
|
||||||
|
export_html=no
|
||||||
|
backup_csv=yes
|
||||||
|
show_session_start=yes
|
||||||
|
show_session_end=yes
|
||||||
|
show_progress_milestones=no
|
||||||
|
milestone_percentages=25507590
|
||||||
|
|
||||||
35
.config/mpv/script-opts/mpv-youtube-queue.conf##os.WSL
Normal file
35
.config/mpv/script-opts/mpv-youtube-queue.conf##os.WSL
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
add_to_queue=ctrl+a
|
||||||
|
default_save_method=unwatched
|
||||||
|
download_current_video=ctrl+d
|
||||||
|
download_selected_video=ctrl+D
|
||||||
|
move_cursor_down=ctrl+j
|
||||||
|
move_cursor_up=ctrl+k
|
||||||
|
load_queue=ctrl+l
|
||||||
|
move_video=ctrl+m
|
||||||
|
play_next_in_queue=ctrl+n
|
||||||
|
open_video_in_browser=ctrl+o
|
||||||
|
open_channel_in_browser=ctrl+O
|
||||||
|
play_previous_in_queue=ctrl+p
|
||||||
|
print_current_video=ctrl+P
|
||||||
|
print_queue=ctrl+q
|
||||||
|
save_queue=ctrl+s
|
||||||
|
save_full_queue=ctrl+S
|
||||||
|
remove_from_queue=ctrl+x
|
||||||
|
play_selected_video=ctrl+ENTER
|
||||||
|
browser=zen-browser
|
||||||
|
clipboard_command=powershell -command Get-Clipboard
|
||||||
|
cursor_icon=➤
|
||||||
|
display_limit=10
|
||||||
|
download_directory=~/videos/YouTube
|
||||||
|
download_quality=1080p
|
||||||
|
downloader=curl
|
||||||
|
font_name=JetBrainsMono NF
|
||||||
|
font_size=12
|
||||||
|
marked_icon=⇅
|
||||||
|
menu_timeout=5
|
||||||
|
show_errors=yes
|
||||||
|
ytdlp_file_format=mp4
|
||||||
|
ytdlp_output_template=%(uploader)s/%(title)s.%(ext)s
|
||||||
|
use_history_db=yes
|
||||||
|
backend_host=http://localhost
|
||||||
|
backend_port=42069
|
||||||
@@ -134,7 +134,8 @@ set -gq @catppuccin_pane_number_position "left" # right, left
|
|||||||
|
|
||||||
set -gq @catppuccin_window_text_color "#{@thm_surface_0}"
|
set -gq @catppuccin_window_text_color "#{@thm_surface_0}"
|
||||||
set -gq @catppuccin_window_number_color "#{@thm_overlay_2}"
|
set -gq @catppuccin_window_number_color "#{@thm_overlay_2}"
|
||||||
set -ogq @catppuccin_window_text " #T"
|
set -q @catppuccin_window_text " #W"
|
||||||
|
set -q @catppuccin_window_current_text " #W"
|
||||||
set -gq @catppuccin_window_number "#I"
|
set -gq @catppuccin_window_number "#I"
|
||||||
set -gq @catppuccin_window_current_text_color "#{@thm_surface_1}"
|
set -gq @catppuccin_window_current_text_color "#{@thm_surface_1}"
|
||||||
set -gq @catppuccin_window_current_number_color "#{@thm_mauve}"
|
set -gq @catppuccin_window_current_number_color "#{@thm_mauve}"
|
||||||
|
|||||||
Reference in New Issue
Block a user