summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorbrustybee <bee@4d2.org>2026-03-17 12:01:12 +0530
committerbrustybee <bee@4d2.org>2026-03-17 12:01:12 +0530
commitd00553e667c78aa475773556058108f469f46d4e (patch)
treee45a872469cab5a0cef8b1c7f64b2ce35ff68eff /common
parent5cc6194fb34e8b1f1274db2cd9c171d1ae11ff6e (diff)
hot reload gtk apps to update theme and install steam
Diffstat (limited to 'common')
-rw-r--r--common/modules/mango/scripts.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/modules/mango/scripts.nix b/common/modules/mango/scripts.nix
index fd12ddd..9400889 100644
--- a/common/modules/mango/scripts.nix
+++ b/common/modules/mango/scripts.nix
@@ -89,6 +89,13 @@ let
matugen image "$wall" -m "$mode_flag" -t "$color_type" --source-color-index 0 2>/dev/null
wallust -q -s run "$wall" 2>/dev/null
+ systemctl --user restart xdg-desktop-portal-gtk
+ if [ "$mode_flag" = "dark" ]; then
+ dconf write /org/gnome/desktop/interface/color-scheme "'prefer-light'"
+ else
+ dconf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'"
+ fi
+
dconf write /org/gnome/desktop/interface/color-scheme "'prefer-$mode_flag'"
if [ -z "$WAYLAND_DISPLAY" ] && [ -n "$DISPLAY" ]; then