{"id":16166426,"url":"https://github.com/adi1090x/canvas","last_synced_at":"2025-06-25T05:38:14.063Z","repository":{"id":50604837,"uuid":"268721731","full_name":"adi1090x/canvas","owner":"adi1090x","description":"🖼️ A Gradient / Blured Wallpaper Generator And Setter.","archived":false,"fork":false,"pushed_at":"2024-01-22T06:27:58.000Z","size":4560,"stargazers_count":148,"open_issues_count":2,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-11T02:54:21.461Z","etag":null,"topics":["adi1090x","archlinux","bash","bash-script","bash-scripting","debian","feh","imagemagick","imagemagick-wrapper","linux","shell-script","ubuntu","unixporn","wallpaper","wallpaper-changer","wallpaper-engine","wallpaper-generator"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adi1090x.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-02T06:41:12.000Z","updated_at":"2024-10-03T02:15:28.000Z","dependencies_parsed_at":"2023-01-18T04:45:16.968Z","dependency_job_id":null,"html_url":"https://github.com/adi1090x/canvas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adi1090x%2Fcanvas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adi1090x%2Fcanvas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adi1090x%2Fcanvas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adi1090x%2Fcanvas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adi1090x","download_url":"https://codeload.github.com/adi1090x/canvas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221662674,"owners_count":16859730,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adi1090x","archlinux","bash","bash-script","bash-scripting","debian","feh","imagemagick","imagemagick-wrapper","linux","shell-script","ubuntu","unixporn","wallpaper","wallpaper-changer","wallpaper-engine","wallpaper-generator"],"created_at":"2024-10-10T02:54:08.593Z","updated_at":"2024-10-27T10:25:05.596Z","avatar_url":"https://github.com/adi1090x.png","language":"Shell","funding_links":["https://www.buymeacoffee.com/adi1090x","https://ko-fi.com/adi1090x","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=U3VK2SSVQWAPN","https://www.patreon.com/adi1090x"],"categories":["Packages"],"sub_categories":["Background setting utilities and generators"],"readme":"\u003c!-- Links --\u003e\n[bmac]: https://www.buymeacoffee.com/adi1090x\n[ko-fi]: https://ko-fi.com/adi1090x\n[paypal]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=U3VK2SSVQWAPN\n[patreon]: https://www.patreon.com/adi1090x\n\n# Canvas\n\n\u003cp align=\"left\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Maintained%3F-Yes-green?style=for-the-badge\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/adi1090x/canvas?style=for-the-badge\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/issues/adi1090x/canvas?color=violet\u0026style=for-the-badge\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/forks/adi1090x/canvas?color=teal\u0026style=for-the-badge\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/stars/adi1090x/canvas?style=for-the-badge\"\u003e\n\u003c/p\u003e\n\nA `bash` script to generate and apply different types of **gradient** \u0026 **blured** wallpapers.\n\n![main](wallpapers/main.png)\n\n### Features\n\n+ Generate a `solid color` wallpaper\n+ Generate a `random blured` wallpaper\n+ Generate linear, radial, bilinear(4 colored) \u0026 twisted `gradient` wallpapers\n+ Generate random, twisted or colored `plasma` wallpapers\n+ Allows you to pick colors or fetch colors from `.Xresources` file for wallpaper generation\n\n### Dependencies\n\n+ `imagemagick`\n+ `feh`\n+ `xcolor`\n+ `xrandr` (only if you use it on xfce)\n\n### Installation\n\n+ Clone this repository...\n```bash\ncd $HOME\ngit clone https://github.com/adi1090x/canvas.git\ncd canvas\nchmod +x canvas\n\n# you can copy this script in bin dir for easy use\nsudo cp canvas /usr/local/bin\n```\n\n+ Run the program and choose an option\n```\n$ ./canvas -h\n\n┏━╸┏━┓┏┓╻╻ ╻┏━┓┏━┓\n┃  ┣━┫┃┗┫┃┏┛┣━┫┗━┓\n┗━╸╹ ╹╹ ╹┗┛ ╹ ╹┗━┛\nCanvas V3.0  : The Wallpaper Generator.\nDeveloped By : Aditya Shakya (@adi1090x)\n\nUsage : canvas [-h] [-S wxh] [-B] [-s] [-l] [-r] [-t] [-b] [-p] [-n] [-a] [-R]\n\nOptions:\n   -h   --help\t\t    Show this help message \u0026 exit\n   -S   --size\t\t    Size of the wallpaper (default is 1366x768)\n   -B   --blurred\t    Generate a random blurred wallpaper\n   -s   --solid\t\t    Generate a solid color wallpaper\n   -l   --linear\t    Generate a linear gradient wallpaper\n   -r   --radial\t    Generate a radial gradient wallpaper\n   -t   --twisted\t    Generate a twisted gradient wallpaper\n   -b   --bilinear\t  Generate a bilinear(4point) gradient wallpaper\n   -p   --plasma\t    Generate a plasma wallpaper\n   -n   --no-preview\tDo not show preview when image is generated \n   -a   --autobg\t    Automatically set as wallpaper (implies -n)\n   -R   --randomize\t  Generate a random wallpaper\n```\n\n### Usage\n\nThough you can pick colors, Here's a [list](https://imagemagick.org/www/script/color.php) of all supported color names.\n\n**1**. Generate random blured wallpaper...\n\n```\n$ canvas -B\n\nEnter the blur strength (maximum 30): 12\n\nSet as desktop background? (y/n): y\n```\n\n|Blured 1|Blured 2|\n|-|-|\n|![img](wallpapers/1.png)|![img](wallpapers/2.png)|\n\n**2**. Generate a solid color wallpaper...\n\n```\n$ canvas -s\n\nPick Colors or Enter Colors or fetch from .Xresources file? (p/e/x): p\n\nPick a color... \nGenerating wallpaper with color: #BA68C8\n\nSet as desktop background? (y/n): y\n\n$ canvas -s\n\nPick Colors or Enter Colors or fetch from .Xresources file? (p/e/x): e\n\nEnter the color name or hex (eg: teal, #EBCB8B): #A3BE8C\n\nSet as desktop background? (y/n): y\n\n$ canvas -s\n\nPick Colors or Enter Colors or fetch from .Xresources file? (p/e/x): x\n \n ██████  ██████  ██████  ██████  ██████  ██████\n ██01██  ██02██  ██03██  ██04██  ██05██  ██06██\n ██████  ██████  ██████  ██████  ██████  ██████\n\n ██████  ██████  ██████  ██████  ██████  ██████\n ██07██  ██08██  ██09██  ██10██  ██11██  ██12██\n ██████  ██████  ██████  ██████  ██████  ██████\t \n\nEnter the color number (without zero): 1\n\nGenerating wallpaper with color: #BF616A\n\nSet as desktop background? (y/n): y\n```\n|Solid - #BA68C8|Solid - #A3BE8C|\n|-|-|\n|![img](wallpapers/3.png)|![img](wallpapers/4.png)|\n\n**3**. Generate a linear gradient wallpaper...\n\n```\n$ canvas -l\n\nPick Colors or Enter Colors or fetch from .Xresources file? (p/e/x): p\n\nPick first color...\nPick second color...\n\nGenerating wallpaper with colors: #FB8784, #70D675\n\nEnter the rotation angle (default is 0): 60 \n\nSet as desktop background? (y/n): y\n\n$ canvas -l\n\nPick Colors or Enter Colors or fetch from .Xresources file? (p/e/x): e\n\nEnter the colors name or hex (format: color1-color2): orange-purple\n\nEnter the rotation angle (default is 0): 90\n\nSet as desktop background? (y/n): y\n```\n\n|Linear Gradient 1|Linear Gradient 2|\n|-|-|\n|![img](wallpapers/5.png)|![img](wallpapers/6.png)|\n\n**4**. Generate a radial gradient wallpaper...\n\n```\n$ canvas -r\n\nPick Colors or Enter Colors or fetch from .Xresources file? (p/e/x): p\n\nPick first color...\nPick second color...\n\nGenerating wallpaper with colors: #DA0B86, #200D74\n\nShape? [ 1.diagonal | 2.ellipse | 3.maximum | 4.minimum ] (1/2/3/4): 3\n\nEnter the rotation angle (default is 0): 0\n\nSet as desktop background? (y/n): y\n\n$ canvas -r\n\nPick Colors or Enter Colors or fetch from .Xresources file? (p/e/x): e\n\nEnter the colors name or hex (format: color1-color2): red-black\n\nShape? [ 1.diagonal | 2.ellipse | 3.maximum | 4.minimum ] (1/2/3/4): 2\n\nEnter the rotation angle (default is 0): 20\n\nSet as desktop background? (y/n): y\n```\n\n|Radial Gradient Max|Radial Gradient Ellipse|\n|-|-|\n|![img](wallpapers/7.png)|![img](wallpapers/8.png)|\n\n**5**. Generate a twisted gradient wallpaper...\n\n```\n$ canvas -t\n\nPick Colors or Enter Colors or fetch from .Xresources file? (p/e/x): p\n\nPick first color...\nPick second color...\n\nGenerating wallpaper with colors: #EC7875, #61C766\n\nEnter the twisting amount (maximum 500): 200\n\nSet as desktop background? (y/n): y\n\n$ canvas -t\n\nPick Colors or Enter Colors or fetch from .Xresources file? (p/e/x): e\n\nEnter the colors name or hex (format: color1-color2): blue-pink\n\nEnter the twisting amount (maximum 500): 180\n\nSet as desktop background? (y/n): y\n```\n\n|Twisted Gradient 1|Twisted Gradient 2|\n|-|-|\n|![img](wallpapers/9.png)|![img](wallpapers/10.png)|\n\n**6**. Generate a bilinear gradient wallpaper...\n\n```\n$ canvas -b\n\nPick Colors or Enter Colors or fetch from .Xresources file? (p/e/x): p\n\nPick first color...\nPick second color...\nPick third color...\nPick fourth color...\n\nGenerating wallpaper with colors: #FB8784, #70D675, #FFE744 \u0026 #51B4FF\n\nSmooth or Regular? (s/r): r\n\nSet as desktop background? (y/n): y\n\n$ canvas -b\n\nPick Colors or Enter Colors or fetch from .Xresources file? (p/e/x): e\n\nEnter first color (eg: red, #EC7875): teal\nEnter second color (eg: green, #61C766): pink\nEnter third color (eg: yellow, #FDD835): purple\nEnter fourth color (eg: blue, #42A5F5): khaki\n\nSmooth or Regular? (s/r): s\n\nPlease wait...\nSet as desktop background? (y/n): y\n```\n\n|Bilinear 1|Bilinear 2|\n|-|-|\n|![img](wallpapers/11.png)|![img](wallpapers/12.png)|\n\n**7**. Generate a plasma wallpaper...\n\n```\n$ canvas -p\n\nRandom, Twisted or Custom colors? (r/t/c): r\n\nSet as desktop background? (y/n): n\n\n$ canvas -p\n\nRandom, Twisted or Custom colors? (r/t/c): t\n\nSet as desktop background? (y/n): n\n```\n\n|Plasma Normal|Plasma Twisted|\n|-|-|\n|![img](wallpapers/13.png)|![img](wallpapers/14.png)|\n\n### Common Issues\n\n1. **Wallpaper not changing** : If your wallpaper is not changing, then open an issue and show me the output of `echo $DESKTOP_SESSION`.\n\n2. **Not working on XFCE** : If this script is not working on xfce, then open the terminal and run `xfconf-query -c xfce4-desktop -m` and change the wallpaper (any) via *xfce4-settings-manager*. \u003cbr /\u003e\nIn terminal, *xfconf-query* will print lines starting with `set:`, which show which properties have been changed, check `screen` \u0026 `monitor` values and modify the script accordingly.\n```bash\n105   ## For XFCE\n106   if [[ \"$OSTYPE\" == \"linux\"* ]]; then\n107       SCREEN=\"0\"\n108       MONITOR=\"1\"\n109   fi\n\n```\n\n### FYI\n\n+ In KDE, it changes the wallpaper in all the Activities.\n+ If you can improve it, you're welcome.\n+ Have Fun!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadi1090x%2Fcanvas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadi1090x%2Fcanvas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadi1090x%2Fcanvas/lists"}