about summary refs log tree commit diff
path: root/modules/common
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-06-21 01:02:13 +0300
committerAzat Bahawi <azat@bahawi.net>2023-06-21 01:02:13 +0300
commit8e048c489aed8b8b27695694e8d020358a081bd7 (patch)
tree2e6d24dd3d8ce2e8d22116683f9e882f8a58e183 /modules/common
parent2023-06-17 (diff)
2023-06-21
Diffstat (limited to 'modules/common')
-rw-r--r--modules/common/mpv.nix42
1 files changed, 29 insertions, 13 deletions
diff --git a/modules/common/mpv.nix b/modules/common/mpv.nix
index 97f406c..28b3cf5 100644
--- a/modules/common/mpv.nix
+++ b/modules/common/mpv.nix
@@ -46,6 +46,17 @@ in {
         profiles = {
           "protocol.http".force-window = "immediate";
           "protocol.https".profile = "protocol.http";
+
+          "extension.gif" = {
+            cache = false;
+            loop-file = true;
+          };
+          "extension.png" = {
+            profile = "extension.gif";
+            video-aspect-override = 0;
+          };
+          "extension.jpeg".profile = "extension.png";
+          "extension.jpg".profile = "extension.png";
         };
 
         config = let
@@ -70,15 +81,18 @@ in {
             "ru-RU"
           ];
         in {
-          audio-display = "no";
           autofit-larger = "100%x95%";
+          cache = true;
           cursor-autohide = 1000;
-          force-seekable = "no";
+          cursor-autohide-fs-only = true;
+          demuxer-max-back-bytes = "20M";
+          demuxer-max-bytes = "20M";
+          force-seekable = true;
           fullscreen = true;
           msg-color = true;
           msg-module = true;
           prefetch-playlist = true;
-          save-position-on-quit = false;
+          save-position-on-quit = true;
           screenshot-format = "png";
           screenshot-template = "%F [%p]";
           stop-screensaver = true;
@@ -89,9 +103,9 @@ in {
           osd-bar-h = 2;
           osd-bar-w = 60;
           osd-border-color = "#FF262626";
-          osd-border-size = 2.5;
+          osd-border-size = 2;
           osd-color = "#FFFFFFFF";
-          osd-duration = 2500;
+          osd-duration = 1000;
           osd-font-size = 40;
           osd-fractions = true;
           osd-level = 1;
@@ -99,20 +113,22 @@ in {
 
           osc = false;
 
-          sub-auto = "fuzzy";
-          sub-file-paths-append = "srt";
+          blend-subtitles = true;
+          embeddedfonts = false;
           sub-ass-force-margins = true;
           sub-ass-force-style = "kerning=yes";
-          sub-fix-timing = true;
-          sub-use-margins = true;
-          sub-font-size = 40;
-          sub-color = "#FFFFFFFF";
+          sub-auto = "fuzzy";
           sub-border-color = "#FF262626";
           sub-border-size = 2.5;
-          sub-shadow-offset = 1;
+          sub-color = "#FFFFFFFF";
+          sub-file-paths-append = "srt";
+          sub-fix-timing = true;
+          sub-font-size = 40;
+          sub-scale-with-window = true;
           sub-shadow-color = "#33000000";
+          sub-shadow-offset = 1;
           sub-spacing = 0.5;
-          blend-subtitles = true;
+          sub-use-margins = true;
 
           audio-file-auto = "fuzzy";
           volume = 100;

Consider giving Nix/NixOS a try! <3