aboutsummaryrefslogtreecommitdiff
path: root/common/.flake/home/programs/ncmpcpp.nix.org
diff options
context:
space:
mode:
authorJacob Janzen <jacob.a.s.janzen@gmail.com>2024-10-07 18:55:30 -0500
committerJacob Janzen <jacob.a.s.janzen@gmail.com>2024-10-07 18:55:30 -0500
commit616c0b69313ce28bcc727b1763e99604929c30da (patch)
treed09cf3083ead9885000487440f48ce4e43a920f8 /common/.flake/home/programs/ncmpcpp.nix.org
parent0ef7783a21a5f63f45d8c1bc466d0dce435f966e (diff)
begin nix migration for mac
Diffstat (limited to 'common/.flake/home/programs/ncmpcpp.nix.org')
-rw-r--r--common/.flake/home/programs/ncmpcpp.nix.org28
1 files changed, 28 insertions, 0 deletions
diff --git a/common/.flake/home/programs/ncmpcpp.nix.org b/common/.flake/home/programs/ncmpcpp.nix.org
new file mode 100644
index 0000000..eb1f02f
--- /dev/null
+++ b/common/.flake/home/programs/ncmpcpp.nix.org
@@ -0,0 +1,28 @@
+#+title: =ncmpcpp= Configuration
+
+Enable =vi=-like controls and specify directories and MPD address.
+#+begin_src nix :tangle ~/.flake/home/programs/ncmpcpp.nix :mkdirp yes
+{ config, pkgs, ... }:
+
+{
+ programs.ncmpcpp = {
+ enable = true;
+ bindings = [
+ { key = "j"; command = "scroll_down"; }
+ { key = "k"; command = "scroll_up"; }
+ { key = "h"; command = "previous_column"; }
+ { key = "l"; command = "next_column"; }
+ { key = "g"; command = "move_home"; }
+ { key = "G"; command = "move_end"; }
+ { key = "n"; command = "next_found_item"; }
+ { key = "N"; command = "previous_found_item"; }
+ ];
+ mpdMusicDir = "~/Music";
+ settings = {
+ ncmpcpp_directory = "~/.config/nmcpcpp";
+ mpd_host = "localhost";
+ mpd_port = "6600";
+ };
+ };
+}
+#+end_src