Compare commits

..

No commits in common. "d4ced5822a097b401156ab44b66c0b5fd849928c" and "dc5096a5b3407189d63932baaf7ef7647bcaceab" have entirely different histories.

3 changed files with 29 additions and 143 deletions

View file

@ -7,7 +7,6 @@
let let
cfg = config.modules.desktop.dunst; cfg = config.modules.desktop.dunst;
c = (import ./themes/_palette.nix).semantic;
in in
{ {
options.modules.desktop.dunst = { options.modules.desktop.dunst = {
@ -39,7 +38,7 @@ in
padding = 20; padding = 20;
shrink = "no"; shrink = "no";
transparency = 5; transparency = 5;
font = "MesloLGS Nerd Font 12"; font = "monospace 14";
idle_threshold = 120; idle_threshold = 120;
indicate_hidden = "yes"; indicate_hidden = "yes";
markup = "full"; markup = "full";
@ -50,21 +49,21 @@ in
sticky_history = "yes"; sticky_history = "yes";
sort = "yes"; sort = "yes";
frame_width = 1; frame_width = 1;
frame_color = c.bgStrong; frame_color = "#1d2021";
}; };
urgency_low = { urgency_low = {
foreground = c.fg; foreground = "#ebdbb2";
background = c.bgAlt; background = "#3c3836";
timeout = 8; timeout = 8;
}; };
urgency_normal = { urgency_normal = {
foreground = c.fg; foreground = "#ebdbb2";
background = c.bg; background = "#32302f";
timeout = 14; timeout = 14;
}; };
urgency_critical = { urgency_critical = {
foreground = c.bg; foreground = "#32302f";
background = c.critical; background = "#cc241d";
timeout = 0; timeout = 0;
}; };
}; };

View file

@ -1,54 +0,0 @@
let
mkHex = value: "#${value}";
mkRgb = value: "rgb(${value})";
base = {
bg0Hard = "1d2021";
bg0 = "282828";
bg0Soft = "32302f";
bg1 = "3c3836";
bg2 = "504945";
bg3 = "665c54";
fg0 = "fbf1c7";
fg1 = "ebdbb2";
fg4 = "a89984";
red = "fb4934";
orange = "fe8019";
yellow = "fabd2f";
green = "b8bb26";
aqua = "8ec07c";
blue = "83a598";
purple = "d3869b";
};
hex = builtins.mapAttrs (_: mkHex) base;
rgb = builtins.mapAttrs (_: mkRgb) base;
in
{
inherit base hex rgb;
semantic = {
bg = hex.bg0;
bgAlt = hex.bg1;
bgHover = hex.bg3;
bgStrong = hex.bg0Hard;
fg = hex.fg1;
fgMuted = hex.fg4;
accent = hex.orange;
info = hex.blue;
success = hex.green;
warning = hex.yellow;
critical = hex.red;
borderActiveRgb = rgb.orange;
borderInactiveRgb = rgb.bg2;
lockInnerRgb = rgb.bg0Soft;
lockOuterRgb = rgb.orange;
lockTextRgb = rgb.fg1;
};
}

View file

@ -9,7 +9,6 @@ let
cfg = config.modules.desktop.wm; cfg = config.modules.desktop.wm;
term = "${config.home-manager.users.${config.user.name}.programs.kitty.package}/bin/kitty"; term = "${config.home-manager.users.${config.user.name}.programs.kitty.package}/bin/kitty";
wallpaper = config.modules.desktop.wallpaper; wallpaper = config.modules.desktop.wallpaper;
c = (import ./themes/_palette.nix).semantic;
in in
{ {
options.modules.desktop.wm = { options.modules.desktop.wm = {
@ -63,8 +62,8 @@ in
gaps_in = 7; gaps_in = 7;
gaps_out = 14; gaps_out = 14;
border_size = 2; border_size = 2;
"col.active_border" = c.borderActiveRgb; "col.active_border" = "rgb(B28121)";
"col.inactive_border" = c.borderInactiveRgb; "col.inactive_border" = "rgb(504945)";
no_focus_fallback = false; no_focus_fallback = false;
resize_on_border = false; resize_on_border = false;
hover_icon_on_border = false; hover_icon_on_border = false;
@ -288,31 +287,19 @@ in
cpu = { cpu = {
interval = 1; interval = 1;
states = { format = " {usage}%";
warning = 60;
critical = 85;
};
format = "<span size=\"120%\" rise=\"0\">󰍛</span> {usage}%";
tooltip = false; tooltip = false;
}; };
memory = { memory = {
interval = 1; interval = 1;
states = { format = " {percentage}%";
warning = 70;
critical = 90;
};
format = "<span size=\"120%\" rise=\"-80\">󰘚</span> {percentage}%";
tooltip = false; tooltip = false;
}; };
disk = { disk = {
interval = 60; interval = 60;
states = { format = " {free}";
warning = 75;
critical = 90;
};
format = "<span size=\"120%\" rise=\"0\">󰋊</span> {free}";
tooltip = false; tooltip = false;
}; };
@ -322,25 +309,6 @@ in
tooltip = false; tooltip = false;
}; };
battery = {
states = {
warning = 30;
critical = 15;
};
format = "<span size=\"120%\" rise=\"0\">{icon}</span> {capacity}%";
format-charging = "<span size=\"120%\" rise=\"0\">󱐋</span> {capacity}%";
format-plugged = "<span size=\"120%\" rise=\"0\"></span> {capacity}%";
format-full = "<span size=\"120%\" rise=\"0\"></span>";
format-icons = [
""
""
""
""
""
];
tooltip-format = "{timeTo}";
};
}; };
}; };
style = '' style = ''
@ -352,41 +320,41 @@ in
} }
tooltip { tooltip {
background: ${c.bg}; background: #282828;
border: 0px solid; border: 0px solid;
border-radius: 0px; border-radius: 0px;
} }
window#waybar { window#waybar {
background: ${c.bg}; background: #282828;
color: ${c.fg}; color: #ebdbb2;
} }
#workspaces button { #workspaces button {
padding: 0 0.6em; padding: 0 0.6em;
color: ${c.fgMuted}; color: #a89984;
border-radius: 0px; border-radius: 0px;
} }
#workspaces button.active { #workspaces button.active {
color: ${c.fg}; color: #ebdbb2;
background: ${c.bgHover}; background: #665c54;
} }
#workspaces button.urgent { #workspaces button.urgent {
color: ${c.bgStrong}; color: #1d2021;
background: ${c.critical}; background: #fb4934;
} }
#workspaces button:hover { #workspaces button:hover {
background: ${c.bgHover}; background: #665c54;
} }
#network, #network,
#workspaces, #workspaces,
#bluetooth, #bluetooth,
#tray { #tray {
color: ${c.fg}; color: #ebdbb2;
padding: 0 5px; padding: 0 5px;
margin: 0 5px; margin: 0 5px;
} }
@ -394,37 +362,10 @@ in
#cpu, #cpu,
#memory, #memory,
#disk, #disk,
#battery,
#clock { #clock {
padding: 0 5px; padding: 0 5px;
margin: 0 5px; margin: 0 5px;
color: ${c.info}; color: #83a598;
}
#battery.charging,
#battery.plugged,
#battery.full {
color: ${c.success};
}
#battery.warning:not(.charging) {
color: ${c.warning};
}
#cpu.warning,
#memory.warning,
#disk.warning {
color: ${c.warning};
}
#battery.critical:not(.charging) {
color: ${c.critical};
}
#cpu.critical,
#memory.critical,
#disk.critical {
color: ${c.critical};
} }
''; '';
package = pkgs.waybar.override { wireplumberSupport = false; }; package = pkgs.waybar.override { wireplumberSupport = false; };
@ -488,9 +429,9 @@ in
dots_center = true; dots_center = true;
fade_on_empty = false; fade_on_empty = false;
outline_thickness = 3; outline_thickness = 3;
inner_color = c.lockInnerRgb; inner_color = "rgb(50, 48, 47)";
outer_color = c.lockOuterRgb; outer_color = "rgb(231, 138, 78)";
font_color = c.lockTextRgb; font_color = "rgb(212, 190, 152)";
placeholder_text = "Password..."; placeholder_text = "Password...";
} }
]; ];
@ -499,7 +440,7 @@ in
{ {
monitor = ""; monitor = "";
text = "$TIME"; text = "$TIME";
color = c.lockTextRgb; color = "rgb(212, 190, 152)";
font_size = 42; font_size = 42;
font_family = "MesloLGS Nerd Font Propo"; font_family = "MesloLGS Nerd Font Propo";
position = "0, 160"; position = "0, 160";
@ -509,7 +450,7 @@ in
{ {
monitor = ""; monitor = "";
text = "cmd[update:1000] date +%d/%m/%Y"; text = "cmd[update:1000] date +%d/%m/%Y";
color = c.lockTextRgb; color = "rgb(212, 190, 152)";
font_size = 18; font_size = 18;
font_family = "MesloLGS Nerd Font Propo"; font_family = "MesloLGS Nerd Font Propo";
position = "0, 120"; position = "0, 120";