Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-08-25 12:54:20

Registered: 2012-09-25
Posts: 47

setting wallpaper with terminal

The official line is:"  By default backgrounds are handled by Nitrogen, accessed through the menu under Settings –> Choose Wallpaper. Bundled wallpapers are stored in ~/images/wallpapers/shared/backgrounds although you can add your own to ~/images/wallpapers/shared and they will automatically show up in the Nitrogen selection menu."

But can I set my wallpaper with the terminal instead of the Nitrogen-gui? If so, how?


Be excellent to each other!

#2 2014-08-25 13:00:13

From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: setting wallpaper with terminal

sudo aptitude install hsetroot


hsetroot -fill ~/images/wallpaper/image

To set it...
You can replace the "nitrogen" line in the openbox autostart file with the hsetroot line above wink


#3 2014-08-25 13:10:30

Registered: 2012-09-25
Posts: 47

Re: setting wallpaper with terminal

Yep, that worked. Thank you !#Cat.


#4 2014-08-25 13:14:43

From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: setting wallpaper with terminal

You're welcome Member big_smile
Please edit the title of your first post & put "[SOLVED]" at the start to help others looking for this answer...


#5 2014-08-25 13:34:44

#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: setting wallpaper with terminal

You can also use feh (which is what I use) From the manpages

     feh can also be used as a background setter.  Unless you pass the --no-fehbg option, it will store the command
     line necessary to set the background in ~/.fehbg, so to have your background restored every time you start X,
     you can add "eval $(cat ~/.fehbg)" to your X startup script (like ~/.xinitrc).

     For the --bg-center and --bg-max options, you can use the --geometry option to specify an offset from one side
     of the screen instead of centering the image.  Positive values will offset from the left/top side, negative
     values from the bottom/right.  +0 and -0 are both valid and distinct values.

     Note that all options except --bg-tile support Xinerama.  For instance, if you have multiple screens connected
     and use e.g.  --bg-center, feh will center or appropriately offset the image on each screen.  You may even
     specify more than one file, in that case, the first file is set on screen 0, the second on screen 1, and so on.

     Use --no-xinerama to treat the whole X display as one screen when setting wallpapers.

             Center the file on the background.  If it is too small, it will be surrounded by a black border

             Like --bg-scale, but preserves aspect ratio by zooming the image until it fits.  Either a horizontal or
             a vertical part of the image will be cut off

             Like --bg-fill, but scale the image to the maximum size that fits the screen with black borders on one

             Fit the file into the background without repeating it, cutting off stuff or using borders.  But the
             aspect ratio is not preserved either

             Tile (repeat) the image in case it is too small for the screen

             Do not write a ~/.fehbg

BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile


#6 2014-08-25 13:38:58

#! Red Menace
Registered: 2012-06-15
Posts: 1,643

Re: setting wallpaper with terminal

or just use nitrogen;

nitrogen --set-centered /path/to/file.png

Last edited by brontosaurusrex (2014-08-25 13:39:12)


Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo