A bash script to generate and apply different types of gradient & blured wallpapers.
- Input Colors for wallpaper using
-coption - Multi Color Support for
plasmaWallpaper - Fedora Centerd Changes
- Replaced
xcolorwithgcolor3
- Replaced
- Generate a
solid colorwallpaper - Generate a
random bluredwallpaper - Generate linear, radial, bilinear(4 colored) & twisted
gradientwallpapers - Generate random, twisted or colored
plasmawallpapers - Allows you to pick colors or fetch colors from
.Xresourcesfile for wallpaper generation
imagemagickfehxcolorgcolor3xrandr(only if you use it on xfce)
- Clone this repository...
cd $HOME
git clone https://github.com/adi1090x/canvas.git
cd canvas
chmod +x canvas
# you can copy this script in bin dir for easy use
sudo cp canvas /usr/local/bin- Run the program and choose an option
$ ./canvas -h
βββΈββββββ»β» β»ββββββ
β β£ββ«βββ«ββββ£ββ«βββ
βββΈβΉ βΉβΉ βΉββ βΉ βΉβββ
Canvas V4.0 (Fedora Edition) - Wallpaper Generator
Developed By : Aditya Shakya (@adi1090x)
Usage: canvas [OPTIONS]
Options:
-h, --help Show this help message
-S, --size WxH Wallpaper size (default: 1920x1080)
-s, --solid Generate solid color wallpaper
-l, --linear Generate linear gradient wallpaper
-r, --radial Generate radial gradient wallpaper
-t, --twisted Generate twisted gradient wallpaper
-b, --bilinear Generate bilinear (4-point) gradient wallpaper
-p, --plasma Generate plasma wallpaper
-B, --blurred Generate random blurred wallpaper
-n, --no-preview Skip preview window
-a, --autobg Auto-set as wallpaper (implies -n)
-R, --randomize Generate random wallpaper
-c, --colors COLORS Specify colors directly (see examples)
Examples:
canvas -s -c "#FF5733" # Solid color
canvas -l -c "#FF5733-#3498DB" -a # Linear gradient, auto-set
canvas -r -c "red-blue" # Radial with color names
canvas -t -c "#E74C3C-#8E44AD" # Twisted gradient
canvas -b -c "#FF0000,#00FF00,#0000FF,#FFFF00" # 4 colors for bilinear
canvas -p -c "#FF6B6B-#4ECDC4" # Plasma with colors
canvas -R # Random wallpaper
canvas -S 2560x1440 -l -c "orange-purple" # Custom size
Though you can pick colors, Here's a list of all supported color names.
-
Wallpaper not changing : If your wallpaper is not changing, then open an issue and show me the output of
echo $DESKTOP_SESSION. -
Not working on XFCE : If this script is not working on xfce, then open the terminal and run
xfconf-query -c xfce4-desktop -mand change the wallpaper (any) via xfce4-settings-manager.
In terminal, xfconf-query will print lines starting withset:, which show which properties have been changed, checkscreen&monitorvalues and modify the script accordingly.
105 ## For XFCE
106 if [[ "$OSTYPE" == "linux"* ]]; then
107 SCREEN="0"
108 MONITOR="1"
109 fi
- In KDE, it changes the wallpaper in all the Activities.
- If you can improve it, you're welcome.
- Have Fun!