Added a switch to ____ theme script

This commit is contained in:
KoenDR06 2024-10-19 23:05:36 +02:00
parent 36ef8183fa
commit c9f6fb77d0
2 changed files with 24 additions and 0 deletions

12
misc/switch-to-dark-theme.sh Executable file
View file

@ -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");
}'

12
misc/switch-to-light-theme.sh Executable file
View file

@ -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");
}'