Image 01
profile-image

filipkemuel

test
High Ubunterra

GDM Themes 161 comments

Score 83.5%
Apr 21 2019
I would propose to modify the script a bit to make it more robust and less error-prone. And I don't like making a system folder user-writable. So Instead I would use pkexec to ask for password to copy the GDM wallpaper.

I tested the script below on Ubuntu 18.04 and it works very well
--------------------------------------------------------------------------------------------
#!/bin/bash
# Set As Wallpaper
gsettings set org.gnome.desktop.background picture-uri file:///`pwd`/$1
sleep 5
# Make your wallpaper blurry
prefix="'file://"
suffix="'"
theImage=$(gsettings get org.gnome.desktop.background picture-uri)
theImage=${theImage#$prefix}
theImage=${theImage%$suffix}
convert "${theImage}" -blur 0x30 ~/Pictures/gdm_lock.jpg
# Copy wallpaper in system directory for gdm3 lockscreen
pkexec cp -f ~/Pictures/gdm_lock.jpg /usr/share/backgrounds/

# Enjoy!
# My contact eugene.veprytskyi@gmail.com

--------------------------------------------------------------------------------------------
- Jul 03 2018