diff --git a/README.org b/README.org index 5098a69..3e30728 100644 --- a/README.org +++ b/README.org @@ -431,7 +431,7 @@ feh tagutil python310Packages.mutagen python310Packages.audiotools -mpv +# mpv nerdfonts # latte-dock plasma-browser-integration @@ -2374,9 +2374,43 @@ I also use home-manager for managing dotfiles. This means that everything is con source = ../qutebrowser/qsettings; }; - home.file.".config/mpv" = { - source = ../mpv; - recursive = false; + programs.mpv = { + enable = true; + scripts = with pkgs.mpvScripts; [ mpris thumbnail youtube-quality sponsorblock]; + config = { + osc = false; + vo = "gpu"; + af = "scaletempo2"; + autofit = "4000x2900"; + geometry = "50%:50%"; + hwdec = "auto"; + rtsp-transport = "udp"; + speed = 1.95; + ytdl-format = "bestvideo[height<=?720][fps<=?30]+bestaudio/best"; + }; + profiles = { + fast = { + speed = 1.95; + }; + slow = { + speed = 1; + }; + wc = { + speed = 1; + osd-level = 0; + osc = false; + load-scripts = false; + profile = "low-latency"; + demuxer-lavf-format = "video4linux2"; + demuxer-lavf-o-set = "input_format=mjpeg,video_size=1920x1080,framerate=60"; + fps = 60; + }; + }; + }; + + home.file.".config/mpv/scripts" = { + source = ../mpv/scripts; + recursive = true; }; home.file.".config/imv" = { diff --git a/mpv/mpv.conf b/mpv/mpv.conf index 07c94e9..c986a19 100644 --- a/mpv/mpv.conf +++ b/mpv/mpv.conf @@ -2,7 +2,7 @@ osc=no vo=gpu af=scaletempo2 -autofit=2800x1800 +autofit=90%x90% geometry=50%:50% # input-ipc-server="/tmp/mpvsocket" hwdec=auto diff --git a/system/kaladin/configuration.nix b/system/kaladin/configuration.nix index c07d77f..e956b33 100644 --- a/system/kaladin/configuration.nix +++ b/system/kaladin/configuration.nix @@ -308,7 +308,7 @@ tagutil python310Packages.mutagen python310Packages.audiotools - mpv + # mpv nerdfonts # latte-dock plasma-browser-integration diff --git a/system/syl/configuration.nix b/system/syl/configuration.nix index e27f826..b127b5a 100644 --- a/system/syl/configuration.nix +++ b/system/syl/configuration.nix @@ -327,7 +327,7 @@ tagutil python310Packages.mutagen python310Packages.audiotools - mpv + # mpv nerdfonts # latte-dock plasma-browser-integration diff --git a/user/home.nix b/user/home.nix index 3c2494c..b15fb94 100644 --- a/user/home.nix +++ b/user/home.nix @@ -378,9 +378,43 @@ source = ../qutebrowser/qsettings; }; - home.file.".config/mpv" = { - source = ../mpv; - recursive = false; + programs.mpv = { + enable = true; + scripts = with pkgs.mpvScripts; [ mpris thumbnail youtube-quality sponsorblock]; + config = { + osc = false; + vo = "gpu"; + af = "scaletempo2"; + autofit = "4000x2900"; + geometry = "50%:50%"; + hwdec = "auto"; + rtsp-transport = "udp"; + speed = 1.95; + ytdl-format = "bestvideo[height<=?720][fps<=?30]+bestaudio/best"; + }; + profiles = { + fast = { + speed = 1.95; + }; + slow = { + speed = 1; + }; + wc = { + speed = 1; + osd-level = 0; + osc = false; + load-scripts = false; + profile = "low-latency"; + demuxer-lavf-format = "video4linux2"; + demuxer-lavf-o-set = "input_format=mjpeg,video_size=1920x1080,framerate=60"; + fps = 60; + }; + }; + }; + + home.file.".config/mpv/scripts" = { + source = ../mpv/scripts; + recursive = true; }; home.file.".config/imv" = {