custom spicetify
This commit is contained in:
parent
90f831650f
commit
2b8738f3de
4 changed files with 66 additions and 40 deletions
|
|
@ -1,20 +1,17 @@
|
|||
{
|
||||
plugins.neo-tree = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
sources = [
|
||||
"filesystem"
|
||||
"buffers"
|
||||
"git_status"
|
||||
];
|
||||
|
||||
enable_diagnostics = true;
|
||||
enable_git_status = true;
|
||||
enable_modified_markers = true;
|
||||
enable_refresh_on_write = true;
|
||||
open_files_in_last_window = true;
|
||||
|
||||
open_files_do_not_replace_types = [
|
||||
"terminal"
|
||||
"Trouble"
|
||||
|
|
@ -22,7 +19,6 @@
|
|||
"qf"
|
||||
"Outline"
|
||||
];
|
||||
|
||||
filesystem = {
|
||||
bind_to_cwd = false;
|
||||
follow_current_file = {
|
||||
|
|
@ -30,12 +26,10 @@
|
|||
};
|
||||
use_libuv_file_watcher = true;
|
||||
};
|
||||
|
||||
window.mappings = {
|
||||
"l" = "open";
|
||||
"h" = "close_node";
|
||||
"<space>" = "none";
|
||||
|
||||
"Y" = {
|
||||
__raw = ''
|
||||
function(state)
|
||||
|
|
@ -46,7 +40,6 @@
|
|||
'';
|
||||
desc = "Copy Path to Clipboard";
|
||||
};
|
||||
|
||||
"O" = {
|
||||
__raw = ''
|
||||
function(state)
|
||||
|
|
@ -56,7 +49,6 @@
|
|||
desc = "Open with System Application";
|
||||
};
|
||||
};
|
||||
|
||||
default_component_configs = {
|
||||
indent = {
|
||||
with_expanders = true;
|
||||
|
|
@ -77,7 +69,6 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
event_handlers = {
|
||||
file_moved = ''
|
||||
function(data)
|
||||
|
|
@ -91,16 +82,17 @@
|
|||
'';
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>fe";
|
||||
mode = [ "n" ];
|
||||
action = ''
|
||||
<cmd>lua require("neo-tree.command").execute({
|
||||
action.__raw = ''
|
||||
function()
|
||||
require("neo-tree.command").execute({
|
||||
toggle = true,
|
||||
dir = vim.fn.getcwd()
|
||||
})<CR>
|
||||
})
|
||||
end
|
||||
'';
|
||||
options.desc = "Explorer NeoTree (cwd)";
|
||||
}
|
||||
|
|
@ -114,27 +106,31 @@
|
|||
{
|
||||
key = "<leader>ge";
|
||||
mode = [ "n" ];
|
||||
action = ''
|
||||
<cmd>lua require("neo-tree.command").execute({
|
||||
action.__raw = ''
|
||||
function()
|
||||
require("neo-tree.command").execute({
|
||||
source = "git_status",
|
||||
toggle = true
|
||||
})<CR>
|
||||
})
|
||||
end
|
||||
'';
|
||||
options.desc = "Git Explorer";
|
||||
}
|
||||
{
|
||||
key = "<leader>be";
|
||||
mode = [ "n" ];
|
||||
action = ''
|
||||
<cmd>lua require("neo-tree.command").execute({
|
||||
action.__raw = ''
|
||||
function()
|
||||
require("neo-tree.command").execute({
|
||||
source = "buffers",
|
||||
toggle = true
|
||||
})<CR>
|
||||
})
|
||||
end
|
||||
'';
|
||||
options.desc = "Buffer Explorer";
|
||||
}
|
||||
{
|
||||
key = "C-h";
|
||||
key = "<C-h>";
|
||||
mode = [ "n" ];
|
||||
action = "<cmd>Neotree source=filesystem focus<CR>";
|
||||
options.desc = "switch focus";
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
./modules/programs.nix
|
||||
./modules/boot.nix
|
||||
./modules/fonts.nix
|
||||
./modules/spicetify.nix
|
||||
|
||||
# gaming shi
|
||||
./modules/gaming.nix
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{ pkgs, inputs, ... }:
|
||||
|
||||
let
|
||||
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||
in
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.sessionVariables = {
|
||||
WLR_NO_HARDWARE_CURSORS = "1";
|
||||
|
|
@ -48,13 +44,4 @@ in
|
|||
environment.gnome.excludePackages = [ pkgs.gnome-tour ];
|
||||
services.xserver.excludePackages = [ pkgs.xterm ];
|
||||
services.xserver.desktopManager.xterm.enable = false;
|
||||
|
||||
programs.spicetify = {
|
||||
enable = true;
|
||||
enabledExtensions = with spicePkgs.extensions; [
|
||||
adblock
|
||||
hidePodcasts
|
||||
];
|
||||
colorScheme = "Ocean";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
42
nixos/modules/spicetify.nix
Normal file
42
nixos/modules/spicetify.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||
in
|
||||
|
||||
{
|
||||
programs.spicetify = {
|
||||
enable = true;
|
||||
|
||||
enabledExtensions = with spicePkgs.extensions; [
|
||||
adblock
|
||||
hidePodcasts
|
||||
];
|
||||
|
||||
theme = spicePkgs.themes.text;
|
||||
colorScheme = "custom";
|
||||
customColorScheme = {
|
||||
text = "FFFFFF";
|
||||
subtext = "C0C0C0";
|
||||
sidebar-text = "FFFFFF";
|
||||
main = "000000";
|
||||
sidebar = "1A1A1A";
|
||||
player = "000000";
|
||||
card = "121212";
|
||||
shadow = "000000";
|
||||
selected-row = "404040";
|
||||
button = "B0B0B0";
|
||||
button-active = "FFFFFF";
|
||||
button-disabled = "4A4A4A";
|
||||
tab-active = "FFFFFF";
|
||||
notification = "121212";
|
||||
notification-error = "FFFFFF";
|
||||
misc = "000000";
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue