[feat] Add ncmpcpp basic config

This commit is contained in:
uttarayan21
2024-03-17 05:08:06 +05:30
parent 33a94911df
commit d1edabe192
4 changed files with 19 additions and 63 deletions

View File

@@ -5,6 +5,7 @@
./wezterm.nix
./nvim.nix
./goread.nix
./ncmpcpp.nix
] ++ lib.optionals device.isLinux [ ../linux ];
home.packages = with pkgs;

15
common/ncmpcpp.nix Normal file
View File

@@ -0,0 +1,15 @@
{ pkgs, ... }: {
programs.ncmpcpp = {
enable = true;
bindings = pkgs.lib.attrsets.mapAttrsToList (key: value: {
key = key;
command = value;
}) {
j = "scroll_down";
k = "scroll_up";
J = [ "select_item" "scroll_down" ];
K = [ "select_item" "scroll_up" ];
};
package = pkgs.ncmpcpp;
};
}

View File

@@ -1,61 +0,0 @@
{
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
anyrun = {
# My fork of anyrun that allows up / down with <C-n> / <C-p>
url = "github:uttarayan21/anyrun";
inputs.nixpkgs.follows = "nixpkgs";
};
anyrun-hyprwin = {
url = "github:uttarayan21/anyrun-hyprwin";
inputs.nixpkgs.follows = "nixpkgs";
};
anyrun-nixos-options = {
url = "github:n3oney/anyrun-nixos-options";
inputs.nixpkgs.follows = "nixpkgs";
};
anyrun-rink = {
url = "github:uttarayan21/anyrun-rink";
inputs.nixpkgs.follows = "nixpkgs";
};
ironbar = {
url = "github:JakeStanger/ironbar";
inputs.nixpkgs.follows = "nixpkgs";
};
lanzaboote = {
url = "github:nix-community/lanzaboote";
inputs.nixpkgs.follows = "nixpkgs";
};
nixneovim = {
# url = "github:nixneovim/nixneovim";
url = "github:uttarayan21/NixNeovim";
inputs.nixpkgs.follows = "nixpkgs";
};
# nixneovimplugins = {
# url = "github:NixNeovim/NixNeovimPlugins";
# inputs.nixpkgs.follows = "nixpkgs";
# }
rustaceanvim = {
url = "github:mrcjkb/rustaceanvim";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database.url = "github:Mic92/nix-index-database";
music-player = {
url = "github:tsirysndr/music-player";
inputs.nixpkgs.follows = "nixpkgs";
};
nur.url = "github:nix-community/nur";
}

View File

@@ -22,6 +22,7 @@ commands = f"{RUSTUP_HOME}/toolchains/{TOOLCHAIN}/lib/rustlib/etc/lldb_commands"
# Print or use the 'settings' variable as needed
print(settings)
print(commands)
# Append settings to commands file
with open(commands, "a") as f:
f.write(settings)
# with open(commands, "a") as f:
# f.write(settings)