This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
default_list="file:///home/user/wp-live-ws.png file:///home/user/wp-persistent-ws.png file:///home/user/wp-live-gw.png file:///home/user/wp-persistent-gw.png" | |
current_wp=$(cat /home/user/.config/plasma-org.kde.plasma.desktop-appletsrc | grep "Image=" | sed 's/Image=//' ) | |
change_wp() { | |
if [ -f /usr/share/anon-ws-base-files/workstation ]; then | |
if cat /proc/cmdline | grep "boot=live"; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -f /usr/share/anon-ws-base-files/workstation ]; then | |
if cat /proc/cmdline | grep "boot=live"; then | |
#set wallpaper for workstation live | |
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:///home/user/wp-live-ws.png")}' | |
else | |
#set wallpaper for workstation persistent |