Sway: add urgent theme, add blur to swaync notifications

Add catppuccin theme to Xresources and set HiDPI for Scorch (for
Xwayland applications)
This commit is contained in:
Evie Litherland-Smith 2024-04-15 10:40:04 +01:00
parent d32d1ff574
commit 390883b318
3 changed files with 31 additions and 4 deletions

View file

@ -2,6 +2,7 @@
lib, lib,
config, config,
pkgs, pkgs,
scheme,
catppuccinVariant ? "Mocha", catppuccinVariant ? "Mocha",
... ...
}: { }: {
@ -60,4 +61,24 @@
name = "Catppuccin-${catppuccinVariant}-${size}-${accent}-Dark"; name = "Catppuccin-${catppuccinVariant}-${size}-${accent}-Dark";
}; };
}; };
xresources.properties = with scheme.withHashtag; {
"*background" = base00;
"*foreground" = base05;
"*color0" = base00;
"*color1" = red;
"*color2" = green;
"*color3" = yellow;
"*color4" = blue;
"*color5" = magenta;
"*color6" = cyan;
"*color7" = base04;
"*color8" = base01;
"*color9" = red;
"*color10" = green;
"*color11" = yellow;
"*color12" = blue;
"*color13" = magenta;
"*color14" = cyan;
"*color15" = base05;
};
} }

View file

@ -35,7 +35,10 @@
menu = "${config.programs.rofi.finalPackage}/bin/rofi -show drun"; menu = "${config.programs.rofi.finalPackage}/bin/rofi -show drun";
workspaceAutoBackAndForth = true; workspaceAutoBackAndForth = true;
bars = []; bars = [];
gaps = {inner = 10;}; gaps = {
inner = 5;
outer = 5;
};
fonts = { fonts = {
names = [fonts.monospace.name]; names = [fonts.monospace.name];
style = "regular"; style = "regular";
@ -51,14 +54,15 @@
border = toString scheme.withHashtag.${accentColour}; border = toString scheme.withHashtag.${accentColour};
childBorder = border; childBorder = border;
}; };
unfocused = rec { focusedInactive = rec {
inherit background text indicator; inherit background text indicator;
border = toString base03; border = toString base03;
childBorder = border; childBorder = border;
}; };
focusedInactive = rec { unfocused = focusedInactive;
urgent = rec {
inherit background text indicator; inherit background text indicator;
border = toString base03; border = toString red;
childBorder = border; childBorder = border;
}; };
}; };
@ -162,6 +166,7 @@
shadows enable shadows enable
shadow_blur_radius 4 shadow_blur_radius 4
layer_effects "waybar" blur enable; blur_ignore_transparent enable layer_effects "waybar" blur enable; blur_ignore_transparent enable
layer_effects "swaync-notification-window" blur enable; blur_ignore_transparent enable
layer_effects "swaync-control-center" blur enable; blur_ignore_transparent enable layer_effects "swaync-control-center" blur enable; blur_ignore_transparent enable
layer_effects "rofi" blur enable; blur_ignore_transparent enable layer_effects "rofi" blur enable; blur_ignore_transparent enable
titlebar_separator enable titlebar_separator enable

View file

@ -14,4 +14,5 @@
scale = "1.5"; scale = "1.5";
}; };
}; };
xresources.properties."Xft.dpi" = toString (builtins.mul 96 1.5);
} }