DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th April 2015
cats cats is offline
New User
 
Join Date: Feb 2014
Posts: 8
Default Replacement for Hsetroot?

I've just taken the plunge and moved to OpenBSD after more than 3 years on NetBSD.

I used to use hsetroot because you can set a plain background color and then centre an smaller image on top of it.
I'm using feh to set the background image with --bg-center but it always makes the background black.

Does anyone know of a program in OpenBSD ports that supports this functionality?
__________________
GY!BE
Reply With Quote
  #2   (View Single Post)  
Old 24th June 2020
cats cats is offline
New User
 
Join Date: Feb 2014
Posts: 8
Default

I've discovered that feh has an --image-bg flag that sets the background color around an image.
__________________
GY!BE
Reply With Quote
  #3   (View Single Post)  
Old 24th June 2020
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 314
Default

Well, it may have taken you five years, but at least you got some closure.
Reply With Quote
  #4   (View Single Post)  
Old 23rd August 2022
cats cats is offline
New User
 
Join Date: Feb 2014
Posts: 8
Default

hsetroot is back in OpenBSD ports!

feh is a great image viewer but the background setting options are limited by comparison.
__________________
GY!BE
Reply With Quote
  #5   (View Single Post)  
Old 24th August 2022
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

With feh there is also feh --bg-scale <path-to-image> which is useful for me, at least, I'll have images and this lets feh scale them to screen size.
Reply With Quote
  #6   (View Single Post)  
Old 24th August 2022
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Because I'm not a frequent buyer of monitors, I tend to use tools (GIMP, Imagemagick) to produce wallpapers that minimize the amount of processing when starting X windows. *.png do not have to be decompressed.

The ~/.fehbg is essentially a shell script that runs on X start:
Code:
[jsh@XXXXXX ~]$ cat .fehbg
#!/bin/sh
feh --no-fehbg --bg-fill '/home/jsh/.wallpaper.png'

Does hsetroot process the image on every X start?

Last edited by shep; 24th August 2022 at 07:17 PM.
Reply With Quote
  #7   (View Single Post)  
Old 25th August 2022
cats cats is offline
New User
 
Join Date: Feb 2014
Posts: 8
Default

Quote:
Originally Posted by scottro View Post
With feh there is also feh --bg-scale <path-to-image> which is useful for me, at least, I'll have images and this lets feh scale them to screen size.
The best feature of hsetroot is that it allows multiple options to be composed. For example:
Code:
 hsetroot -solid '#5a76a0' -full glitch_landscape.jpg -center cat.jpg
This will first make the background blue, then scale glitch_landscape over that (doing the same as --bg-scale) and then finally render cat.jpg in the center.

It's incredibly powerful and makes it easy to add and remove on the fly. I also have a laptop that I sometimes use with a monitor and it makes sure that wallpaper always looks the same regardless of aspect ratio.
__________________
GY!BE
Reply With Quote
  #8   (View Single Post)  
Old 25th August 2022
cats cats is offline
New User
 
Join Date: Feb 2014
Posts: 8
Default

Quote:
Originally Posted by shep View Post
Does hsetroot process the image on every X start?
I use JWM and put hsetroot as the command to exec to set the virtual desktop. That way it gets set on startup and if I want to change the background I just change desktop to the current one to refresh.

JWM also allows different backgrounds per virtual desktop, but I haven't found a reason to use that yet.
__________________
GY!BE
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ninja, a replacement for make, in Chrome's build system J65nko News 7 14th February 2011 04:14 AM
Remote Replacement of OS mwatkins FreeBSD Installation and Upgrading 4 5th April 2009 04:01 AM
Trisentry replacement? neurosis FreeBSD Security 0 10th December 2008 04:09 PM
MB + CPU replacement mururoa FreeBSD General 10 21st November 2008 08:21 PM
Replacement for Mail? Bruco FreeBSD Ports and Packages 9 14th June 2008 05:15 PM


All times are GMT. The time now is 08:53 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick