1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Fix kitty config, fix hyprland config, standardize colors

This commit is contained in:
RGBCube 2023-11-08 13:39:24 +03:00
parent 4ecfe885b0
commit c54e0e7cec
No known key found for this signature in database
7 changed files with 52 additions and 37 deletions

2
.gitignore vendored
View file

@ -21,6 +21,8 @@
!machines/enka/steam/ !machines/enka/steam/
!machines/enka/steck/ !machines/enka/steck/
!themes/
!flake.lock !flake.lock
!.editorconfig !.editorconfig
!.gitignore !.gitignore

View file

@ -67,6 +67,8 @@
hyprland = hyprland.packages.${hostPlatform}.hyprland; hyprland = hyprland.packages.${hostPlatform}.hyprland;
theme = import ./themes/gruvbox.nix;
# SYSTEM # SYSTEM
systemConfiguration = attributes: attributes; systemConfiguration = attributes: attributes;

View file

@ -1,4 +1,4 @@
{ pkgs, homeConfiguration, enabled, ... }: { pkgs, theme, homeConfiguration, enabled, ... }:
homeConfiguration "nixos" { homeConfiguration "nixos" {
services.dunst = enabled { services.dunst = enabled {
@ -11,29 +11,29 @@ homeConfiguration "nixos" {
horizontal_padding = 10; horizontal_padding = 10;
padding = 10; padding = 10;
frame_color = "#D79921"; frame_color = "#" + theme.activeHighlight;
frame_width = 1; frame_width = 2;
seperator_color = "frame"; seperator_color = "frame";
background = "#1D2021"; background = "#" + theme.background;
foreground = "#DDC7A1"; foreground = "#" + theme.foreground;
alignment = "left"; alignment = "left";
font = "JetBrainsMono 12"; font = "JetBrainsMono 12";
}; };
settings.urgency_low = { settings.urgency_low = {
frame_color = "#94A6FF"; frame_color = "#" + theme.low;
timeout = 5; timeout = 5;
}; };
settings.urgency_normal = { settings.urgency_normal = {
frame_color = "#FAA41A"; frame_color = "#" + theme.medium;
timeout = 10; timeout = 10;
}; };
settings.urgency_critical = { settings.urgency_critical = {
frame_color = "#F15D22"; frame_color = "#" + theme.high;
timeout = 15; timeout = 15;
}; };
}; };

View file

@ -1,4 +1,4 @@
{ homeConfiguration, enabled, ... }: { theme, homeConfiguration, enabled, ... }:
homeConfiguration "nixos" { homeConfiguration "nixos" {
programs.fuzzel = enabled { programs.fuzzel = enabled {
@ -16,17 +16,17 @@ homeConfiguration "nixos" {
}; };
settings.colors = { settings.colors = {
background = "1D2021FF"; background = theme.background + theme.transparency;
text = "DDC7A1FF"; text = theme.foreground + theme.transparency;
match = "D79921FF"; match = theme.activeHighlight + theme.transparency;
selection = "DDC7A1FF"; selection = theme.text + theme.transparency;
selection-text = "1D2021FF"; selection-text = theme.background + theme.transparency;
border = "D79921FF"; border = theme.activeHighlight + theme.transparency;
}; };
settings.border = { settings.border = {
radius = 0; radius = 0;
width = 3; width = 2;
}; };
}; };
} }

View file

@ -1,4 +1,4 @@
{ lib, pkgs, hyprland, systemConfiguration, homeConfiguration, homePackages, enabled, ... }: lib.recursiveUpdate3 { lib, pkgs, hyprland, theme, systemConfiguration, homeConfiguration, homePackages, enabled, ... }: lib.recursiveUpdate3
(systemConfiguration { (systemConfiguration {
hardware.opengl = enabled {}; hardware.opengl = enabled {};
@ -35,15 +35,15 @@
bind = SUPER, A, submap, fastedit bind = SUPER, A, submap, fastedit
submap = fastedit submap = fastedit
bind = , left, movefocus, l binde = , left, movefocus, l
bind = , right, movefocus, t binde = , right, movefocus, t
bind = , up, movefocus, u binde = , up, movefocus, u
bind = , down, movefocus, d binde = , down, movefocus, d
bind = CTRL, right, resizeactive, 10 0 binde = CTRL, right, resizeactive, 10 0
bind = CTRL, left, resizeactive, -10 0 binde = CTRL, left, resizeactive, -10 0
bind = CTRL, up, resizeactive, 0 -10 binde = CTRL, up, resizeactive, 0 -10
bind = CTRL, down, resizeactive, 0 10 binde = CTRL, down, resizeactive, 0 10
bind = SHIFT, left, movewindow, l bind = SHIFT, left, movewindow, l
bind = SHIFT, right, movewindow, r bind = SHIFT, right, movewindow, r
@ -64,21 +64,19 @@
bind = SUPER, W, exec, firefox bind = SUPER, W, exec, firefox
bind = SUPER, D, exec, discord bind = SUPER, D, exec, discord
bind = , Print, exec, sh -c 'grim -g "$(slurp)" - | wl-copy' bind = , Print, exec, grim -g "$(slurp)" - | wl-copy
bind = SHIFT, Print, exec, kazam bind = SHIFT, Print, exec, kazam
$active_color = 0xD79921
$inactive_color = 0x928374
general { general {
gaps_in = 5 gaps_in = 5
gaps_out = 10 gaps_out = 10
border_size = 2
col.active_border = $active_color col.active_border = 0x${theme.transparency}${theme.activeHighlight}
col.nogroup_border_active = $active_color col.nogroup_border_active = 0x${theme.transparency}${theme.activeHighlight}
col.inactive_border = $inactive_color col.inactive_border = 0x${theme.transparency}${theme.inactiveHighlight}
col.nogroup_border = $inactive_color col.nogroup_border = 0x${theme.transparency}${theme.inactiveHighlight}
no_focus_fallback = true no_focus_fallback = true
no_cursor_warps = true no_cursor_warps = true

View file

@ -1,4 +1,4 @@
{ pkgs, homeConfiguration, enabled, ... }: { homeConfiguration, enabled, ... }:
homeConfiguration "nixos" { homeConfiguration "nixos" {
programs.kitty = enabled { programs.kitty = enabled {
@ -9,6 +9,6 @@ homeConfiguration "nixos" {
settings = { settings = {
scrollback_lines = 100000; scrollback_lines = 100000;
mouse_hide_wait = 0; mouse_hide_wait = 0;
} };
}; };
} }

13
themes/gruvbox.nix Normal file
View file

@ -0,0 +1,13 @@
{
transparency = "FF"; # OPAQUE
background = "1D2021";
text = "DDC7A1";
activehighlight = "D79921";
inactiveHighlight = "928374";
low = "94A6FF";
medium = "FAA41A";
high = "F15D22";
}