add activation thingie to reload quickshell ThemeLoader when stylix changes colors

This commit is contained in:
lucy 2026-03-08 14:13:57 +01:00
parent f83ebe131e
commit f555889d6a
8 changed files with 10 additions and 74 deletions

43
flake.lock generated
View File

@ -232,48 +232,6 @@
"type": "github"
}
},
"ignis": {
"inputs": {
"ignis-gvc": "ignis-gvc",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1767456002,
"narHash": "sha256-q+ZYdTMLr0RCfN5qxOl56CbZBj702hYY2H5dOLynW+o=",
"owner": "ignis-sh",
"repo": "ignis",
"rev": "5fd140227c0f2d9d65a98d4af78b95b1558966da",
"type": "github"
},
"original": {
"owner": "ignis-sh",
"repo": "ignis",
"type": "github"
}
},
"ignis-gvc": {
"inputs": {
"nixpkgs": [
"ignis",
"nixpkgs"
]
},
"locked": {
"lastModified": 1754064086,
"narHash": "sha256-ft5KvY2OYrWF+jEsfBL/Zx8Iuo2C10C6COk8wHwZw34=",
"owner": "ignis-sh",
"repo": "ignis-gvc",
"rev": "f2c9f10d8b49cc38106a2f07a51ea959c6aa4e63",
"type": "github"
},
"original": {
"owner": "ignis-sh",
"repo": "ignis-gvc",
"type": "github"
}
},
"lanzaboote": {
"inputs": {
"crane": "crane",
@ -446,7 +404,6 @@
"root": {
"inputs": {
"home-manager": "home-manager",
"ignis": "ignis",
"lanzaboote": "lanzaboote",
"nixpkgs": "nixpkgs_2",
"nixvim": "nixvim",

View File

@ -6,10 +6,6 @@
nixvim.url = "github:nix-community/nixvim";
home-manager.url = "github:nix-community/home-manager";
ignis = {
url = "github:ignis-sh/ignis";
inputs.nixpkgs.follows = "nixpkgs"; # recommended
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v1.0.0";
@ -82,7 +78,6 @@
home-manager.useGlobalPkgs = true;
home-manager.users.lucy = {
imports = [
inputs.ignis.homeManagerModules.default
nixvim.homeModules.nixvim
spicetify-nix.homeManagerModules.spicetify
./home/home.nix
@ -114,7 +109,6 @@
home-manager.useGlobalPkgs = true;
home-manager.users.lucy = {
imports = [
inputs.ignis.homeManagerModules.default
nixvim.homeModules.nixvim
spicetify-nix.homeManagerModules.spicetify
./home/home.nix

View File

@ -1,6 +1,7 @@
{
config,
pkgs,
lib,
...
}:
{
@ -32,27 +33,6 @@
size = 48;
};
programs.ignis = {
enable = true;
addToPythonEnv = true;
services = {
bluetooth.enable = true;
recorder.enable = true;
audio.enable = true;
network.enable = true;
};
sass = {
enable = true;
useDartSass = true;
};
extraPackages = with pkgs; [
hello
python313Packages.jinja2
python313Packages.materialyoucolor
python313Packages.pillow
dart-sass
];
};
programs.zsh = {
enable = true;
enableCompletion = true;
@ -70,6 +50,11 @@
theme = "gentoo";
};
};
home.activation = {
reloadQs = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
$DRY_RUN_CMD ${pkgs.quickshell}/bin/qs ipc call colors reload
'';
};
home.stateVersion = "24.05"; # Please read the comment before changing.
home.shell.enableShellIntegration = true;

View File

@ -52,7 +52,7 @@
kb_layout = "eu";
sensitivity = 0.3;
accel_profile = "flat";
natural_scroll = true;
natural_scroll = false;
};
exec-once = [

View File

@ -25,6 +25,7 @@
btop
ventoy
obsidian
playerctl
(discord.override {
withOpenASAR = true; # can do this here too
withVencord = true;

View File

@ -12,7 +12,6 @@
gnome.image.enable = false;
gnome.enable = false;
kde.enable = false;
spicetify.enable = false;
fuzzel.enable = true;
dunst.enable = true;
vencord.enable = true;

View File

@ -1,7 +1,7 @@
{ config, lib, ... }:
{
programs.waybar = {
enable = true;
enable = false;
systemd.enable = true;
style = ''

View File

@ -19,7 +19,7 @@
stylix = {
enable = true;
autoEnable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml";
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
polarity = "dark";
image = ./home/wallpaper.png;
targets = {