diff --git a/misc/switch-to-dark-theme.sh b/misc/switch-to-dark-theme.sh new file mode 100755 index 0000000..102d70e --- /dev/null +++ b/misc/switch-to-dark-theme.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +lookandfeeltool -a org.kde.breezedark.desktop + +qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript ' +var allDesktops = desktops(); +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:///home/horseman/nix-config/misc/nixos_wallpaper_dark_3840x2160.png"); +}' diff --git a/misc/switch-to-light-theme.sh b/misc/switch-to-light-theme.sh new file mode 100755 index 0000000..d34fed6 --- /dev/null +++ b/misc/switch-to-light-theme.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +lookandfeeltool -a org.kde.breeze.desktop + +qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript ' +var allDesktops = desktops(); +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:///home/horseman/nix-config/misc/nixos_wallpaper_light_3840x2160.png"); +}'