diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-06-29 14:45:20 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-06-29 14:45:20 +0530 |
| commit | f8f66295d90c6db724da519cc1be1ef1233ecdf5 (patch) | |
| tree | 42b176ac7303f95c897671018b555c38765737f9 /modules/mpv.home.nix | |
| parent | edc4ef0106f7d4a37d367e81ae9e6470dbdc7087 (diff) | |
| download | nixos-config-f8f66295d90c6db724da519cc1be1ef1233ecdf5.tar.gz nixos-config-f8f66295d90c6db724da519cc1be1ef1233ecdf5.zip | |
config sync:
Diffstat (limited to 'modules/mpv.home.nix')
| -rw-r--r-- | modules/mpv.home.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/mpv.home.nix b/modules/mpv.home.nix new file mode 100644 index 0000000..a62e357 --- /dev/null +++ b/modules/mpv.home.nix @@ -0,0 +1,28 @@ +{ config, pkgs, ... }: +{ + programs.mpv = { + enable = true; + + bindings = { + "Alt+0" = "set window-scale 0.5"; + }; + + config = { + force-window = true; + ytdl-format = "bestvideo+bestaudio"; + cache-default = 4000000; + }; + + scripts = [ + pkgs.mpvScripts.uosc + ]; + + # scriptOpts = { + # osc = { + # scalewindowed = 2.0; + # vidscale = false; + # visibility = "always"; + # }; + # }; + }; +} |
