also write dark mode

This commit is contained in:
Aminda Suomalainen 2024-07-19 21:44:22 +03:00
parent 7398981af0
commit 59563eb528
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
# This is all adapted from /usr/share/doc/darkman/examples/dark-mode.d/
# Notify of light theme switch
(notify-send --app-name="darkman" --urgency=low --icon=moon-phase-full "Moonlights" &)
# GTK Theme
(gsettings set org.gnome.desktop.interface gtk-theme Breeze-Dark &)
(dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Breeze" &)
# Xfce theme?
(exec xfconf-query -c xsettings -p /Net/ThemeName -s 'Breeze' &)
# Plasma
(lookandfeeltool --apply "org.kde.breezedark.desktop" &)