This commit is contained in:
2026-02-22 16:44:03 +01:00
parent fa0bc07c38
commit 18c23fd20f
6 changed files with 148 additions and 107 deletions

View File

@@ -40,7 +40,7 @@
modules = [ modules = [
./home.nix ./home.nix
catppuccin.homeModules.catppuccin catppuccin.homeModules.catppuccin
nixvim.homeManagerModules.nixvim nixvim.homeModules.nixvim
]; ];
}; };

View File

@@ -160,15 +160,21 @@
lsp = { lsp = {
enable = true; enable = true;
servers = { servers = {
# script
lua_ls.enable = true; lua_ls.enable = true;
# web
cssls.enable = true;
html.enable = true;
# dev
clangd.enable = true; clangd.enable = true;
nil_ls.enable = true;
pyright.enable = true; pyright.enable = true;
rust_analyzer = { rust_analyzer = {
enable = true; enable = true;
installCargo = true; installCargo = true;
installRustc = true; installRustc = true;
}; };
# nix
nil_ls.enable = true;
}; };
keymaps = { keymaps = {
lspBuf = { lspBuf = {
@@ -184,6 +190,20 @@
lsp-format.enable = true; lsp-format.enable = true;
luasnip.enable = true; luasnip.enable = true;
treesitter = {
enable = true;
settings = {
highlight.enable = true;
indent.enable = false;
};
};
indent-blankline = {
enable = true;
settings.scope.enabled = true;
};
cmp = { cmp = {
enable = true; enable = true;
settings = { settings = {
@@ -207,5 +227,15 @@
}; };
}; };
}; };
extraConfigLua = ''
vim.diagnostic.config({
virtual_text = {
prefix = "",
spacing = 2,
source = "if_many",
}
});
'';
}; };
} }

View File

@@ -14,7 +14,6 @@
tealdeer tealdeer
grim grim
slurp slurp
wl-clipboard
bc bc
nh nh
]; ];

View File

@@ -16,9 +16,10 @@
initial-tool = "crop"; initial-tool = "crop";
output-filename = "/home/${username}/Obrazy/zrzuty/%d-%m-%Y_%H:%M:%S.png"; output-filename = "/home/${username}/Obrazy/zrzuty/%d-%m-%Y_%H:%M:%S.png";
save-after-copy = true; save-after-copy = true;
copy-command = "wl-copy";
disable-notifications = false; disable-notifications = false;
actions-on-escape = [ "exit" ]; actions-on-escape = [ "exit" ];
action-on-enter = "save-to-clipboard"; actions-on-enter = [ "save-to-clipboard" ];
no-window-decoration = true; no-window-decoration = true;
}; };

View File

@@ -151,7 +151,6 @@
player="$1" player="$1"
${playerctl} -p "$player" metadata --format "{{status}} {{artist}} - {{title}}" --follow | while read -r line; do ${playerctl} -p "$player" metadata --format "{{status}} {{artist}} - {{title}}" --follow | while read -r line; do
# Nix wymaga ''${ dla zmiennych basha w stringach nixowych
current_status=$(${playerctl} --player="$player" status 2>/dev/null) current_status=$(${playerctl} --player="$player" status 2>/dev/null)
case "$current_status" in case "$current_status" in
@@ -192,126 +191,128 @@
}; };
}; };
style = '' style =
#css
''
/* Global styles */ /* Global styles */
* { * {
transition: 0.2s all ease-in-out; transition: 0.2s all ease-in-out;
font-size: 14px; font-size: 14px;
font-family: inherit; font-family: inherit;
padding: 3px; padding: 3px;
margin: 1px 2px; margin: 1px 2px;
color: @text; color: @text;
border-radius: 12px; border-radius: 12px;
} }
*:hover { *:hover {
text-shadow: none; text-shadow: none;
} }
/* Window */ /* Window */
window#waybar { window#waybar {
background-color: @base; background-color: @base;
border-radius: 15px; border-radius: 15px;
} }
/* Workspaces */ /* Workspaces */
#workspaces button { #workspaces button {
padding: 2px; padding: 2px;
margin: 1px; margin: 1px;
background: transparent; background: transparent;
color: @lavender; color: @lavender;
box-shadow: inset 0 1.5px; box-shadow: inset 0 1.5px;
} }
#workspaces button:hover { #workspaces button:hover {
background-color: @surface1; background-color: @surface1;
box-shadow: inset 2px 5px; box-shadow: inset 2px 5px;
} }
#workspaces button.active { #workspaces button.active {
background-color: @surface0; background-color: @surface0;
box-shadow: inset 1px 4px 0 1px; box-shadow: inset 1px 4px 0 1px;
} }
#workspaces button.urgent { #workspaces button.urgent {
background-color: @red; background-color: @red;
animation-name: blink; animation-name: blink;
animation-duration: 1s; animation-duration: 1s;
animation-timing-function: steps(12); animation-timing-function: steps(12);
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-direction: alternate; animation-direction: alternate;
} }
/* Clock */ /* Clock */
#clock { #clock {
font-style: oblique; font-style: oblique;
opacity: 1; opacity: 1;
} }
/* Modules */ /* Modules */
.modules-left, .modules-left,
.modules-right, .modules-right,
.modules-center { .modules-center {
background-color: @crust; background-color: @crust;
} }
/* Tray */ /* Tray */
#tray>.needs-attention { #tray>.needs-attention {
background-color: @red; background-color: @red;
} }
/* Custom */ /* Custom */
#custom-spotify:hover { #custom-spotify:hover {
background-color: @green; background-color: @green;
} }
#network:hover { #network:hover {
background-color: @sky; background-color: @sky;
} }
#custom-notifications:hover { #custom-notifications:hover {
background-color: @sapphire; background-color: @sapphire;
} }
/* Battery */ /* Battery */
#battery { #battery {
background-color: @base; background-color: @base;
} }
#battery.warning:not(.charging) { #battery.warning:not(.charging) {
background: @yellow; background: @yellow;
color: @foreground; color: @foreground;
animation-name: blink; animation-name: blink;
animation-duration: 1s; animation-duration: 1s;
animation-timing-function: steps(12); animation-timing-function: steps(12);
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-direction: alternate; animation-direction: alternate;
} }
#battery.charging, #battery.charging,
#battery.plugged { #battery.plugged {
color: @foreground; color: @foreground;
background-color: @green; background-color: @green;
} }
#battery.critical:not(.charging) { #battery.critical:not(.charging) {
background-color: @red; background-color: @red;
color: @foreground; color: @foreground;
animation-name: blink; animation-name: blink;
animation-duration: 1s; animation-duration: 1s;
animation-timing-function: steps(12); animation-timing-function: steps(12);
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-direction: alternate; animation-direction: alternate;
} }
@keyframes blink { @keyframes blink {
to { to {
background-color: #ff0000; background-color: #ff0000;
color: #000000; color: #000000;
} }
} }
''; '';
}; };
} }

View File

@@ -28,5 +28,15 @@
title_format = "Yazi: {cwd}"; title_format = "Yazi: {cwd}";
}; };
}; };
keymap.mgr.prepend_keymap = [
{
on = [ "y" ];
run = [
"shell -- for path in %s; do echo \"file://$path\"; done | wl-copy -t text/uri-list"
"yank"
];
}
];
}; };
} }