diff options
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 |
