darkman: don't fork, I have no idea anymore what the point of that was

This commit is contained in:
Aminda Suomalainen 2024-07-22 15:09:55 +03:00
parent fcb90ac932
commit fc93812323
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
3 changed files with 17 additions and 17 deletions

View File

@ -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"

View File

@ -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

View File

@ -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