diff --git a/.config/home-manager/firefox.nix b/.config/home-manager/firefox.nix new file mode 100644 index 0000000..af74dbe --- /dev/null +++ b/.config/home-manager/firefox.nix @@ -0,0 +1,43 @@ +{ config +, pkgs +, lib +, ... +}: +let + darkreaderHost = pkgs.runCommand "darkreader-host" {} '' + mkdir -p $out/bin + ${pkgs.gcc}/bin/gcc -O2 -o $out/bin/darkreader ${./files/coloreader-native.c} + ''; + darkreaderManifest = { + name = "darkreader"; + description = "custom darkreader native host for syncing with pywal"; + path = "${darkreaderHost}/bin/darkreader"; + type = "stdio"; + }; +in +{ + config.home.file = { + ".mozilla/native-messaging-hosts/darkreader.json".text = builtins.toJSON + (darkreaderManifest // { allowed_extensions = [ "darkreader@alexhulbert.com" ]; }); + }; + + config.home.activation.firefoxWalTheme = lib.hm.dag.entryAfter ["writeBoundary"] '' + ln -sf "${config.xdg.cacheHome}/wal/userContent.css" \ + "${config.home.homeDirectory}/.mozilla/firefox/default/chrome/userContent.css" + ''; + config.programs.firefox = { + enable = false; + profiles.default = { + id = 0; + name = "default"; + isDefault = true; + settings = { + "toolkit.legacyUserProfileCustomizations.stylesheets" = true; + }; + userChrome = '' + @import url('userContent.css'); + ''; + }; +}; + +} diff --git a/.config/matugen/config.toml b/.config/matugen/config.toml index ae7edc2..130e6e2 100644 --- a/.config/matugen/config.toml +++ b/.config/matugen/config.toml @@ -53,3 +53,8 @@ output_path = "~/.config/Mailspring/packages/Matugen/styles/ui-variables.less" [templates.millennium] input_path = "~/.config/matugen/templates/millennium-material-matugen.css" output_path = '~/.steam/steam/steamui/skins/Material-Theme/css/main/colors/matugen.css' + +[templates.spotify] +input_path = '~/.config/matugen/templates/spicetify.ini' +output_path = '~/.config/spicetify/Themes/Sleek/color.ini' +post_hook = 'spicetify watch -s 2>&1 | sed "/Reloaded Spotify/q"' diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index 02b6bd4..082ef20 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl @@ -276,8 +276,8 @@ window-rule { match app-id=r#"^org\.gnome\.Nautilus$"# match app-id="fsearch" match app-id="feishin" + match app-id="spotify" match app-id="MstyStudio" - } window-rule {