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" "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": { "lanzaboote": {
"inputs": { "inputs": {
"crane": "crane", "crane": "crane",
@ -446,7 +404,6 @@
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"ignis": "ignis",
"lanzaboote": "lanzaboote", "lanzaboote": "lanzaboote",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nixvim": "nixvim", "nixvim": "nixvim",

View File

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

View File

@ -1,6 +1,7 @@
{ {
config, config,
pkgs, pkgs,
lib,
... ...
}: }:
{ {
@ -32,27 +33,6 @@
size = 48; 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 = { programs.zsh = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
@ -70,6 +50,11 @@
theme = "gentoo"; 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.stateVersion = "24.05"; # Please read the comment before changing.
home.shell.enableShellIntegration = true; home.shell.enableShellIntegration = true;

View File

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

View File

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

View File

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

View File

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

View File

@ -19,7 +19,7 @@
stylix = { stylix = {
enable = true; enable = true;
autoEnable = 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"; polarity = "dark";
image = ./home/wallpaper.png; image = ./home/wallpaper.png;
targets = { targets = {