LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2015, 06:09 PM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,153

Rep: Reputation: 85
Two monitors in Openbox


I run Openbox/LXDE on Debian Jessie. I just got a smaller, additional monitor and I am having problems.

My primary monitor is on the right, secondary on the left. It really has to be on the left.

Most of the stuff wants to go to the left: application windows, Desktop icons, taskbar, even my choice of background color. I figured out how to keep the taskbar on the primary screen (on the right), but that's about it.

* The desktop icons (managed by pcmanfm, I guess - or not?) refuse to be dragged to the right/primary screen.

* The Alt-Tab pager seems to be stuck on the left/secondary screen.

* Many applications insist on launching on the left/secondary screen even though my focus is on the right/primary one. At least Tilda is multiple screen aware and has a specific configuration entry for that.

* My choice of background (plain color) only applies on the left/secondary screen. The right/primary uses a background image.

* I use osdsh to display things on the screen. Usually sound volume, but there are other things. Well, that has disappeared completely since I got the second monitor.

Is there anything I can do to fix any of these problems?
 
Old 04-25-2015, 06:53 PM   #2
skrotnisse
LQ Newbie
 
Registered: Dec 2014
Location: Sweden
Distribution: Linux Mint, Slackware, Debian
Posts: 8

Rep: Reputation: Disabled
Have you tried xrandr or lxrandr?
I use lxrandr for fluxbox. I'm not sure whether lxrandr works on openbox.
 
Old 04-25-2015, 06:57 PM   #3
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,153

Original Poster
Rep: Reputation: 85
Yes, I use both xrandr and lxrandr, depending on the task. Won't solve my current problems, though.
 
Old 04-25-2015, 07:57 PM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,811

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
https://bbs.archlinux.org/viewtopic.php?id=57593
 
1 members found this post helpful.
Old 04-25-2015, 10:34 PM   #5
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,153

Original Poster
Rep: Reputation: 85
Thanks. That solves part of the issues.
 
Old 04-25-2015, 11:31 PM   #6
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,811

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
You could run them as separate X screens, but that might not be what you want either.
 
Old 04-25-2015, 11:41 PM   #7
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,153

Original Poster
Rep: Reputation: 85
Run them as separ... what? Please tell me more.
 
Old 04-25-2015, 11:53 PM   #8
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,811

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Well, the specifics are a bit fuzzy, as I haven't done it for a while, but 'xinerama = no' or such in the xorg.conf means that rather than one big virtual "screen" shared accross your monitors, they are entirely separate displays, and apps must be started on the "non-default" one by specifying the display - 'DISPLAY=0.1; startmyapp' or such.
And you can't drag windows across etc. (although your mouse does).

I used it with a TV as the second screen so was mostly for playing video while I could change workspaces etc. on the other screen without interrupting it.
 
1 members found this post helpful.
Old 06-05-2015, 05:50 AM   #9
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,153

Original Poster
Rep: Reputation: 85
Some applications insist on launching on the first monitor, contrary to the configuration option that establishes that my "Primary Monitor" is a fixed monitor, and that monitor is monitor #2.

So I read up on the documentation and came up with this:

Code:
<keybind key="W-End">
  <action name="MoveResizeTo">
    <monitor>2</monitor>
  </action>
</keybind>
It works, but I wish I could have this done automatically. One of the stubborn applications is Claws Mail. But this does not work:

Code:
<keybind key="C-W-l">
  <action name="Execute">
    <command>/usr/bin/claws-mail</command>
  </action>
  <action name="MoveResizeTo">
  	<monitor>2</monitor>
  </action>
</keybind>
By "does not work" I mean claws-mail still pops up on the first monitor and stays there until I press W-End to bring it to the second monitor. I wish it would pop up on the second monitor automatically.

Is this not possible or am I doing something wrong?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "Permission denied" when Openbox tries to execute autostart.sh in ~/.config/openbox alarazr Linux - Software 4 10-04-2012 04:50 PM
Dual monitors: Dead space, stretched cursor, using Openbox metaf5 Linux - General 4 08-05-2012 05:41 AM
Openbox autostart.sh and setting alias on openbox start Jelloir Linux - Desktop 1 07-03-2011 04:56 AM
Openbox with two monitors saon Linux - Software 0 01-22-2005 03:13 PM
TV's, CRT Monitors, LCD Monitors... refresh rates and other questions MasterC General 13 05-12-2003 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration