feat: add mpv with ModernZ OSC as default video player
All checks were successful
Update PKGBUILD version / update-pkgver (push) Successful in 3s
All checks were successful
Update PKGBUILD version / update-pkgver (push) Successful in 3s
- mpv-modernz-git + mpv-thumbfast-git in aur.txt - /etc/mpv/mpv.conf disables stock OSC + title bar - /etc/mpv/script-opts/modernz.conf overrides colors to Catppuccin Mocha (lavender accent) - moonarch-doctor checks deployed mpv configs
This commit is contained in:
parent
39094ee026
commit
0064170430
@ -39,6 +39,15 @@ Waybar wird über `moonarch-waybar` gestartet (nicht direkt). Der Wrapper merged
|
||||
- Benötigt `jq` (in PKGBUILD als Dependency)
|
||||
- System-Config muss valides JSON sein (kein JSONC)
|
||||
|
||||
## mpv + ModernZ OSC
|
||||
|
||||
Videoplayer ist `mpv` mit [ModernZ](https://github.com/Samillion/ModernZ) als OSC, Thumbnails via thumbfast:
|
||||
- `mpv-modernz-git` liefert `modernz.lua` + Font + Default-Config nach `/etc/mpv/`
|
||||
- `mpv-thumbfast-git` liefert `thumbfast.lua` nach `/etc/mpv/scripts/` (wird von ModernZ automatisch erkannt)
|
||||
- `defaults/etc/mpv/mpv.conf` deaktiviert Stock-OSC (`osc=no`) und Titelleiste (`title-bar=no`)
|
||||
- `defaults/etc/mpv/script-opts/modernz.conf` überschreibt die Farben auf Catppuccin Mocha (Lavender als Accent, matcht waybar/swaync)
|
||||
- Deploy via moonarch-git: staging nach `/usr/share/moonarch/mpv/`, `post_install` kopiert nach `/etc/mpv/` (modernz.conf wird dabei gegenüber dem AUR-Default überschrieben — gleiches Pattern wie foot.ini/waybar style.css)
|
||||
|
||||
## System Health Check (moonarch-doctor / moondoc)
|
||||
|
||||
Diagnose-Script das den Systemzustand gegen moonarch-Defaults prüft:
|
||||
|
||||
5
defaults/etc/mpv/mpv.conf
Normal file
5
defaults/etc/mpv/mpv.conf
Normal file
@ -0,0 +1,5 @@
|
||||
# Disable stock OSC — ModernZ replaces it.
|
||||
osc=no
|
||||
|
||||
# Hide native title bar for a cleaner borderless look (ModernZ draws its own).
|
||||
title-bar=no
|
||||
32
defaults/etc/mpv/script-opts/modernz.conf
Normal file
32
defaults/etc/mpv/script-opts/modernz.conf
Normal file
@ -0,0 +1,32 @@
|
||||
# ABOUTME: ModernZ OSC overrides for moonarch — Catppuccin Mocha palette.
|
||||
# ABOUTME: Only keys that diverge from upstream defaults; Lua defaults fill the rest.
|
||||
|
||||
# --- Background ---
|
||||
osc_color=#181825
|
||||
thumbnail_box_color=#11111b
|
||||
thumbnail_box_outline=#45475a
|
||||
|
||||
# --- Text ---
|
||||
window_title_color=#cdd6f4
|
||||
window_controls_color=#cdd6f4
|
||||
title_color=#cdd6f4
|
||||
cache_info_color=#a6adc8
|
||||
time_color=#cdd6f4
|
||||
chapter_title_color=#cdd6f4
|
||||
|
||||
# --- Buttons ---
|
||||
side_buttons_color=#cdd6f4
|
||||
middle_buttons_color=#cdd6f4
|
||||
playpause_color=#cdd6f4
|
||||
held_element_color=#6c7086
|
||||
|
||||
# --- Accent (Lavender, matches waybar glow / swaync border) ---
|
||||
seekbarfg_color=#b4befe
|
||||
seekbarbg_color=#45475a
|
||||
seekbar_cache_color=#585b70
|
||||
seek_handle_color=#b4befe
|
||||
seek_handle_border_color=#cba6f7
|
||||
hover_effect_color=#b4befe
|
||||
nibble_color=#b4befe
|
||||
nibble_current_color=#cdd6f4
|
||||
nibbles_style=gap
|
||||
@ -30,6 +30,10 @@ wl-color-picker
|
||||
blueberry
|
||||
waterfox-bin
|
||||
|
||||
# Media
|
||||
mpv-modernz-git
|
||||
mpv-thumbfast-git
|
||||
|
||||
# System & Tools
|
||||
auto-cpufreq
|
||||
stasis
|
||||
|
||||
@ -199,6 +199,8 @@ check_config_match "/etc/xdg/swaync/style.css" "$SRC/swaync/style.css"
|
||||
check_config_match "/etc/greetd/config.toml" "$SRC/greetd/config.toml"
|
||||
check_config_match "/etc/greetd/niri-greeter.kdl" "$SRC/greetd/niri-greeter.kdl"
|
||||
check_config_match "/etc/moongreet/moongreet.toml" "$SRC/moongreet/moongreet.toml"
|
||||
check_config_match "/etc/mpv/mpv.conf" "$SRC/mpv/mpv.conf"
|
||||
check_config_match "/etc/mpv/script-opts/modernz.conf" "$SRC/mpv/modernz.conf"
|
||||
|
||||
if [[ -f /etc/zsh/zshrc.moonarch ]]; then
|
||||
pass "/etc/zsh/zshrc.moonarch"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user