Compare commits

...
Author SHA1 Message Date
31acf0a234
change NC background color 2026-10-20 16:17:06 -04:00
9905b46153
fix reload not working properly 2026-10-20 16:16:09 -04:00

View file

@ -45,7 +45,7 @@ let
} }
.control-center { .control-center {
background: @theme_bg_color; background: shade(@theme_bg_color, 1.1);
} }
.notification-row .notification-background .notification, .notification-row .notification-background .notification,
@ -86,8 +86,7 @@ let
} }
''; '';
session-programs = lib.getExe ( session-programs = pkgs.writeShellApplication {
pkgs.writeShellApplication {
name = "session-programs"; name = "session-programs";
runtimeInputs = with pkgs; [ runtimeInputs = with pkgs; [
procps procps
@ -112,12 +111,13 @@ let
restart 'bin/swayosd-server ' ${lib.getExe' pkgs.swayosd "swayosd-server"} --style ${osd-style} restart 'bin/swayosd-server ' ${lib.getExe' pkgs.swayosd "swayosd-server"} --style ${osd-style}
restart 'bin/swaync ' ${lib.getExe' swaync "swaync"} --style ${swaync-style} --config ${swaync-config} restart 'bin/swaync ' ${lib.getExe' swaync "swaync"} --style ${swaync-style} --config ${swaync-config}
''; '';
} };
);
in in
{ {
imports = [ inputs.fht-compositor.nixosModules.default ]; imports = [ inputs.fht-compositor.nixosModules.default ];
environment.systemPackages = [ session-programs ];
# Prefer the GNOME portal (e.g. Nautilus as the file picker), falling back to GTK. This replaces # Prefer the GNOME portal (e.g. Nautilus as the file picker), falling back to GTK. This replaces
# the portal config fht-compositor ships. # the portal config fht-compositor ships.
xdg.portal.config.fht-compositor = { xdg.portal.config.fht-compositor = {
@ -195,7 +195,7 @@ in
''; '';
environment.etc.${filename}.source = (pkgs.formats.toml { }).generate "config.toml" { environment.etc.${filename}.source = (pkgs.formats.toml { }).generate "config.toml" {
autostart = [ session-programs ]; autostart = [ "session-programs" ];
general = { general = {
focus-follows-mouse = true; focus-follows-mouse = true;
@ -217,7 +217,7 @@ in
Super-Ctrl-q = "quit"; Super-Ctrl-q = "quit";
Super-Ctrl-r = { Super-Ctrl-r = {
action = "run-command"; action = "run-command";
arg = "fht-compositor ipc action reload-config; ${session-programs}"; arg = "fht-compositor ipc action reload-config; session-programs";
}; };
# Runs when Super is tapped on its own (patched in, see lone-modifier.patch) # Runs when Super is tapped on its own (patched in, see lone-modifier.patch)