nix changes, switch to alacritty, add new niri keybind, etc...

This commit is contained in:
coast 2025-11-05 05:55:26 +03:30
parent 606a45d04b
commit 1b7d65b87f
13 changed files with 56 additions and 26 deletions

View file

@ -1,13 +1,13 @@
* { * {
all: unset; all: unset;
background: transparent; background: transparent;
font-family: "Fira Code Nerd Font"; font-family: "JetBrainsMono Nerd Font";
border-radius: 10px; border-radius: 10px;
} }
$bg: #1d2021; $bg: #2a2a2a;
$bg1: #282828; $bg1: #2a2a2a;
$bg2: #32302f; $bg2: #2a2a2a;
$fg: #ebdbb2; $fg: #ebdbb2;
$fgdim: #bdae93; $fgdim: #bdae93;
$accent: #d79921; $accent: #d79921;

View file

@ -84,9 +84,11 @@ screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
spawn-at-startup "waybar" spawn-at-startup "waybar"
spawn-at-startup "swww-daemon" spawn-at-startup "swww-daemon"
spawn-at-startup "swww img --outputs HDMI-A-1 ~/Wallpapers/wall9.png" spawn-at-startup "swww img --outputs HDMI-A-1 ~/Wallpapers/wall9.png"
spawn-at-startup "eww daemon"
spawn-at-startup "eww open-many year month day"
window-rule { window-rule {
match app-id=r#"^org\.wezfurlong\.wezterm$"# match app-id=r#"^org\.wezfurlong\.alacritty$"#
default-column-width {} default-column-width {}
} }
@ -107,7 +109,7 @@ window-rule {
binds { binds {
Mod+Shift+Slash { show-hotkey-overlay; } Mod+Shift+Slash { show-hotkey-overlay; }
Mod+Return hotkey-overlay-title="Open a Terminal: wezterm" { spawn "wezterm"; } Mod+Return hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; }
Mod+R hotkey-overlay-title="Run an Application: rofi" { spawn-sh "rofi -show drun -config ~/.config/rofi/gruvbox.rasi"; } Mod+R hotkey-overlay-title="Run an Application: rofi" { spawn-sh "rofi -show drun -config ~/.config/rofi/gruvbox.rasi"; }
Mod+Shift+Return hotkey-overlay-title="Run an application: rofi (run)" { spawn-sh "rofi -show run -config ~/.config/rofi/gruvbox.rasi"; } Mod+Shift+Return hotkey-overlay-title="Run an application: rofi (run)" { spawn-sh "rofi -show run -config ~/.config/rofi/gruvbox.rasi"; }
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; } Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
@ -174,6 +176,8 @@ binds {
Mod+Ctrl+U { move-column-to-workspace-down; } Mod+Ctrl+U { move-column-to-workspace-down; }
Mod+Ctrl+I { move-column-to-workspace-up; } Mod+Ctrl+I { move-column-to-workspace-up; }
Mod+Shift+P { spawn-sh "pkill waybar && waybar & disown && eww kill && eww daemon && eww open-many year month day"; }
Mod+Shift+Page_Down { move-workspace-down; } Mod+Shift+Page_Down { move-workspace-down; }
Mod+Shift+Page_Up { move-workspace-up; } Mod+Shift+Page_Up { move-workspace-up; }
Mod+Shift+M { move-workspace-down; } Mod+Shift+M { move-workspace-down; }

View file

@ -46,7 +46,7 @@
} }
configuration { configuration {
font: "Fira Code Nerd Font 13"; font: "JetBrainsMono Nerd Font 13";
show-icons: true; show-icons: true;
terminal: "wezterm"; terminal: "wezterm";
} }

View file

@ -11,9 +11,9 @@
], ],
"modules-right": [ "modules-right": [
"network", "network",
"clock", "pulseaudio",
// "battery", "clock"
"pulseaudio" // "battery"
], ],
"pulseaudio": { "pulseaudio": {
"tooltip": false, "tooltip": false,

View file

@ -17,7 +17,7 @@
* { * {
border: none; border: none;
font-family: "Fira Code Nerd Font"; font-family: "JetBrainsMono Nerd Font";
font-size: 15px; font-size: 15px;
min-height: 10px; min-height: 10px;
} }
@ -64,8 +64,8 @@ window#waybar.empty #window {
} }
#network { color: @text; } #network { color: @text; }
#pulseaudio { margin-right: 12px; color: @text; } #clock { margin-right: 12px; color: @text; }
#clock { color: @text; } #pulseaudio { color: @text; }
#workspaces { #workspaces {
margin-left: 12px; margin-left: 12px;

View file

@ -81,7 +81,7 @@ in
mkdir -p $out/bin mkdir -p $out/bin
ln -s ${pkgs.neovim}/bin/nvim $out/bin/vim ln -s ${pkgs.neovim}/bin/nvim $out/bin/vim
'') '')
unstable.firefox unstable.ungoogled-chromium
unstable.git unstable.git
unstable.adwaita-icon-theme unstable.adwaita-icon-theme
unstable.nil unstable.nil
@ -90,7 +90,7 @@ in
unstable.qbittorrent unstable.qbittorrent
unstable.zathura unstable.zathura
unstable.rofi unstable.rofi
unstable.wezterm unstable.alacritty
]; ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@ -117,6 +117,7 @@ in
nerd-fonts._0xproto nerd-fonts._0xproto
nerd-fonts.droid-sans-mono nerd-fonts.droid-sans-mono
nerd-fonts.jetbrains-mono nerd-fonts.jetbrains-mono
nerd-fonts.fira-code
vazir-fonts vazir-fonts
]; ];

View file

@ -43,6 +43,7 @@
./home-configuration/configuration.nix ./home-configuration/configuration.nix
./home-configuration/apps/sway.nix ./home-configuration/apps/sway.nix
./home-configuration/apps/zsh.nix ./home-configuration/apps/zsh.nix
./home-configuration/apps/alacritty.nix
]; ];
}; };
}; };

View file

@ -0,0 +1,26 @@
{
pkgs,
config,
...
}:
{
programs.alacritty = {
enable = true;
settings = {
window = {
opacity = 0.9;
padding = {
x = 4;
y = 4;
};
};
font = {
normal = {
family = "JetBrainsMono Nerd Font";
style = "Regular";
};
size = 16;
};
};
};
}

View file

@ -54,9 +54,6 @@
bindkey -e bindkey -e
PS1="[%n in %m %~] " PS1="[%n in %m %~] "
eval "$(starship init zsh)" eval "$(starship init zsh)"
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
tmux attach -t default || tmux new -s default
fi
''; '';
}; };
} }

View file

@ -33,10 +33,14 @@ in {
fastfetch fastfetch
dysk dysk
ncurses ncurses
ollama
tree tree
xfce.ristretto
pyright pyright
stylua stylua
typescript-language-server
lua
vscode-langservers-extracted
swaylock
starship starship
gopls gopls
lua-language-server lua-language-server
@ -75,6 +79,10 @@ in {
tauon tauon
gimp gimp
waybar waybar
glibc_multi
man-pages
man-pages-posix
eww
]; ];
}; };
@ -84,11 +92,4 @@ in {
userName = "coast"; userName = "coast";
}; };
programs.tmux = {
enable = true;
};
programs.tmate = {
enable = true;
};
} }