From a8b778f04bebfccad75e46c7505e97e0d685102e Mon Sep 17 00:00:00 2001 From: Uyanide Date: Sun, 14 Sep 2025 22:40:56 +0200 Subject: [PATCH] minor --- .scripts/mpv-sm | 5 +++++ eww/Main/eww.yuck | 2 +- mpv/mpv.conf | 4 ++-- waybar/style.css | 3 ++- waybar/style.css.template | 3 ++- 5 files changed, 12 insertions(+), 5 deletions(-) create mode 100755 .scripts/mpv-sm diff --git a/.scripts/mpv-sm b/.scripts/mpv-sm new file mode 100755 index 0000000..9629900 --- /dev/null +++ b/.scripts/mpv-sm @@ -0,0 +1,5 @@ +#/bin/sh + +export NVPRESENT_ENABLE_SMOOTH_MOTION=1 + +mpv --vo=gpu-next --gpu-api=vulkan --gpu-context=waylandvk --video-sync=audio "$@" diff --git a/eww/Main/eww.yuck b/eww/Main/eww.yuck index 2549317..0a1635a 100644 --- a/eww/Main/eww.yuck +++ b/eww/Main/eww.yuck @@ -112,5 +112,5 @@ :windowtype "normal" :wm-ignore true :monitor 0 - :geometry (geometry :x 2 :y 0) + :geometry (geometry :x 0 :y 0) (main)) diff --git a/mpv/mpv.conf b/mpv/mpv.conf index df39944..b7548dd 100644 --- a/mpv/mpv.conf +++ b/mpv/mpv.conf @@ -67,7 +67,7 @@ osd-blur=0.2 # Gaussian blur factor. 0 means # ========== LANGUAGE PRIORITY ========== alang=ja,jp,jpn,en,eng # Audio language priority -slang=en,eng # Subtitle language priority +slang=zh_cn,zh_tw,zh,chi,en,eng # Subtitle language priority # ========== AUDIO ========== @@ -85,7 +85,7 @@ sub-fix-timing=no # https://mpv.io/manual/stable/# sub-auto=all # https://mpv.io/manual/stable/#options-sub-auto # The following options only apply to subtitles without own styling -sub-font='Netflix Sans Medium' # Specify font to use for subtitles that do not themselves specify a particular font +sub-font='Noto Sans CJK SC' # Specify font to use for subtitles that do not themselves specify a particular font sub-font-size=40 sub-color='#FFFFFFFF' sub-border-color='#FF000000' diff --git a/waybar/style.css b/waybar/style.css index 03911ce..ac8ddfe 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -24,7 +24,8 @@ /* The whole bar */ #waybar { - background-color: transparent; + background: linear-gradient(to bottom, alpha(@base, 0.8), alpha(@base, 0.6), alpha(@base, 0.4), alpha(@base, 0)); + /* background: transparent; */ color: @text; border-radius: 0px; margin: 0px; diff --git a/waybar/style.css.template b/waybar/style.css.template index 1024552..b97115d 100644 --- a/waybar/style.css.template +++ b/waybar/style.css.template @@ -24,7 +24,8 @@ /* The whole bar */ #waybar { - background-color: transparent; + background: linear-gradient(to bottom, alpha(@base, 0.8), alpha(@base, 0.6), alpha(@base, 0.4), alpha(@base, 0)); + /* background: transparent; */ color: @text; border-radius: 0px; margin: 0px;