From c9f6fb77d0993c93dc7fdb3b4f5d25c270a59c01 Mon Sep 17 00:00:00 2001 From: KoenDR06 Date: Sat, 19 Oct 2024 23:05:36 +0200 Subject: [PATCH] Added a switch to ____ theme script --- misc/switch-to-dark-theme.sh | 12 ++++++++++++ misc/switch-to-light-theme.sh | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 misc/switch-to-dark-theme.sh create mode 100755 misc/switch-to-light-theme.sh 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"); +}'