You are not logged in.
I can't really find much about this, except for maybe KDE who supports this out of the box.
Is there a way to force certain applications to always open at the same position and disregard any smart placement?
I am using XFCE4 with Openbox. The main offenders are Thunderbird and Firefox.
Thanks in advance!
Last edited by mouseman (2016-01-03 18:33:28)
Offline
devilspie2 will help.
archlinux | OpenRC | TOMOYO Linux | Xfce
"In his house at R'lyeh dead Cthulhu waits dreaming."
Offline
Much easier than devilspie would be just to set this via openbox.
Just make an application entry in rc.xml for each of those programs, then specify <position> tags as desired.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
It's great to have options. Thanks guys!
Offline
For some reason application rules are not working in Openbox.
Window info:
_OB_APP_TYPE(UTF8_STRING) = "normal"
_OB_APP_TITLE(UTF8_STRING) = "Terminal"
_OB_APP_GROUP_CLASS(UTF8_STRING) = "Xfce4-terminal"
_OB_APP_GROUP_NAME(UTF8_STRING) = "xfce4-terminal"
_OB_APP_CLASS(UTF8_STRING) = "Xfce4-terminal"
_OB_APP_NAME(UTF8_STRING) = "xfce4-terminal"
_OB_APP_ROLE(UTF8_STRING) = "xfce4-terminal-1450866927--566053488"The part in ~/.config/openbox/rc.xml to force xfce4-terminal to the center of the screen:
<application name="Xfce4-terminal">
<position force="yes">
<x>center</x>
<y>center</y>
</position>
</application>I tried numerical values too. I tried quotes around center.
I also tried obapps, the GUI for creating rules. It doesn't work either.
I do a 'openbox --reconfigure' after a change. I tried different names, types, classes and title. Nothing seems to affect the xfce4-terminal window, it continues to be placed where ever openbox deems there is space on the desktop (ie, smart placement).
I'm reading guides and the Openbox wiki, but I'm not sure what I'm doing wrong?
As always, thanks for the help!
Offline
It works with other windows, but not with xfce-terminal :s
Offline
I tried different names, types, classes and title.
Did you try all lower case in the name so it matches OB_APP_NAME?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
You know, I thought I did
.
Sloppy. I hadn't spotted it.
I now changed the xfce4-terminal line to:
<application name="xfce4-terminal" type="normal"><position force="yes"><x>100</x><y>100</y></position>And it started working.
Thanks!
Offline