From 6e3147ad0ad8d0f67f738e14a27769dac516f226 Mon Sep 17 00:00:00 2001 From: jaina heartles Date: Thu, 25 Jul 2024 00:43:01 -0700 Subject: [PATCH] Update qt config --- home-manager/jwm.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/home-manager/jwm.nix b/home-manager/jwm.nix index 67fa64f..9115ac4 100644 --- a/home-manager/jwm.nix +++ b/home-manager/jwm.nix @@ -181,10 +181,12 @@ in { home.activation."switch-hyprpaper-wallpaper" = lib.hm.dag.entryAfter [ "writeBoundary" ] '' export PATH="$PATH:${config.wayland.windowManager.hyprland.package}/bin:${pkgs.jq}/bin" - hyprctl hyprpaper preload ${cfg.wallpaper} >/dev/null - hyprctl monitors -j | jq --raw-output '.[] | .name' | \ - xargs -I{} hyprctl hyprpaper wallpaper '{},${cfg.wallpaper}' >/dev/null - hyprctl hyprpaper unload all >/dev/null + for inst in $(ls ''${XDG_RUNTIME_DIR:-/run/user/$UID}/hypr); do + $DRY_RUN_CMD hyprctl -i $inst hyprpaper preload ${cfg.wallpaper} || true + (hyprctl monitors -j -i $inst | jq --raw-output '.[] | .name' || true) | \ + xargs -I{} $DRY_RUN_CMD hyprctl -i $inst hyprpaper wallpaper '{},${cfg.wallpaper}' + $DRY_RUN_CMD hyprctl -i $inst hyprpaper unload all || true + done ''; xdg.configFile."eww/theme_cat.scss".text = concatStringsSep "\n" (mapAttrsToList (name: value: "$cat-${name}: ${value};") cfg.catppuccin); @@ -198,7 +200,9 @@ in { home.activation.reloadHyprland = lib.hm.dag.entryAfter [ "writeBoundary" ] '' export PATH="$PATH:${config.wayland.windowManager.hyprland.package}/bin" - hyprctl reload + + ls ''${XDG_RUNTIME_DIR:-/run/user/$UID}/hypr || true | \ + xargs -I{} $DRY_RUN_CMD hyprctl reload -i {} ''; wayland.windowManager.hyprland.enable = true; #wayland.windowManager.hyprland.settings = { }; @@ -469,7 +473,7 @@ in { qt = { enable = true; - platformTheme = "gtk"; + platformTheme.name = "gtk"; }; gtk.enable = true;