<?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=7806&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Xfce Forums / xfce mouse bindings and cycle window]]></title>
		<link>http://forum.xfce.org/viewtopic.php?id=7806</link>
		<description><![CDATA[The most recent posts in xfce mouse bindings and cycle window.]]></description>
		<lastBuildDate>Tue, 19 Feb 2013 16:45:24 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: xfce mouse bindings and cycle window]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=28835#p28835</link>
			<description><![CDATA[<p>bump</p>]]></description>
			<author><![CDATA[dummy@example.com (jehernan)]]></author>
			<pubDate>Tue, 19 Feb 2013 16:45:24 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=28835#p28835</guid>
		</item>
		<item>
			<title><![CDATA[xfce mouse bindings and cycle window]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=28749#p28749</link>
			<description><![CDATA[<p>Hello,</p><p>I am new to xfce, I just switched from window maker after 12 years and I am trying to setup a logitech mouse to use buttons 8 and 9 for window and workspace switching. I am running xfce-4.10 and&#160; slackware 14.0.&#160; <br />the original idea came from <a href="http://hanschen.org/2009/10/13/mouse-shortcuts-with-xbindkeys/" rel="nofollow">http://hanschen.org/2009/10/13/mouse-sh … xbindkeys/</a> </p><p>Following the first example I was only&#160; able to bind the mouse button to alt tab using .xbindkeysrc values of<br /># cycle windows</p><p>&quot;xte &#039;usleep 80000&#039; &#039;keydown Alt_L&#039; &#039;key Tab&#039; &#039;keyup Alt_L&#039;&quot;<br />m:0x0 + b:9<br /> the usleep is required because xfce has an issue with focusing<br /><a href="http://ubuntuforums.org/archive/index.php/t-1919632.html" rel="nofollow">http://ubuntuforums.org/archive/index.p … 19632.html</a></p><p>This only allowed for switching between the first and second windows I wanted to be able to switch to all open windows, and since I am unable to use my mouse to select the program using the window cycle dialog I tried these instructions</p><p><a href="http://www.linuxquestions.org/questions/linux-desktop-74/%5Bxbindkeys%5D-advanced-mouse-binds-4175428297/" rel="nofollow">http://www.linuxquestions.org/questions … 175428297/</a></p><p>The workspace switching works as expected, when button 9 is pushed the scroll button can be use to switch switch workspaces without issue, but the cycling of the windows does not work.&#160; Other guides required a sleep requirement or wait time<br />I can run the command &quot;xdotool keydown alt key Tab keyup alt&quot; from the command line and it works but it does not work for the mouse</p><br /><p>the xbindkeysrc is</p><p> ;;&#160; &#160;This configuration is guile based.<br />;;&#160; &#160;<a href="http://www.gnu.org/software/guile/guile.html" rel="nofollow">http://www.gnu.org/software/guile/guile.html</a><br />;;&#160; &#160;This config script is supposed to live in the homedirectory.<br />;;&#160; &#160;Awesome script created by Zero Angel<br />;;&#160; &#160;This couldnt have been possible without seeing Vee Lee&#039;s configuration file<br />;;&#160; &#160;You&#039;ll need xdotool and xbindkeys with -guile support compiled for this to work (The Ubuntu xbindkeys will have this support by default).<br />;;&#160; &#160;It assigns keybindings to the scroll wheel&#160; on the fly when mouse modifier keys are pressed. Useful for mice with lots of buttons!<br />;;&#160; &#160;v1.0 -- Shoulder button + scrollwheel bindings<br />;;&#160; &#160;v1.1 -- Fixes some &#039;stuckness&#039; problems with the modifer keys (ctrl, alt, shift)<br />;;&#160; &#160;v1.2 -- Can trigger events properly if the modifier button is simply pressed and released by itself. Forcefully clears modifier keys when the shoulder buttons are depressed.<br />;;&#160; &#160;v1.3 -- Edited by Joseph Hernandez to use Left and Right instead of up and down as workspace actions</p><br /><p>(define actionperformed 0)</p><p>(define (first-binding)<br />&quot;First binding&quot;<br />;; Logitech Front Shoulder Button<br />(xbindkey-function &#039;(&quot;b:9&quot;) b9-second-binding)<br />;; Logitech Rear Shoulder Button<br />(xbindkey-function &#039;(&quot;b:8&quot;) b8-second-binding)<br />)</p><p>(define (reset-first-binding)<br />&quot;reset first binding&quot;<br />(ungrab-all-keys)<br />(remove-all-keys)<br />;; Set Action Performed state back to 0<br />(set! actionperformed 0)<br />;; Forcefully release all modifier keys!<br />(run-command &quot;xdotool keyup ctrl keyup alt keyup shift keyup super&amp;&quot;)</p><p>(first-binding)<br />(grab-all-keys))</p><p>(define (b9-second-binding)<br />&quot;Front Shoulder Button Extra Functions&quot;<br />(ungrab-all-keys)<br />(remove-all-keys)</p><p>;; Scroll Up<br />(xbindkey-function &#039;(&quot;b:4&quot;)<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; (lambda ()<br />;; Emulate Ctrl+Alt+Left (Workspace Left)<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; (run-command &quot;xdotool keydown ctrl keydown alt key Left keyup ctrl keyup alt&amp;&quot;)<br />&#160; &#160; &#160; &#160; (set! actionperformed 1)<br />))</p><p>;; Scroll Down<br />(xbindkey-function &#039;(&quot;b:5&quot;)<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; (lambda ()<br />;; Emulate Ctrl+Alt+Right (Workspace Right)<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; (run-command &quot;xdotool keydown ctrl keydown alt&#160; key Right keyup ctrl keyup alt&amp;&quot;)<br />&#160; &#160; &#160; &#160; (set! actionperformed 1)<br />))</p><p>(xbindkey-function &#039;(release &quot;b:9&quot;) (lambda ()<br />;; Perform Action if Button 8 is pressed and released by itself<br />(if (= actionperformed 0) (run-command &quot;zenity --info --title=hi --text=Button9ReleaseEvent &amp;&quot;))<br />(reset-first-binding)))<br />(grab-all-keys))</p><br /><br /><br /><p>(define (b8-second-binding)<br />&quot;Rear Shoulder Button Extra Functions&quot;<br />(ungrab-all-keys)<br />(remove-all-keys)</p><p>;; Scroll Up<br />(xbindkey-function &#039;(&quot;b:4&quot;)<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; (lambda ()<br />;; Emulate Alt+Shift+Tab (previous window)<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; (run-command &quot;xdotool keydown alt keydown shift key Tab keyup alt keyup shift&quot;)<br />&#160; &#160; &#160; &#160; (set! actionperformed 1)<br />))</p><p>;; Scroll Down<br />(xbindkey-function &#039;(&quot;b:5&quot;)<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; (lambda ()<br />;; Emulate Alt+Tab (next window)<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; (run-command &quot;xdotool keydown alt key Tab keyup alt&quot;)<br />&#160; &#160; &#160; &#160; (set! actionperformed 1)<br />))</p><p>(xbindkey-function &#039;(release &quot;b:8&quot;) (lambda ()<br />;; Perform Action if Button 8 is pressed and released by itself<br />&#160; &#160; &#160;(if (= actionperformed 0) (run-command &quot;zenity --info --title=hi --text=Button8ReleaseEvent &amp;&quot;))<br />(reset-first-binding)<br />))<br />(grab-all-keys)<br />)</p><p>;; (debug)<br />(first-binding)</p><p>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br />; End of xbindkeys configuration ;<br />;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</p>]]></description>
			<author><![CDATA[dummy@example.com (jehernan)]]></author>
			<pubDate>Fri, 08 Feb 2013 16:17:51 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=28749#p28749</guid>
		</item>
	</channel>
</rss>
