ShopDreamUp AI ArtDreamUp
Deviation Actions
Ok, I showed how to create a custom.xml to incorporate a wallpaper slideshow on Gnome (should also work on gnome derivatives, Unity & Cinnamon but not tested here) in my previous journal entry. fav.me/d5m03w3
Some people prefer a static background they can select from Appearances. I found a script for that on Ubuntu forums, the name & link are noted in the script. It is annotated with instructions.
It works great, hope you find a use for it.
-----------------------
#Script author: Freecore ubuntuforums.org/archive/index…
#November 7th, 2012, 04:42 PM
#Actually, you don't have to add manually your 80 wallpapers. I wrote a script to do that (I have a lot of wallpapers I #wanted to add to the appearance menu too :smile.
#This is the script:
#!/bin/bash
# Freecore
# This script creates an xml file that you can
# put on /usr/share/gnome-background-properties (if you want wallpapers entrys to ALL users, requires administrator rights)
# or in /home/userA/.local/share/gnome-background-properties (if you want it only for userA).
# Instructions
# (Realize that the script it's supposed to be runned like this: sh namescript FOLDER/OF/PICTURES/DIRECTION/).
# Don't forget the last "/".
# This script creates a file named my-wallpapers.xml.
# The file will have the xml code that Ubuntu (Gnome) identifies when it search for backgrounds.
# ATTENTION: The file generated will NOT include hidden folders NOR sub-folders pictures.
# ATTENTION: The file will include xml code for EACH file, so only put pictures in that folder.
xmlFile="my-wallpapers.xml"
echo '<?xml version="1.0" encoding="UTF-8"?>' >> "$xmlFile"
echo '' >> "$xmlFile"
echo '<wallpapers>' >> "$xmlFile"
# For each file in the folder ingresed by the user, it wll create an xml entry.
for img in "$1"*; do
# We'll declare a variable with the entire name of the image (extention included). It will be used to declare the next variable.
CompleteName="${img##*/}"
# We'll declare a variable with the name without the extention. It will be the name in the appearance menu
Name=$(echo "$CompleteName" | cut -d "." -f 1)
echo " <wallpaper>" >> "$xmlFile"
echo " <name>$Name</name>" >> "$xmlFile"
echo " <filename>$img</filename>" >> "$xmlFile"
echo " <options>zoom</options>" >> "$xmlFile"
echo " <pcolor>#000000</pcolor>" >> "$xmlFile"
echo " <scolor>#000000</scolor>" >> "$xmlFile"
echo " <shade_type>solid</shade_type>" >> "$xmlFile"
echo " </wallpaper>" >> "$xmlFile"
done
echo '</wallpapers>' >> "$xmlFile"
echo
echo
echo "The file has been created with the pictures in «$1»"
echo
#All you have to do is put it in a .sh text file and run it in a terminal with something like
#sh your-file.sh your/pictures/folder/ be aware of the last "/". And it's done!
#If you want the wallpapers to be able only in your appearance menu you can put the xml file in your local folder (./#local/share...) as I mentioned in the script.
#You can manage to convert the script to a Slideshow creator too with some little changes.
#I hope it'll help some people. :cool:
Some people prefer a static background they can select from Appearances. I found a script for that on Ubuntu forums, the name & link are noted in the script. It is annotated with instructions.
It works great, hope you find a use for it.
-----------------------
#Script author: Freecore ubuntuforums.org/archive/index…
#November 7th, 2012, 04:42 PM
#Actually, you don't have to add manually your 80 wallpapers. I wrote a script to do that (I have a lot of wallpapers I #wanted to add to the appearance menu too :smile.
#This is the script:
#!/bin/bash
# Freecore
# This script creates an xml file that you can
# put on /usr/share/gnome-background-properties (if you want wallpapers entrys to ALL users, requires administrator rights)
# or in /home/userA/.local/share/gnome-background-properties (if you want it only for userA).
# Instructions
# (Realize that the script it's supposed to be runned like this: sh namescript FOLDER/OF/PICTURES/DIRECTION/).
# Don't forget the last "/".
# This script creates a file named my-wallpapers.xml.
# The file will have the xml code that Ubuntu (Gnome) identifies when it search for backgrounds.
# ATTENTION: The file generated will NOT include hidden folders NOR sub-folders pictures.
# ATTENTION: The file will include xml code for EACH file, so only put pictures in that folder.
xmlFile="my-wallpapers.xml"
echo '<?xml version="1.0" encoding="UTF-8"?>' >> "$xmlFile"
echo '' >> "$xmlFile"
echo '<wallpapers>' >> "$xmlFile"
# For each file in the folder ingresed by the user, it wll create an xml entry.
for img in "$1"*; do
# We'll declare a variable with the entire name of the image (extention included). It will be used to declare the next variable.
CompleteName="${img##*/}"
# We'll declare a variable with the name without the extention. It will be the name in the appearance menu
Name=$(echo "$CompleteName" | cut -d "." -f 1)
echo " <wallpaper>" >> "$xmlFile"
echo " <name>$Name</name>" >> "$xmlFile"
echo " <filename>$img</filename>" >> "$xmlFile"
echo " <options>zoom</options>" >> "$xmlFile"
echo " <pcolor>#000000</pcolor>" >> "$xmlFile"
echo " <scolor>#000000</scolor>" >> "$xmlFile"
echo " <shade_type>solid</shade_type>" >> "$xmlFile"
echo " </wallpaper>" >> "$xmlFile"
done
echo '</wallpapers>' >> "$xmlFile"
echo
echo
echo "The file has been created with the pictures in «$1»"
echo
#All you have to do is put it in a .sh text file and run it in a terminal with something like
#sh your-file.sh your/pictures/folder/ be aware of the last "/". And it's done!
#If you want the wallpapers to be able only in your appearance menu you can put the xml file in your local folder (./#local/share...) as I mentioned in the script.
#You can manage to convert the script to a Slideshow creator too with some little changes.
#I hope it'll help some people. :cool:
Booting Clonezilla.iso with Grub2
I use Clonezilla for frequent partition backups. This is my menu entry for booting the iso from Grub. (My iso is located on sdb7 so adjust accordingly)
---------------------------------
menuentry "ISO Clonezilla live" {
set isofile="/clonezilla-live-2.1.0-7-amd64.iso"
loopback loop (hd1,7)$isofile
linux (loop)/live/vmlinuz boot=live live-config nolocales edd=on nomodeset ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\" ocs_live_keymap=\"\" ocs_live_batch=\"no\" ocs_lang=\"\" vga=788 ip=frommedia nosplash toram=filesystem.squashfs findiso=$isofile
initrd (loop)/live/initrd.img
}
Create a custom.xml for Gnome wallpaper slideshow
**** 29 November 2012 *****
Ran into a bug since I originally shared this: If you use the link from the slideshow.xml for easy access by apps like gdm3setup make sure you either have it in a different folder than the images, or remove it before running the nautilus script. If you don't it will be added to the custom.xml and will not display that 'image' correctly.
My solution was to place them in /usr/share/GDM so I no longer have to worry about it.
****************************************************************
I use a nautilus script that I found via Webupd8 http://www.webupd8.org/2011/12/create-wallpaper-slideshow-with-xml.html to cr
Ubuntu Software Center Text color fix
Hi folks, as you probably realize by now, I am not an Ubuntu user, but I still have roots to it. This is probably an aspect I have overlooked in every one of my themes, but this is a fix via CraazyT & nowerries.
-------- Quote ------------------
~nowerries Mar 12, 2012
Hey just read the thread and thought you might like my fix for USC on dark colored themes.
"Only bug I have noticed so far is fonts unreadable in Ubunut Software Center the fix for this is to in terminal type...
sudo gedit /usr/share/software-center/ui/gtk3/css/softwarecenter.css
.... and change the color value of @define-color super-light-aubergine to what ever color
Featured in Groups
© 2012 - 2024 cbowman57
Comments0
Join the community to add your comment. Already a deviant? Log In