From a9cc6ee008935b544a327d4bc41bd3037d0bb533 Mon Sep 17 00:00:00 2001 From: joy Date: Tue, 17 Sep 2024 22:19:37 +0200 Subject: [PATCH] mpv --- modules/apps/gui/default.nix | 5 +++-- modules/apps/gui/misc/default.nix | 1 - modules/apps/gui/mpv/default.nix | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 modules/apps/gui/mpv/default.nix diff --git a/modules/apps/gui/default.nix b/modules/apps/gui/default.nix index 05a549f..8740c07 100644 --- a/modules/apps/gui/default.nix +++ b/modules/apps/gui/default.nix @@ -1,11 +1,12 @@ { imports = [ - ./alacritty + ./mpv ./code - ./firefox ./games ./nemo ./rofi + ./firefox + ./alacritty ./misc ]; } diff --git a/modules/apps/gui/misc/default.nix b/modules/apps/gui/misc/default.nix index bff8f68..4fbaaef 100644 --- a/modules/apps/gui/misc/default.nix +++ b/modules/apps/gui/misc/default.nix @@ -15,7 +15,6 @@ ferdium drawio imv - mpv cmus obs-studio gnome-calculator diff --git a/modules/apps/gui/mpv/default.nix b/modules/apps/gui/mpv/default.nix new file mode 100644 index 0000000..15c54d5 --- /dev/null +++ b/modules/apps/gui/mpv/default.nix @@ -0,0 +1,17 @@ +{pkgs,...}: { + home-manager.users.joy.programs.mpv = { + enable = true; + bindings = { + x = "add speed 0.1"; + z = "add speed -0.1"; + "," = "frame-back-step"; + "." = "frame-step"; + space = "set speed 2"; + DOWN = "add volume -5"; + UP = "add volume 5"; + }; + scripts = with pkgs.mpvScripts; [ + mpvacious + ]; + }; +}