Skip to content

Commit

Permalink
Code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
renegarcia committed Jul 13, 2023
1 parent 360cb9c commit ef3b87b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions notes/code.snippets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
id: cfm4n435nhmnbubcoi8a356
title: Code Snippets
desc: ''
updated: 1689264389972
created: 1689264140093
---

# How to set gnome wallpaper using the command line

```sh
gsettings set org.gnome.desktop.background picture-uri file:///path/to/image
```


## Setting bing's image of the day as wallpaper


```sh
wget -O /tmp/wallpaper.jpg "http://www.bing.com/$(wget -q -O- https://binged.it/2ZButYc | sed -e 's/<[^>]*>//g' | cut -d / -f2 | cut -d \& -f1)"

gsettings set org.gnome.desktop.background picture-uri file:////tmp/wallpaper.jpg

```

__Source:__ [https://linuxconfig.org/set-wallpaper-on-ubuntu-20-04-using-command-line](https://linuxconfig.org/set-wallpaper-on-ubuntu-20-04-using-command-line)

0 comments on commit ef3b87b

Please sign in to comment.