diff options
| author | brustybee <bee@4d2.org> | 2026-03-17 12:01:12 +0530 |
|---|---|---|
| committer | brustybee <bee@4d2.org> | 2026-03-17 12:01:12 +0530 |
| commit | d00553e667c78aa475773556058108f469f46d4e (patch) | |
| tree | e45a872469cab5a0cef8b1c7f64b2ce35ff68eff /common/modules/mango/scripts.nix | |
| parent | 5cc6194fb34e8b1f1274db2cd9c171d1ae11ff6e (diff) | |
hot reload gtk apps to update theme and install steam
Diffstat (limited to 'common/modules/mango/scripts.nix')
| -rw-r--r-- | common/modules/mango/scripts.nix | 7 |
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 |
