Compare commits

..

No commits in common. "76396da7ba082e70635eb4d11339bb995ca56f3a" and "e06b6ecf3d3bd13d1bffd5eb59e82a3890c86d86" have entirely different histories.

8 changed files with 33 additions and 87 deletions

View file

@ -71,7 +71,7 @@ window#waybar {
} }
#workspaces button.active { #workspaces button.active {
background: @accent; background: @pink;
color: @surface0; color: @surface0;
} }
#workspaces button:hover { #workspaces button:hover {
@ -80,7 +80,7 @@ window#waybar {
box-shadow: none; box-shadow: none;
} }
#workspaces button.active:hover { #workspaces button.active:hover {
background: @accent; background: @pink;
color: @surface0; color: @surface0;
} }

View file

@ -293,6 +293,20 @@ in {
initial_workspace_tracking = 0; initial_workspace_tracking = 0;
}; };
}; };
extraConfig = ''
general {
col.active_border=$pink
col.inactive_border=$surface0
}
decoration {
col.shadow=$surface0
col.shadow_inactive=$surface0
}
misc {
background_color=$crust
}
'';
}; };
}; };
} }

View file

@ -16,6 +16,7 @@ in {
extraConfig = { extraConfig = {
show-icons = true; show-icons = true;
}; };
theme = ../../config/rofi.rasi;
}; };
}; };
} }

View file

@ -5,17 +5,15 @@ let
cfg = config.modules.desktop.themes; cfg = config.modules.desktop.themes;
accent = "pink"; accent = "pink";
variant = "mocha"; variant = "mocha";
colorScheme = inputs.nix-colors.colorSchemes.${"catppuccin-${variant}"};
pascalCase = s: (toUpper (substring 0 1 s)) + (toLower (substring 1 (stringLength s) s));
in { in {
config = mkIf (cfg.active == "catppuccin") { config = mkIf (cfg.active == "catppuccin") {
colorScheme = colorScheme; colorScheme = inputs.nix-colors.colorSchemes.catppuccin-mocha;
modules.desktop.themes = { modules.desktop.themes = {
dark = variant != "latte"; dark = true;
gtkTheme = { gtkTheme = {
name = "catppuccin-${variant}-${accent}-compact+rimless"; name = "catppuccin-mocha-pink-compact+rimless"; # TODO: put accent in here
package = pkgs.catppuccin-gtk.override { package = pkgs.catppuccin-gtk.override {
variant = variant; variant = variant;
accents = [ accent ]; accents = [ accent ];
@ -47,7 +45,7 @@ in {
editor = { editor = {
vscode = { vscode = {
colorTheme = { colorTheme = {
name = "Catppuccin ${pascalCase variant}"; name = "Catppuccin Mocha";
extension = (pkgs.vscode-extensions.catppuccin.catppuccin-vsc.override { extension = (pkgs.vscode-extensions.catppuccin.catppuccin-vsc.override {
accent = accent; accent = accent;
boldKeywords = false; boldKeywords = false;
@ -65,36 +63,7 @@ in {
}; };
}; };
hyprland = { hyprland = "${inputs.hyprland-catppuccin}/themes/${variant}.conf";
source = "${inputs.hyprland-catppuccin}/themes/${variant}.conf";
extraConfig = ''
general {
col.active_border=''$${accent}
col.inactive_border=$surface0
}
decoration {
col.shadow=$surface0
col.shadow_inactive=$surface0
}
misc {
background_color=$crust
}
'';
};
waybar = builtins.concatStringsSep "\n" [
"@import \"${inputs.waybar-catppuccin}/themes/${variant}.css\";"
"@define-color accent @${accent};"
(lib.readFile ./waybar.css)
];
wob = with colorScheme.palette; {
borderColor = "${base04}FF";
backgroundColor = "${base01}66";
barColor = "${base05}FF";
};
rofi = ./rofi.rasi;
}; };
}; };
} }

View file

@ -44,20 +44,7 @@ in {
}; };
}; };
hyprland = { hyprland = mkOpt (nullOr str) null;
source = mkOpt (nullOr str) null;
extraConfig = mkOpt (nullOr str) null;
};
waybar = mkOpt str "";
wob = {
borderColor = mkOpt (nullOr str) null;
backgroundColor = mkOpt (nullOr str) null;
barColor = mkOpt (nullOr str) null;
};
rofi = mkOpt (nullOr path) null;
}; };
config = mkIf (cfg.active != null) { config = mkIf (cfg.active != null) {
@ -109,19 +96,6 @@ in {
}; };
}; };
hm.wayland.windowManager.hyprland = { hm.wayland.windowManager.hyprland.settings.source = mkIf (cfg.hyprland != null) [ cfg.hyprland ];
settings.source = mkIf (cfg.hyprland.source != null) [ cfg.hyprland.source ];
extraConfig = mkIf (cfg.hyprland.extraConfig != null) cfg.hyprland.extraConfig;
};
hm.programs.waybar.style = cfg.waybar;
hm.services.wob.settings."" = {
border_color = cfg.wob.borderColor;
background_color = cfg.wob.backgroundColor;
bar_color = cfg.wob.barColor;
};
hm.programs.rofi.theme = cfg.rofi;
}; };
} }

View file

@ -18,6 +18,10 @@ in {
hm.programs.waybar = { hm.programs.waybar = {
enable = true; enable = true;
package = cfg.package; package = cfg.package;
style = builtins.concatStringsSep "\n" [
"@import \"${inputs.waybar-catppuccin}/themes/mocha.css\";"
(lib.readFile ../../config/waybar.css)
];
settings = { settings = {
mainBar = { mainBar = {
layer = "top"; layer = "top";
@ -36,19 +40,11 @@ in {
"clock" "clock"
]; ];
modules-right = [ modules-right = [
"group/playback"
"group/status" "group/status"
"tray" "tray"
"group/power" "group/power"
]; ];
"group/playback" = {
orientation = "inherit";
modules = [
"mpris"
];
};
"group/status" = { "group/status" = {
orientation = "inherit"; orientation = "inherit";
modules = [ modules = [
@ -214,18 +210,6 @@ in {
{ type = "audio-in"; } { type = "audio-in"; }
]; ];
}; };
mpris = {
format = " {dynamic}";
format-paused = "{status_icon} {dynamic}";
dynamic-order = [ "title" ];
tooltip-format = "{player}: {dynamic}";
interval = 1;
status-icons = {
playing = "";
paused = "";
};
player = "firefox";
};
clock = { clock = {
format = "{:%H:%M}"; format = "{:%H:%M}";
format-alt = "{:%a %b %d %R}"; format-alt = "{:%a %b %d %R}";

View file

@ -22,7 +22,7 @@ in {
in [ script ]; in [ script ];
hm.services.wob = { hm.services.wob = {
enable = true; enable = true;
settings = { settings = with config.colorScheme.palette; {
"" = { "" = {
timeout = 1000; timeout = 1000;
@ -36,6 +36,10 @@ in {
margin = 12; margin = 12;
border_color = "${base04}FF";
background_color = "${base01}66";
bar_color = "${base05}FF";
overflow_mode = "nowrap"; overflow_mode = "nowrap";
output_mode = "focused"; output_mode = "focused";
}; };