# Fond d'écran uni en ligne de cmd (sans utiliser feh ou autres)?

**URL:** <https://www.debian-fr.org/t/fond-decran-uni-en-ligne-de-cmd-sans-utiliser-feh-ou-autres/86359>\
**Category:** Support Debian\
**Created:** [Avril 6, 2022, 4:28 UTC](https://www.debian-fr.org/t/fond-decran-uni-en-ligne-de-cmd-sans-utiliser-feh-ou-autres/86359 "2022-04-06T16:28:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crapot](https://www.debian-fr.org/user_avatar/www.debian-fr.org/crapot/32/14932_2.png) [@Crapot](https://www.debian-fr.org/u/Crapot)\
**Post date:** [Avril 6, 2022, 4:28 UTC](https://www.debian-fr.org/t/fond-decran-uni-en-ligne-de-cmd-sans-utiliser-feh-ou-autres/86359/1 "2022-04-06T16:28:09Z")

</div>

Hello

Tout est dans le titre 😉

J’utilise feh pour mettre un fond d’écran.  
Mon fond est de couleur unie.  
J’ai donc créer fichier image de un pixel de la couleur choisie … car je ne pense pas que feh, puisse afficher autre chose que des images…

Y a t-il un moyen en ligne de commande pour mettre une couleur en fond d’écran ?  
sans utiliser feh et mon fichier de un pixel ??

merci

a+

---

<div class="post-metadata">

**Author:** ![nicola](https://www.debian-fr.org/user_avatar/www.debian-fr.org/nicola/32/8969_2.png) [@nicola](https://www.debian-fr.org/u/nicola)\
**Post date:** [Avril 6, 2022, 5:13 UTC](https://www.debian-fr.org/t/fond-decran-uni-en-ligne-de-cmd-sans-utiliser-feh-ou-autres/86359/2 "2022-04-06T17:13:52Z")

</div>

wmsetbg ?  
Oui :

```
> wmsetbg --help
Usage: wmsetbg [options] [image]
Sets the workspace background to the specified image or a texture and
optionally update Window Maker configuration

 -display <display> display to use
 -d, --dither dither image
 -m, --match match colors
 -S, --smooth smooth scaled image
 -X, --xinerama stretch image across Xinerama heads
 -b, --back-color <color> background color
 -t, --tile tile image
 -e, --center center image
 -s, --scale scale image (default)
 -a, --maxscale scale image and keep aspect ratio
 -f, --fillscale scale image to fill screen and keep aspect ratio
 -u, --update-wmaker update WindowMaker domain database
 -D, --update-domain <domain> update <domain> database
 -c, --colors <cpc> colors per channel to use
 -p, --parse <texture> proplist style texture specification
 -w, --workspace <workspace> update background for the specified workspace
 -v, --version show version of wmsetbg and exit
 -h, --help show this help and exit
```

---

<div class="post-metadata">

**Author:** ![DarkGagan](https://www.debian-fr.org/user_avatar/www.debian-fr.org/darkgagan/32/4093_2.png) [@DarkGagan](https://www.debian-fr.org/u/DarkGagan)\
**Post date:** [Avril 6, 2022, 8:28 UTC](https://www.debian-fr.org/t/fond-decran-uni-en-ligne-de-cmd-sans-utiliser-feh-ou-autres/86359/3 "2022-04-06T20:28:07Z")

</div>

Un petit script peut t’aider: [Set the background color of xfce4-panel from the command line · GitHub](https://gist.github.com/ivan/82e525ab29f5a653511ec0bcdf2fd378)  
Examines-le avant, pour les 4 arguments.

---

<div class="post-metadata">

**Author:** ![Crapot](https://www.debian-fr.org/user_avatar/www.debian-fr.org/crapot/32/14932_2.png) [@Crapot](https://www.debian-fr.org/u/Crapot)\
**Post date:** [Avril 10, 2022, 10:43 UTC](https://www.debian-fr.org/t/fond-decran-uni-en-ligne-de-cmd-sans-utiliser-feh-ou-autres/86359/4 "2022-04-10T22:43:43Z")

</div>

merci … vais essayer tout cela

---

<div class="post-metadata">

**Author:** ![Crapot](https://www.debian-fr.org/user_avatar/www.debian-fr.org/crapot/32/14932_2.png) [@Crapot](https://www.debian-fr.org/u/Crapot)\
**Post date:** [Avril 10, 2022, 11:13 UTC](https://www.debian-fr.org/t/fond-decran-uni-en-ligne-de-cmd-sans-utiliser-feh-ou-autres/86359/5 "2022-04-10T23:13:23Z")

</div>

Bonsoir …

@DarkGagan :  
J’ai donc chargé le script «&nbsp;set-xfc4-panel-bgcolor.sh&nbsp;» et ouvert…  
Il me propose quatre arguments : r, g, b, a a adapté donc … dans des valeurs comprises entre 0,0 et 1,0 … à une décimal après le virgule …

Mais voilà, la couleur que j’aimerais affiché est #0811c :  
[#08111c sur encycolorpedia.com](https://encycolorpedia.com/08111c)  
… rgba(8, 17, 28, 1.0)

Du coup, ça ne marche pas trop … par argument, il y a qu’une grosse dizaine de valeurs possible

…  
(merci tout en passant)

---

<div class="post-metadata">

**Author:** ![nicola](https://www.debian-fr.org/user_avatar/www.debian-fr.org/nicola/32/8969_2.png) [@nicola](https://www.debian-fr.org/u/nicola)\
**Post date:** [Avril 11, 2022, 7:02 UTC](https://www.debian-fr.org/t/fond-decran-uni-en-ligne-de-cmd-sans-utiliser-feh-ou-autres/86359/6 "2022-04-11T07:02:11Z")

</div>

`wmsetbg` ne fonctionne pas seulement avec WindowMaker et son option `-b` accepte un nom de couleur au format X11 ou RGB ("#RRGGBB"), ici ça serait `wmsetbg -b "#00811c"`.

---

<div class="post-metadata">

**Author:** ![Crapot](https://www.debian-fr.org/user_avatar/www.debian-fr.org/crapot/32/14932_2.png) [@Crapot](https://www.debian-fr.org/u/Crapot)\
**Post date:** [Avril 17, 2022, 9:16 UTC](https://www.debian-fr.org/t/fond-decran-uni-en-ligne-de-cmd-sans-utiliser-feh-ou-autres/86359/7 "2022-04-17T21:16:29Z")

</div>

merci

j’ai installé wmaker : mais … ceci …  
car j’avoue et je n’avais préciser (veuillez m’excuser) que je pensais qu’il y aurait une «&nbsp;commande système&nbsp;» sans devoir passer par une install (sais pas pourquoi à vrai dire maintenant que j’y pense)  
type une commande fournie à l’installation comme ‹&nbsp;ls&nbsp;› ou ‹&nbsp;cd&nbsp;› ou … mais j’avoue que cela n’a pas de sens sauf si on charge un environement graphique complet à l’install …  
…  
enfin voilà

chez moi :  
`wmsetbg -b "#00EEEE"`

me donne rien du tout d’un bleu claire  
le terminal me répond:  
wmsetbg: you must specify a image file name or a texture  
Try ‹&nbsp;wmsetbg --help&nbsp;› for more information

```
man wmsetbg 

```

me propose aussi la possibilité de  
` wmsetbg -b "rgb:00/55/88"`

qui ne me renvoie pas plus de résultats

voilà voilà  
a+ merci

---

<div class="post-metadata">

**Author:** ![nicola](https://www.debian-fr.org/user_avatar/www.debian-fr.org/nicola/32/8969_2.png) [@nicola](https://www.debian-fr.org/u/nicola)\
**Post date:** [Avril 18, 2022, 6:40 UTC](https://www.debian-fr.org/t/fond-decran-uni-en-ligne-de-cmd-sans-utiliser-feh-ou-autres/86359/8 "2022-04-18T06:40:28Z")

</div>

Ah flûte, je pensais que ça marchait.  
Sinon, j’ai trouvé ça : [wallpaper - Ubuntu 20.04 change background to solid colour - Ask Ubuntu](https://askubuntu.com/questions/1272120/ubuntu-20-04-change-background-to-solid-colour)
