You are not logged in.

#1 2013-07-18 02:51:10

Leios
Member
From: Okinawa, JP
Registered: 2012-03-16
Posts: 73
Website

alt-tab placement in Openbox

For the past few hours, I have been updating my openbox desktop to suit my aesthetic preferences. I would like to find a way to change the placement of the alt-tab menu from the center of my screen to the upper left. I would like to do the same for all notifications that appear in the center of my screen. In the case of the "DesktopNext" and "DesktopPrevious" notifications, I would like to both move them from the center of my screen and remove the 4 boxes that appear to their left.

So far, I've done a search through the forums, perused my temerc file and rc.xml files and have not found quite what I was looking for.

Thanks in advanced for any help!

Offline

#2 2013-07-18 08:33:49

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: alt-tab placement in Openbox

I'm interested too


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#3 2013-07-18 13:00:39

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: alt-tab placement in Openbox

No problem. Use abs to get the PKGBUILD files and use makepkg to download the Openbox source code.

In the file: openbox/focus_cycle_popup.c

Go to the function "popup_render(...)", around line 550 where it says "find the position for the popup", and change it from:

x = screen_area->x + (screen_area->width - (w + ob_rr_theme->obwidth * 2)) / 2;
y = screen_area->y + (screen_area->height - (h + ob_rr_theme->obwidth * 2)) / 2;

to:

x = screen_area->x + 10;
y = screen_area->y + 10;

Then use makepkg to build Openbox from the existing source code and voilà! It works! smile

...maybe. I haven't tested it. sad

Offline

#4 2013-07-18 15:29:35

Leios
Member
From: Okinawa, JP
Registered: 2012-03-16
Posts: 73
Website

Re: alt-tab placement in Openbox

That definitely worked for the alt-tab menu. Thanks!

Other applications, like DesktopNext and DesktopPrevious, are still showing up in the center of my screen, though. I'm going to peruse the source code some more when I get home today to see if I can figure that out.

I'll leave the thread open for now since there are still some lingering issues.

Offline

#5 2013-07-18 16:13:05

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: alt-tab placement in Openbox

As you find them, it should be super easy to extract them into a simple patch and create a package for the AUR called "openbox-upperleft" or whatever. tongue

Offline

#6 2013-07-19 18:32:47

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

Re: alt-tab placement in Openbox

drcouzelis wrote:

No problem. Use abs to get the PKGBUILD files and use makepkg to download the Openbox source code.

In the file: openbox/focus_cycle_popup.c

Go to the function ...

In a similar vein, where and what should I change to have Openbox place new windows in the center of the screen instead of using the "Smart" method?

Last edited by KairiTech (2013-07-19 18:34:19)

Offline

Board footer

Powered by FluxBB