aboutsummaryrefslogtreecommitdiff
path: root/nixos/.flake/home/programs/ncmpcpp.nix.org
diff options
context:
space:
mode:
authorJacob Janzen <jacob.a.s.janzen@gmail.com>2024-09-28 00:01:09 -0500
committerJacob Janzen <jacob.a.s.janzen@gmail.com>2024-09-28 00:01:09 -0500
commitb7e84fa6048007cda7e6c8226e28bc2db90f792a (patch)
tree170bcaff17d7aec0c6aac5807c7a5857dbd71def /nixos/.flake/home/programs/ncmpcpp.nix.org
parent7b2986845fde19db57703dad1105359913486abd (diff)
add file extensions to files
Diffstat (limited to 'nixos/.flake/home/programs/ncmpcpp.nix.org')
-rw-r--r--nixos/.flake/home/programs/ncmpcpp.nix.org28
1 files changed, 28 insertions, 0 deletions
diff --git a/nixos/.flake/home/programs/ncmpcpp.nix.org b/nixos/.flake/home/programs/ncmpcpp.nix.org
new file mode 100644
index 0000000..eb1f02f
--- /dev/null
+++ b/nixos/.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