[feat] Add ncmpcpp basic config
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
./wezterm.nix
|
./wezterm.nix
|
||||||
./nvim.nix
|
./nvim.nix
|
||||||
./goread.nix
|
./goread.nix
|
||||||
|
./ncmpcpp.nix
|
||||||
] ++ lib.optionals device.isLinux [ ../linux ];
|
] ++ lib.optionals device.isLinux [ ../linux ];
|
||||||
|
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs;
|
||||||
|
|||||||
15
common/ncmpcpp.nix
Normal file
15
common/ncmpcpp.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
61
inputs.nix
61
inputs.nix
@@ -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";
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -22,6 +22,7 @@ commands = f"{RUSTUP_HOME}/toolchains/{TOOLCHAIN}/lib/rustlib/etc/lldb_commands"
|
|||||||
# Print or use the 'settings' variable as needed
|
# Print or use the 'settings' variable as needed
|
||||||
print(settings)
|
print(settings)
|
||||||
|
|
||||||
|
print(commands)
|
||||||
# Append settings to commands file
|
# Append settings to commands file
|
||||||
with open(commands, "a") as f:
|
# with open(commands, "a") as f:
|
||||||
f.write(settings)
|
# f.write(settings)
|
||||||
|
|||||||
Reference in New Issue
Block a user