Update qt config

This commit is contained in:
jaina heartles 2024-07-25 00:43:01 -07:00
parent 903e24e757
commit 6e3147ad0a

View file

@ -181,10 +181,12 @@ in {
home.activation."switch-hyprpaper-wallpaper" = home.activation."switch-hyprpaper-wallpaper" =
lib.hm.dag.entryAfter [ "writeBoundary" ] '' lib.hm.dag.entryAfter [ "writeBoundary" ] ''
export PATH="$PATH:${config.wayland.windowManager.hyprland.package}/bin:${pkgs.jq}/bin" export PATH="$PATH:${config.wayland.windowManager.hyprland.package}/bin:${pkgs.jq}/bin"
hyprctl hyprpaper preload ${cfg.wallpaper} >/dev/null for inst in $(ls ''${XDG_RUNTIME_DIR:-/run/user/$UID}/hypr); do
hyprctl monitors -j | jq --raw-output '.[] | .name' | \ $DRY_RUN_CMD hyprctl -i $inst hyprpaper preload ${cfg.wallpaper} || true
xargs -I{} hyprctl hyprpaper wallpaper '{},${cfg.wallpaper}' >/dev/null (hyprctl monitors -j -i $inst | jq --raw-output '.[] | .name' || true) | \
hyprctl hyprpaper unload all >/dev/null 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" xdg.configFile."eww/theme_cat.scss".text = concatStringsSep "\n"
(mapAttrsToList (name: value: "$cat-${name}: ${value};") cfg.catppuccin); (mapAttrsToList (name: value: "$cat-${name}: ${value};") cfg.catppuccin);
@ -198,7 +200,9 @@ in {
home.activation.reloadHyprland = home.activation.reloadHyprland =
lib.hm.dag.entryAfter [ "writeBoundary" ] '' lib.hm.dag.entryAfter [ "writeBoundary" ] ''
export PATH="$PATH:${config.wayland.windowManager.hyprland.package}/bin" 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.enable = true;
#wayland.windowManager.hyprland.settings = { }; #wayland.windowManager.hyprland.settings = { };
@ -469,7 +473,7 @@ in {
qt = { qt = {
enable = true; enable = true;
platformTheme = "gtk"; platformTheme.name = "gtk";
}; };
gtk.enable = true; gtk.enable = true;