From 59563eb52876e0304a4cd71955e85415c10a6f53 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 19 Jul 2024 21:44:22 +0300 Subject: [PATCH] also write dark mode --- ...e-wallpaper-fedora.sh => fedora-wallpaper.sh} | 0 bash/darkman/dark-mode.d/fedora.sh | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) rename bash/darkman/dark-mode.d/{zz-kde-wallpaper-fedora.sh => fedora-wallpaper.sh} (100%) create mode 100755 bash/darkman/dark-mode.d/fedora.sh diff --git a/bash/darkman/dark-mode.d/zz-kde-wallpaper-fedora.sh b/bash/darkman/dark-mode.d/fedora-wallpaper.sh similarity index 100% rename from bash/darkman/dark-mode.d/zz-kde-wallpaper-fedora.sh rename to bash/darkman/dark-mode.d/fedora-wallpaper.sh diff --git a/bash/darkman/dark-mode.d/fedora.sh b/bash/darkman/dark-mode.d/fedora.sh new file mode 100755 index 0000000..568ddf3 --- /dev/null +++ b/bash/darkman/dark-mode.d/fedora.sh @@ -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" &)