mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-22 10:42:56 +01:00
darkman: stop using the examples
This commit is contained in:
parent
86e2ec0aa6
commit
7398981af0
@ -11,6 +11,9 @@ if [ ! -d ~/.local/share/dark-mode.d ]; then
|
||||
echo "Ensure ~/.local/share/ has directories {dark,light}-mode.d/"
|
||||
fi
|
||||
|
||||
echo "Ctrl-C unless you want the examples... Sleeping for 3."
|
||||
sleep 3
|
||||
|
||||
if [ -d /usr/share/doc/darkman/examples ]; then
|
||||
export EXAMPLESDIR="/usr/share/doc/darkman/examples"
|
||||
elif [ -d /usr/local/share/doc/darkman/examples ]; then
|
||||
|
@ -1,11 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# To change the wallpaper on all desktops, you have to run a PlasmaShell script
|
||||
# and iterate over all available desktops. This examples uses the default dark
|
||||
# wallpaper on Manjaro (Bamboo).
|
||||
|
||||
# Script credit @mamantoha: https://gist.github.com/mamantoha/c01363e5c791e8324d6248b09cf29bbb
|
||||
|
||||
WALLPAPER_PATH="/usr/share/wallpapers/F$(lsb_release -sr)/contents/images/3840x2160.png"
|
||||
|
||||
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'var allDesktops = desktops();print (allDesktops);for (i=0;i<allDesktops.length;i++) {d = allDesktops[i];d.wallpaperPlugin = "org.kde.image";d.currentConfigGroup = Array("Wallpaper", "org.kde.image", "General");d.writeConfig("Image", "file://'$WALLPAPER_PATH'")}'
|
16
bash/darkman/light-mode.d/fedora.sh
Executable file
16
bash/darkman/light-mode.d/fedora.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This is all adapted from /usr/share/doc/darkman/examples/light-mode.d/
|
||||
|
||||
# Notify of light theme switch
|
||||
(notify-send --app-name="darkman" --urgency=low --icon=weather-clear "Let there be light" &)
|
||||
|
||||
# GTK Theme
|
||||
(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?
|
||||
(exec xfconf-query -c xsettings -p /Net/ThemeName -s 'Breeze' &)
|
||||
|
||||
# Plasma
|
||||
(lookandfeeltool --apply "org.kde.breeze.desktop" &)
|
@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
lookandfeeltool --apply "org.fedoraproject.fedora.desktop"
|
Loading…
Reference in New Issue
Block a user