From 585021a3a90c704334a7a906e26cea6e3995a345 Mon Sep 17 00:00:00 2001 From: samwhelp Date: Sat, 5 Oct 2024 20:48:15 +0800 Subject: [PATCH] Support Lingmo OS https://github.com/LingmoOS --- data/scripts/get_wallpaper | 4 ++++ data/scripts/set_wallpaper | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/data/scripts/get_wallpaper b/data/scripts/get_wallpaper index d4cc4d17..b31febaf 100755 --- a/data/scripts/get_wallpaper +++ b/data/scripts/get_wallpaper @@ -14,6 +14,10 @@ if [ "$desktop" == "ubuntu" ] || [ "$XDG_CURRENT_DESKTOP" == "Unity" ]; then elif [ "$desktop" == "xubuntu" ] || [ "$XDG_CURRENT_DESKTOP" == "XFCE" ]; then xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/workspace0/last-image +# Lingmo OS +elif [ "$XDG_CURRENT_DESKTOP" == "Lingmo" ]; then + qdbus com.lingmo.Settings /Theme com.lingmo.Theme.wallpaper + # LXDE/PCManFM elif [ "$XDG_CURRENT_DESKTOP" == "LXDE" ]; then # The PCManFM config path varies by session name; Lubuntu is effectively a special case here diff --git a/data/scripts/set_wallpaper b/data/scripts/set_wallpaper index 88cd5164..febaf529 100755 --- a/data/scripts/set_wallpaper +++ b/data/scripts/set_wallpaper @@ -204,6 +204,11 @@ if [[ $rc = 0 ]] ; then done fi +# Lingmo OS +if [ "$XDG_CURRENT_DESKTOP" == "Lingmo" ]; then + qdbus com.lingmo.Settings /Theme com.lingmo.Theme.setWallpaper "$WP" 2> /dev/null +fi + # LXDE/PCmanFM if [ "$XDG_CURRENT_DESKTOP" == "LXDE" ]; then pcmanfm --set-wallpaper "$WP" 2> /dev/null