This is a walk through to make a simple wallpaper that will function with wbar. The main objective is to have the x11 background color in wbar match the wallpaper background color as wbar does not readily support transparency. Transparency is available if the optional compositing is enabled
The wallpaper can be generated quickly and easily in graphics/gimp using the following procedure.
For the purpose of brevity, I will use "->" to indicate menu selections.
File -> New. In the Width and Height boxes enter in the values for your screen display. For example 1280x1024 or 1440x900. The default resolution of 72dpi is fine.
Click on the background foreground colors icon in the Toolbox to open the color selection dialog. In the HTML notation box enter the same x11 color code that was used in the wbar example. I used 172636 for the default wbar icon that was provided in the OpenBSD_SimpleDE58 configuration. After entering the code select OK. The background icon in the Toolbox should have changed to the selected color.
Next Tools -> Paint Tools -> Bucket Fill. The mouse icon should appear as a bucket. Position the "bucket" over your new image and click. Depending on your system speed, the entire display should fill with the new background color.
Now click File -> Open and browse to the logo you wish to paste into the wallpaper. I provided two logos from the OpenBSD site in OpenBSD_SimpleDE58/wallpaper/
In the logo window Edit -> Copy Visable. Then go back to the initial background window and Edit -> Paste Into. This should center the logo in a new layer. Merge the layers with Layer -> Anchor Layer.
If you are happy with the image, export the layer to either a *png or *jpg image format.
File -> Export. Name the file, eg wallpaper.png, and save it in your hope directory
Now you can close all Gimp windows and open a user terminal in your home directory.
Issue the command
feh --bg-fill wallpaper.png
The last configuration is to edit ~/.config/openbox/autostart Comment out (prefix with #) the line xsetroot and delete the # in front of "(xcompmgr -n) &". The -n flag for xcompmgr just provides simple compositing, anything more than that tends to make my head throb . Lastly remove the # in front of "(sleep 0.5 && ~/.fehbg) &". Your ~/.config/openbox/autostart should now look like this:
# Set Background color # xsetroot -solid "#172636" # Start xcompmgr (xcompmgr -n) & # Load feh Wallpaper (sleep 0.5 && eval `cat $HOME/.fehbg`) & # Start Tint2 (sleep 1 && tint2) & # Start Wbar (sleep 1.5 && wbar --config ~/.config/wbar/wbarrc) & # Start tray-app volume control (sleep 2 && /usr/local/libexec/tray-app/sound) & # Start weather system tray applet (sleep 2 && yad --notification --image=weather-overcast \ --text="Yakima, WA Weather" --no-middle \ --command='urxvt -g 78x16-0+38 \ -icon /usr/local/share/pixmaps/weather.png \ -hold -T "Yakima, WA Weather" \ -e "/home/your-user-directory-here/scripts/weather.sh"') & # Start volume system tray applet (sleep 2.5 && /usr/local/libexec/tray-app/sound) &
Last edited by shep; 12th November 2015 at 07:21 PM.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Simple Desktop for OpenBSD 5.7||shep||Guides||16||30th July 2015 04:15 PM|
|Recommend: A simple GUI for OpenBSD install||cravuhaw2C||OpenBSD Installation and Upgrading||30||17th January 2015 11:39 PM|
|Simple Desktop Environment for OpenBSD 5.6||shep||Guides||2||15th November 2014 06:04 PM|
|Simple Desktop for OpenBSD 5.5||shep||Guides||8||28th July 2014 06:32 PM|
|Simple Desktop Environment for OpenBSD 5.4||shep||Guides||4||27th January 2014 06:47 PM|