You are not logged in.

#21 2015-12-20 19:50:51

JohnTheCuriousEye
Member
Registered: 2015-12-13
Posts: 12

Re: Set backgrounds for each workspace and/or monitor in Openbox

damo wrote:

By "screen" do you mean "desktop/workspace" or "monitor"?

Nitrogen on BL can set the background for screen/monitor, but not workspace. Ubuntu doesn't use Openbox as a window manager BTW.

Ref memleak - if you regularly reboot, or manually recover the memory, it isn't much of a problem. If you leave your machine on for days it would be.

I have two monitors on which I would find it very useful but since it has memory leak I will avoid using this script. Yes but you can install Nitrogen and use it anyway.

Offline

#22 2015-12-20 20:10:07

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: Set backgrounds for each workspace and/or monitor in Openbox

JohnTheCuriousEye wrote:

....
I have two monitors on which I would find it very useful but since it has memory leak I will avoid using this script. Yes but you can install Nitrogen and use it anyway.

If you just want to set backgrounds for different monitors then what is the problem? Just use Nitrogen.

If you want to have a different background for different workspaces in Openbox then use a script like this one (or search Crunchbang forums for conky or keybind solutions)

The Openbox wiki has links to different methods.
( One of the methods is to my python script on the Crunchbang forums, but the links are broken. See A way to have per desktop or random wallpapers in Openbox. This works by polling the current desktop, so is a bit resource-hungry)


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#23 2017-11-16 15:57:05

tamer
New Member
Registered: 2017-11-16
Posts: 1

Re: Set backgrounds for each workspace and/or monitor in Openbox

i'm working with my laptop on tv over hdmi in extend screen mode LAPTOP (LVDS 1366x768 and TV 1920x1080). Everytime i start the laptop the wallpaper gets stretched to both screens.

my nitrogen/bg-saved.cfg looks like this:

[:0.0]
file=/home/dt/Pictures/wallpapers/ennedi.png
mode=5
bgcolor=#2e3436

[xin_0]
file=/home/dt/Pictures/wallpapers/ennedi.png
mode=0
bgcolor=#000000

[xin_1]
file=/home/dt/Pictures/wallpapers/ennedi.png
mode=0
bgcolor=#000000

When i start nitrogen --save over commandline some Gtk-CRITICAL and GLib GObject errors

am i missing sth?

My next try was  to change the order of calling the screenlayout in autostart before
nitrogen --restore. But things get worse - no wallpaper and i even cant set any wallpaper anymore ^^ After choosing wallpaper nitrogen disappears ...

UPDATE:Just restarted and i dont know why but it works now ..

## set Displays
/home/dt/.screenlayout/tv-hdmi.sh

## Set a wallpaper
nitrogen --restore 

Last edited by tamer (2017-11-16 16:26:48)

Offline

#24 2017-11-16 17:05:05

tknomanzr
BL Die Hard
From: Around the Bend
Registered: 2015-09-29
Posts: 1,057

Re: Set backgrounds for each workspace and/or monitor in Openbox

Nitrogen has had issues with multiple desktops in the past. I typically use feh to set wallpapers on my three monitor desktop.

Offline

#25 2017-11-17 01:46:14

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,560
Website

Re: Set backgrounds for each workspace and/or monitor in Openbox

Also, the [:0.0] syntax is no longer used by nitrogen. I should delete that top section from bg-saved.cfg anyway.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#26 2018-09-05 10:16:09

Ka6aH4iK
New Member
Registered: 2018-09-05
Posts: 1

Re: Set backgrounds for each workspace and/or monitor in Openbox

I have problem with starting script.

./wallpapersd: line 99: syntax error near unexpected token `killall'
./wallpapersd: line 99: `                              killall wallpapersd'

Offline

#27 2018-09-05 15:58:17

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: Set backgrounds for each workspace and/or monitor in Openbox

Line #99 should be...

    NUM_DESKTOPS=$(xprop -root _NET_NUMBER_OF_DESKTOPS)

Did you copy and paste the code properly?


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#28 2018-11-02 07:03:53

cherkie
Member
From: Poland
Registered: 2018-08-09
Posts: 107

Re: Set backgrounds for each workspace and/or monitor in Openbox

damo wrote:

If you just want to set backgrounds for different monitors then what is the problem? Just use Nitrogen.


How can one achieve this?

This is my bg-saved.cfg

[xin_-1]
file=/home/albert/Pictures/wallpapers/think.jpg
mode=1
bgcolor=#001e44

[:0.0]
file=/home/albert/Pictures/wallpapers/think.jpg
mode=5
bgcolor=#000000

and this is my nitrogen.cfg

[geometry]
posx=3186
posy=173
sizex=450
sizey=500

[nitrogen]
view=list
recurse=true
sort=alpha
icon_caps=false
dirs=/home/albert/Pictures/wallpapers;

This is my xrandr

xrandr --output DVI-D-0 --primary --mode 1920x1080 --pos 1920x0 --rotate normal  --output DVI-I-0 --mode 1360x768 --pos 0x0 --scale-from 1912x1080 --rotate normal & 

I am lost my current wallpaper stretches over two desktops and it is a quote and it looks... shit. lol


I don't have patience or skill to dig deep enough every time system breaks itself or when I break something because of lack of patience and skill.
nore, 23 Feb 2019

Offline

#29 2018-11-02 12:00:53

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: Set backgrounds for each workspace and/or monitor in Openbox

Your bg-saved.cfg is using an old format. Which version of BL are you using?

FWIW here is my bg-saved.cfg for comparison. Note that each screen uses "xin_".

[xin_1]
file=/home/damo/images/wallpapers/bamboo-bird2.png
mode=5
bgcolor=#001e44

[xin_0]
file=/home/damo/images/wallpapers/bunsen/default/BL-beam-plain.png
mode=5
bgcolor=#001e44

When setting backgrounds, nitrogen should give you options to set the image as Full Screen, Screen 1, Screen 2 etc.
nitrogen.th.png

If you want the same image on 2 monitors then set it as both Screen 1 and Screen 2

PS: For Help with Nitrogen you should be posting in Help & Support, so this thread isn't derailed wink


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

Board footer

Powered by FluxBB