Linked by Thom Holwerda on Thu 1st Sep 2011 22:31 UTC
OSNews, Generic OSes The last time we did this, it was still 2010, so it's been a while. Since I'm having a hard time finding interesting things to write about today (unless you guys want a story about Apple losing another iPhone prototype at a bar, or about Samsung's god-given quest to launch a tablet/smartphone for each number between 3 and 10), let's do one of those old-fashioned and quaint 'show us your desktop!'-things. I'll start.
Thread beginning with comment 488091
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: .
by vermaden on Fri 2nd Sep 2011 05:51 UTC in reply to "."
Member since:

my own tiling scripts using xdotool

Would You mind sharing them?

Reply Parent Score: 2

RE[2]: .
by Icaria on Fri 2nd Sep 2011 06:27 in reply to "RE: ."
Icaria Member since:

The wm_y/x scripts control placement, the w/h scripts control size. The scripts ending with _cu are cumulative ie. they grok the current window placement/size and add/subtract from it.

Argument syntax is simply wm_*.sh number number, where the first number is the divisor (ie. divide screen axis in to X many pieces) and the second is the multiplier (ie. place/resize window to X many of those pieces). The _cu scripts accept negative values for the multiplier.
Example args: 20 -1 #move window 1/20th of the screen left 10 2 #make window width 2/10ths of screen width

You'll have to modify the scripts a bit, yourself, as the screen resolution, panel width and window border variables aren't dynamic and are currently set for my 1920x1080 screen with 2*20px panels and 19*2*2*2 window borders. I could have used xrandr to at least get the current screen res but I was using a pretty old rig when I wrote the scripts and was afraid of latency. So, yeah, if your windows are overlapping, or slowly wandering up/down inappropriately, it's probably because those variables aren't set correctly.

IIRC, I haven't written the scripts in such a way that they'll work with non-whole numbers. If you try to divide your 1024 screen by something like 7, it probably won't work. Also, for the cumulative scripts, the sleep period between moving/resizing and re-focussing the window is only necessary if you use sloppy focus and might need to be adjusted, depending upon how responsive your window manager is. I find that timing works fine in compiz but not in Xfwm. I also don't indent any of my code so... sorry.

My shortcuts are as follows, in case you're wondering:

Shift+Win+WASD for the cumulative move scripts. Ctrl+Win+WASD for the cumulative resize scripts.
Shift/Ctrl+Alt+QWERTASDFG for the x/w scripts.
Shift/Ctrl+Alt+ZXCVB for the y/h scripts.

Reply Parent Score: 2

RE[3]: .
by vermaden on Fri 2nd Sep 2011 06:38 in reply to "RE[2]: ."
vermaden Member since:

Thanks You very much, I will look at them asap ;)

Reply Parent Score: 2

RE[3]: .
by Mikaku on Fri 2nd Sep 2011 09:01 in reply to "RE[2]: ."
Mikaku Member since:

Thanks for sharing your scripts.

I'm thinking to switch from Gnome to XFCE and I like a lot the look of your desktop.

Reply Parent Score: 1