diff options
| -rw-r--r-- | hosts/wonderland/home.nix | 3 | ||||
| -rw-r--r-- | share/home/default.nix | 1 | ||||
| -rw-r--r-- | share/home/mpv.nix | 12 |
3 files changed, 15 insertions, 1 deletions
diff --git a/hosts/wonderland/home.nix b/hosts/wonderland/home.nix index ff8215a..2255fea 100644 --- a/hosts/wonderland/home.nix +++ b/hosts/wonderland/home.nix @@ -11,7 +11,6 @@ let thunderbird brightnessctl - haruna # Video player libreoffice-qt discord @@ -39,6 +38,7 @@ in (home + /hyprland.nix) (home + /git.nix) (home + /gallery-dl.nix) + (home + /mpv.nix) (home + /firefox) ]; home.packages = with pkgs; @@ -77,6 +77,7 @@ in # Config (home + /kitty.nix) (home + /git.nix) + (home + /mpv.nix) (home + /firefox) ]; diff --git a/share/home/default.nix b/share/home/default.nix index dcd9af4..88351e2 100644 --- a/share/home/default.nix +++ b/share/home/default.nix @@ -51,6 +51,7 @@ userDirs = { enable = true; createDirectories = true; + pictures = "${config.home.homeDirectory}/Annex/Pictures"; }; }; diff --git a/share/home/mpv.nix b/share/home/mpv.nix new file mode 100644 index 0000000..62c9188 --- /dev/null +++ b/share/home/mpv.nix @@ -0,0 +1,12 @@ +{ config, ... }: { + programs.mpv = { + enable = true; + config = { + screenshot-format = "avif"; + # The format is '<Filename without extension> [<screenshot number>].avif' + # Read more about it at: https://mpv.io/manual/master/#screenshot + screenshot-template = "%F [%n]"; + screenshot-directory = "${config.xdg.userDirs.pictures}/Screenshots/mpv"; + }; + }; +} |
