From fc938123238ef420dc0ae986efb38b5dc36934b0 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Mon, 22 Jul 2024 15:09:55 +0300 Subject: [PATCH] darkman: don't fork, I have no idea anymore what the point of that was --- .../dark-mode.d/00-do-not-repeat-yourself.bash | 4 ++-- .../dark-mode.d/10-adwaita-breeze-dark.bash | 18 +++++++++--------- local/share/light-mode.d/10-breeze.bash | 12 ++++++------ 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/local/share/dark-mode.d/00-do-not-repeat-yourself.bash b/local/share/dark-mode.d/00-do-not-repeat-yourself.bash index 214e4cb7..016bd9ee 100755 --- a/local/share/dark-mode.d/00-do-not-repeat-yourself.bash +++ b/local/share/dark-mode.d/00-do-not-repeat-yourself.bash @@ -24,9 +24,9 @@ export DARKMANGET="$(darkman get)" printf "Distribution: $DISTROID\nRelease: $DISTROREL\nMode: $DARKMANGET\n" if [[ "$DARKMANGET" -eq "dark" ]]; then - (notify-send --app-name="darkman" --urgency=low --icon=weather-clear-night "Teema: $DARKMANGET" &) + notify-send --app-name="darkman" --urgency=low --icon=weather-clear-night "Teema: $DARKMANGET" elif [[ "$DARKMANGET" -eq "light" ]]; then - (notify-send --app-name="darkman" --urgency=low --icon=weather-clear "Teema: $DARKMANGET" &) + notify-send --app-name="darkman" --urgency=low --icon=weather-clear "Teema: $DARKMANGET" else ERRORMESSAGE="Something went wrong?" echo "$ERRORMESSAGE" diff --git a/local/share/dark-mode.d/10-adwaita-breeze-dark.bash b/local/share/dark-mode.d/10-adwaita-breeze-dark.bash index b7ee522b..53cb2a01 100755 --- a/local/share/dark-mode.d/10-adwaita-breeze-dark.bash +++ b/local/share/dark-mode.d/10-adwaita-breeze-dark.bash @@ -5,18 +5,18 @@ # This is all adapted from /usr/share/doc/darkman/examples/dark-mode.d/ # GTK Theme -(sleep 3 && gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' &) -(sleep 1 && gsettings set org.gnome.desktop.interface gtk-theme Breeze &) -(sleep 2 && gsettings set org.gnome.desktop.interface gtk-theme Breeze-dark &) -(sleep 1 && dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Breeze" &) -(sleep 2 && dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Breeze-dark" &) +sleep 3 && gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' +sleep 1 && gsettings set org.gnome.desktop.interface gtk-theme Breeze +sleep 2 && gsettings set org.gnome.desktop.interface gtk-theme Breeze-dark +sleep 1 && dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Breeze" +sleep 2 && dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Breeze-dark" # Xfce theme? -(sleep 1 && xfconf-query --channel xsettings --create --type string --property /Net/ThemeName --set Breeze &) -(sleep 2 && xfconf-query --channel xsettings --create --type string --property /Net/ThemeName --set Breeze-dark &) +sleep 1 && xfconf-query --channel xsettings --create --type string --property /Net/ThemeName --set Breeze +sleep 2 && xfconf-query --channel xsettings --create --type string --property /Net/ThemeName --set Breeze-dark # Plasma -(lookandfeeltool --apply "org.kde.breezedark.desktop" &) +lookandfeeltool --apply "org.kde.breezedark.desktop" # Kvantum Qt -#(sleep 3 && kvantummanager --set KvGnomeDark --noAssign-All &) +#sleep 3 && kvantummanager --set KvGnomeDark --noAssign-All diff --git a/local/share/light-mode.d/10-breeze.bash b/local/share/light-mode.d/10-breeze.bash index ab00ded8..94a11fcc 100755 --- a/local/share/light-mode.d/10-breeze.bash +++ b/local/share/light-mode.d/10-breeze.bash @@ -5,15 +5,15 @@ # This is all adapted from /usr/share/doc/darkman/examples/light-mode.d/ # GTK Theme -(gsettings set org.gnome.desktop.interface color-scheme 'prefer-light' &) -(gsettings set org.gnome.desktop.interface gtk-theme Breeze &) -(dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Breeze" &) +gsettings set org.gnome.desktop.interface color-scheme 'prefer-light' +gsettings set org.gnome.desktop.interface gtk-theme Breeze +dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Breeze" # Xfce theme? -(xfconf-query --channel xsettings --create --type string --property /Net/ThemeName --set Breeze &) +xfconf-query --channel xsettings --create --type string --property /Net/ThemeName --set Breeze # Plasma -(lookandfeeltool --apply "org.kde.breeze.desktop" &) +lookandfeeltool --apply "org.kde.breeze.desktop" # Kvantum Qt -#(sleep 3 && kvantummanager --set KvGnome --noAssign-All &) +#sleep 3 && kvantummanager --set KvGnome --noAssign-All