My ubuntu 14.04 is getting crusty and I don’t think that Mate helped it out greatly, but I marginally like Mate better than XFCE. However, whenever my computer wakes from suspend, my wallpaper background image is all black and kinda messed up. So I read this example of making a suspend-resume hook. And here is my own:
jreynolds@cholla /etc/pm/sleep.d > cat 20-desktop #!/bin/bash wallpaper="/home/jreynolds/Pictures/wallpapers/paradise-hills-01-3840x1080.jpg" case "$1" in sleep|hibernate) ;; resume|thaw) pgrep mate-session \ && Esetroot $wallpaper & ;; esac
And it seems to work pretty well.