Gnome users who have tried KDE: convince me!

Florian Diesch diesch at spamfence.net
Tue Dec 29 01:15:20 UTC 2009


Scott <sclewin at sgaming.ca> writes:

> On 09-12-28 06:03 PM, Robert Spanjaard wrote:
>> Like most modern filemanagers, Nautilus can have as many 'screens' as you
>> want. There's no need for a fixed split-screen anymore. Just open an extra
>> window.
> I find it very annoying opening multiple windows then sizing them to 
> make them fit nicely side by side.  I prefer to simply press a button 
> instead to split the screen.

For two windows: Run the following script, then click the two windows
(needs wmctrl which is not installed by default).


--8<---------------cut here---------------start------------->8---
#!/bin/sh

set -- $(xwininfo -root| awk -F '[ :]+' '/ (Width|Height):/ { print $3 }')
width=$1
height=$2

win1=$(xwininfo| awk '/^xwininfo: W/ { print $4 }')
win2=$(xwininfo| awk '/^xwininfo: W/ { print $4 }')

wmctrl -i -r $win1 -e 0,0,0,$((width/2)),$height
wmctrl -i -r $win2 -e 0,$((width/2)),0,$((width/2)),$height
--8<---------------cut here---------------end--------------->8---



   Florian
-- 
<http://www.florian-diesch.de/software/shell-scripts/>




More information about the ubuntu-users mailing list