<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.xfce.org/extern.php?action=feed&amp;tid=6841&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Xfce Forums / New Script: Tile, Cascade, Expose' Windows, etc]]></title>
		<link>http://forum.xfce.org/viewtopic.php?id=6841</link>
		<description><![CDATA[The most recent posts in New Script: Tile, Cascade, Expose' Windows, etc.]]></description>
		<lastBuildDate>Sat, 30 Mar 2013 16:32:28 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: New Script: Tile, Cascade, Expose' Windows, etc]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=29230#p29230</link>
			<description><![CDATA[<p>Caib,</p><p>Thanks for posting this handy script!</p><p>I&#039;m using it on my Debian Squeeze system.</p><p>A word to the wise, however: If you are running Debian Squeeze, your default shell is probably dash.&#160; You listed the first line in your script as &quot;#!/bin/bash&quot;.</p><p>If you are running Squeeze, do not try (as I did) running this script under &quot;#!/bin/sh&quot;, as the system will most likely default to the dash shell....which will not run your script correctly.</p><p>Bottom line:&#160; I recommend all Debian Squeeze users to run your script under bash proper (with a top line of &quot;#!/bin/bash&quot;).</p><p>Thanks for the great work!</p>]]></description>
			<author><![CDATA[dummy@example.com (Digger)]]></author>
			<pubDate>Sat, 30 Mar 2013 16:32:28 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=29230#p29230</guid>
		</item>
		<item>
			<title><![CDATA[Re: New Script: Tile, Cascade, Expose' Windows, etc]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=26391#p26391</link>
			<description><![CDATA[<p>Hello!</p><p>I have been looking for similar functions for a while, thank you very much for this great script. I&#039;m using it with openbox and it&#039;s cooool! <img src="http://forum.xfce.org/img/smilies/cool.png" width="15" height="15" alt="cool" /><br />I have a few remarks anyway:</p><p>1) There is one more needed package that you don&#039;t mention, namely bc. </p><p>2) At line 84, where you call bc, you assume that bc&#039;s variable &#039;scale&#039; is set to 0 (an integral result is required). The man page of bc says that this is the default, but not in my distribution (Archlinux). Thus your script didn&#039;t work for me until I understood this. I suggest to replace this line by the following, which will work in every case:</p><div class="codebox"><pre><code>cols=`echo &quot;scale=0 ; sqrt(${#WDOWS[@]})&quot; | bc`</code></pre></div><p>3) I have tiled 6 windows and noticed that the title bar of the bottom windows overlap the top windows. Perhaps this is specific to openbox, but it would be nice (more than nice, it would be fantastic! <img src="http://forum.xfce.org/img/smilies/lol.png" width="15" height="15" alt="lol" />) if your script would work with every EWMH compliant window manager, or at least those provided by the most popular desktop managers (gnome, kde, xfce, lxde), don&#039;t you think?</p><p>4) The grid used when tiling windows does not respect the area in the bottom of my screen occupied by lxpanel : the bottom of the bottom windows is hiden by lxpanel. For seek of generality it would be nice that your script got the ability to guess which areas of the screen must not be covered by the windows, but I can imagine that this can be difficult to determine (a fortiori if you aim at a uniform treatment for every EWMH compliant WM). So what would you think about introducing at the begining of the script four global variables, containing the distance to the four edges of the screen of a rectangular area where the windows must be placed when tiling?</p><p>5) Do you plan to develop other functions? I would be glad to have in openbox the same combinations of move/resize functions of the focused window as those provided by the &#039;grid&#039; plugin of compiz. A video demonstration of these functions is available here (the grid plugin is inspired by winsplit, which unfortunately is a script for windows):<br /><a href="http://www.winsplit-revolution.com/screenshots/videos-demos" rel="nofollow">http://www.winsplit-revolution.com/scre … deos-demos</a></p><p>Thanks again!</p>]]></description>
			<author><![CDATA[dummy@example.com (LuX)]]></author>
			<pubDate>Fri, 25 May 2012 00:17:14 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=26391#p26391</guid>
		</item>
		<item>
			<title><![CDATA[Re: New Script: Tile, Cascade, Expose' Windows, etc]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=26385#p26385</link>
			<description><![CDATA[<p>Very cool!&#160; This touches upon the only &quot;fancy&quot; feature I have wanted in xfwin4 itself, a.select/tile/expose, as it is very useful when you have a lot of windows open and just need to find and organize better.&#160; Well, I would also love to have rule matching placement like openbox does, too, but devilspie already does that one.</p>]]></description>
			<author><![CDATA[dummy@example.com (dyfet)]]></author>
			<pubDate>Thu, 24 May 2012 13:11:17 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=26385#p26385</guid>
		</item>
		<item>
			<title><![CDATA[Re: New Script: Tile, Cascade, Expose' Windows, etc]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=26147#p26147</link>
			<description><![CDATA[<p>Hi,</p><p>Thanks, I found your script very useful.<br />I&#039;m mostly interested in the showdesktop function but I&#039;m having a couple of issues with it.</p><p>1) It&#039;s pretty slow -- much slower than the native &#039;Show Desktop&#039;. Is this do to wmctrl/xdotool/xwininfo/bash? Anything we can do to speed it up?</p><p>2) When un-minimizing (lots of) windows it changes the order in which un-focused windows are above one another somewhat randomly. It does properly keep focus on the last focused window though.</p><p>3) It un-minimizes all windows. I&#039;d prefer it only un-minimize the windows that it minimized on the previous call.</p><p>As a side-note, for anyone on Debian, I had to install xdotool from unstable (the version in testing is too old).</p><div class="codebox"><pre><code>apt-get install -t unstable xdotool</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (rudametw)]]></author>
			<pubDate>Mon, 07 May 2012 12:55:50 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=26147#p26147</guid>
		</item>
		<item>
			<title><![CDATA[Re: New Script: Tile, Cascade, Expose' Windows, etc]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25268#p25268</link>
			<description><![CDATA[<p>Old</p><div class="codebox"><pre><code>xdotool version 2.20100701.2961</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (xfcelav)]]></author>
			<pubDate>Wed, 07 Mar 2012 18:39:17 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25268#p25268</guid>
		</item>
		<item>
			<title><![CDATA[Re: New Script: Tile, Cascade, Expose' Windows, etc]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25267#p25267</link>
			<description><![CDATA[<p>my guess is you have an old or crippled version of xdotool.</p><div class="codebox"><pre><code>brandon@brandon-700GR ~ $ xdotool search --fakeoption
search: unrecognized option &#039;--fakeoption&#039;
Invalid usage
Usage: xdotool search [options] regexp_pattern
--class         check regexp_pattern agains the window class
--classname     check regexp_pattern agains the window classname
--maxdepth N    set search depth to N. Default is infinite.
                -1 also means infinite.
--onlyvisible   matches only windows currently visible
--pid PID       only show windows belonging to specific process
                Not supported by all X11 applications
--screen N      only search a specific screen. Default is all screens
--desktop N     only search a specific desktop number
--limit N       break search after N results
--name          check regexp_pattern agains the window name
--title         DEPRECATED. Same as --name.
--all           Require all conditions match a window. Default is --any
--any           Windows matching any condition will be reported
--sync          Wait until a search result is found.
-h, --help      show this help output

If none of --name, --classname, or --class are specified, the 
defaults are: --name --classname --class</code></pre></div><div class="codebox"><pre class="vscroll"><code>brandon@brandon-700GR ~ $ man xdotool | grep -A44 &#039;search \[&#039;
       search [options] pattern
           Search for windows with titles, names, or classes with a regular expression pattern.
           The output is line-delimited list of X window identifiers. If you are using &quot;COMMAND
           CHAINING&quot;, the search command will only write window ids to stdout if it is the last
           (or only) command in the chain; otherwise, it is silent.

           The result is saved to the window stack for future chained commands. See &quot;WINDOW
           STACK&quot; and &quot;COMMAND CHAINING&quot; for details.

           The default options are &quot;--name --class --classname&quot; (unless you specify one one or
           more of --name --class or --classname).

           The options available are:

           --class
               Match against the window class.

           --classname
               Match against the window classname.

           --maxdepth N
               Set recursion/child search depth. Default is -1, meaning infinite. 0 means no
               depth, only root windows will be searched. If you only want toplevel windows, set
               maxdepth of 1 (or 2, depending on how your window manager does decorations).

           --name
               Match against the window name. This is the same string that is displayed in the
               window titlebar.

           --onlyvisible
               Show only visible windows in the results. This means ones with map state
               IsViewable.

           --pid PID
               Match windows that belong to a specific process id. This may not work for some X
               applications that do not set this metadata on its windows.

           --screen N
               Select windows only on a specific screen. Default is to search all screens. Only
               meaningful if you have multiple displays and are not using Xinerama.

           --desktop N
               Only match windows on a certain desktop. &#039;N&#039; is a number. The default is to
               search all desktops.</code></pre></div><div class="codebox"><pre><code>brandon@brandon-700GR ~ $ xdotool search --desktop 0 xfce4-terminal
Defaulting to search window name, class, and classname
67108868</code></pre></div><div class="codebox"><pre><code>brandon@brandon-700GR ~ $ xdotool --version
xdotool version 2.20110530.1</code></pre></div><div class="codebox"><pre><code>brandon@brandon-700GR ~ $ dpkg -l xdotool
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name               Version            Description
+++-==================-==================-====================================================
ii  xdotool            1:2.20110530.1-3ub simulate X11 keyboard/mouse input
brandon@brandon-700GR ~ $ </code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (caibbor)]]></author>
			<pubDate>Wed, 07 Mar 2012 18:29:20 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25267#p25267</guid>
		</item>
		<item>
			<title><![CDATA[Re: New Script: Tile, Cascade, Expose' Windows, etc]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25187#p25187</link>
			<description><![CDATA[<p>div by zero it&#039;s ok, but:</p><div class="codebox"><pre><code>/usr/local/bin/winfuncs.sh showdesktop
search: unrecognized option &#039;--desktop&#039;
Invalid usage
Usage: xdotool search [options] regexp_pattern
--class         check regexp_pattern agains the window class
--classname     check regexp_pattern agains the window classname
--maxdepth N    set search depth to N. Default is infinite.
                -1 also means infinite.
--onlyvisible   matches only windows currently visible
--pid PID       only show windows belonging to specific process
                Not supported by all X11 applications
--screen N      only search a specific screen. Default is all screens
--name          check regexp_pattern agains the window name
--title         DEPRECATED. Same as --name.
--all           Require all conditions match a window. Default is --any
--any           Windows matching any condition will be reported
-h, --help      show this help output

If none of --name, --classname, or --class are specified, the 
defaults are: --name --classname --class</code></pre></div><p>man xdotool</p><div class="codebox"><pre class="vscroll"><code>DESKTOP AND WINDOW COMMANDS
       These commands follow the EWMH standard. See the section &quot;EXTENDED WINDOW MANAGER HINTS&quot; for more information.

       windowactivate [options] [window=%1]
           Activate the window. This command is different from windowfocus: if the window is on another desktop, we will
           switch to that desktop. It also uses a different method for bringing the window up. I recommend trying this
           command before using windowfocus, as it will work on more window managers.

           If no window is given, %1 is the default. See &quot;WINDOW STACK&quot; and &quot;COMMAND CHAINING&quot; for more details.

           --sync
               After sending the window activation, wait until the window is actually activated. This is useful for
               scripts that depend on actions being completed before moving on.

       getactivewindow
           Output the current active window. This command is often more reliable than getwindowfocus. The result is saved
           to the window stack. See &quot;WINDOW STACK&quot; for more details.

       set_num_desktops number
           Changes the number of desktops or workspaces.

       get_num_desktops
           Output the current number of desktops.

       set_desktop desktop_number
           Change the current view to the specified desktop.

       get_desktop
           Output the current desktop in view.

       set_desktop_for_window [window=%1] desktop_number
           Move a window to a different desktop. If no window is given, %1 is the default. See &quot;WINDOW STACK&quot; and &quot;COMMAND
           CHAINING&quot; for more details.

       get_desktop_for_window [window=%1]
           Output the desktop currently containing the given window. Move a window to a different desktop. If no window is
           given, %1 is the default. See WINDOW STACK and &quot;COMMAND CHAINING&quot; for more details.</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (xfcelav)]]></author>
			<pubDate>Thu, 01 Mar 2012 18:46:12 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25187#p25187</guid>
		</item>
		<item>
			<title><![CDATA[Re: New Script: Tile, Cascade, Expose' Windows, etc]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25186#p25186</link>
			<description><![CDATA[<p>div by zero fixed, though now that I think about it, you&#039;d have to have a terminal open to see the error message, and that would mean at least one window is open. so heh. fixed anyway.</p>]]></description>
			<author><![CDATA[dummy@example.com (caibbor)]]></author>
			<pubDate>Thu, 01 Mar 2012 15:03:54 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25186#p25186</guid>
		</item>
		<item>
			<title><![CDATA[Re: New Script: Tile, Cascade, Expose' Windows, etc]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25181#p25181</link>
			<description><![CDATA[<p>well xwininfo is required for the select option, anyhow. other functions might not work at all. do a package search to find out which one has it.</p><p>your division by zero error probably happens when you try to tile windows when there are none (which I&#039;ll fix soon)</p>]]></description>
			<author><![CDATA[dummy@example.com (caibbor)]]></author>
			<pubDate>Wed, 29 Feb 2012 21:38:40 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25181#p25181</guid>
		</item>
		<item>
			<title><![CDATA[Re: New Script: Tile, Cascade, Expose' Windows, etc]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25178#p25178</link>
			<description><![CDATA[<p>I have installed xdotool and wmctrl, but xwininfo is not in the repositories of Debian Testing. The script I have it in /usr/local/bin as /usr/share/bin does not exist.</p><p>BTW: When I run the script in terminal, it show me this:</p><div class="codebox"><pre><code>/usr/local/bin/winfuncs.sh tile
expr: división por cero
expr: división por cero</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (xfcelav)]]></author>
			<pubDate>Wed, 29 Feb 2012 19:49:51 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25178#p25178</guid>
		</item>
		<item>
			<title><![CDATA[Re: New Script: Tile, Cascade, Expose' Windows, etc]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25177#p25177</link>
			<description><![CDATA[<p>edit: I noticed you typed the path as <strong>winfun.sh</strong>. the name I gave it is <strong>winfuncs.sh</strong>. try that.</p><p>open a terminal and run this:</p><div class="codebox"><pre><code>/usr/share/bin/winfuncs.sh tile</code></pre></div><p>if it doesn&#039;t work, these are the likely problems:</p><p>* the script is not at that path, or<br />* the script is not executable, or<br />* you do not have xdotool, xwininfo, or wmctrl installed</p>]]></description>
			<author><![CDATA[dummy@example.com (caibbor)]]></author>
			<pubDate>Wed, 29 Feb 2012 18:07:46 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25177#p25177</guid>
		</item>
		<item>
			<title><![CDATA[Re: New Script: Tile, Cascade, Expose' Windows, etc]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25162#p25162</link>
			<description><![CDATA[<p>Nop. I add tile and not work!!</p>]]></description>
			<author><![CDATA[dummy@example.com (xfcelav)]]></author>
			<pubDate>Mon, 27 Feb 2012 16:20:49 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25162#p25162</guid>
		</item>
		<item>
			<title><![CDATA[Re: New Script: Tile, Cascade, Expose' Windows, etc]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25160#p25160</link>
			<description><![CDATA[<p>Perhaps, have you forgot to add &#039;tile&#039; (or select and so) after /usr/share/bin/winfun.sh ?</p>]]></description>
			<author><![CDATA[dummy@example.com (wkr)]]></author>
			<pubDate>Mon, 27 Feb 2012 14:56:55 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25160#p25160</guid>
		</item>
		<item>
			<title><![CDATA[Re: New Script: Tile, Cascade, Expose' Windows, etc]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25157#p25157</link>
			<description><![CDATA[<p>Excuse my ignorance. Maybe I&#039;m doing something wrong. I went to menu » preferences » keyboard » application shortcuts and create a new application with the path /usr/share/bin/winfun.sh and I assigned keys Super L + e. Does not work either. Did I do something wrong?</p>]]></description>
			<author><![CDATA[dummy@example.com (xfcelav)]]></author>
			<pubDate>Mon, 27 Feb 2012 12:42:55 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25157#p25157</guid>
		</item>
		<item>
			<title><![CDATA[Re: New Script: Tile, Cascade, Expose' Windows, etc]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25126#p25126</link>
			<description><![CDATA[<p>update top post.</p><p>ADDED: Cascade windows feature. (22 pixels is assumed titlebar height. will make it determine real height later)<br />ADDED: Show Desktop. (minimizes all on current workspace. if they already are, it unminimizes instead)</p><p>FIXED: doesn&#039;t count minimized windows when tiling<br />FIXED: moves windows back to their proper positions after &#039;select&#039; feature<br />FIXED: lots of other lil things</p><p>new dependency: xwininfo</p>]]></description>
			<author><![CDATA[dummy@example.com (caibbor)]]></author>
			<pubDate>Sun, 26 Feb 2012 05:31:51 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25126#p25126</guid>
		</item>
	</channel>
</rss>
