{"id":12274,"date":"2015-09-12T12:34:35","date_gmt":"2015-09-12T16:34:35","guid":{"rendered":"http:\/\/scruss.com\/blog\/?p=12274"},"modified":"2016-09-29T08:04:31","modified_gmt":"2016-09-29T12:04:31","slug":"raspbian-getting-alt-tab-to-work-properly-in-openboxlxde","status":"publish","type":"post","link":"https:\/\/scruss.com\/blog\/2015\/09\/12\/raspbian-getting-alt-tab-to-work-properly-in-openboxlxde\/","title":{"rendered":"Raspbian: Getting Alt-Tab to work properly in Openbox\/LXDE"},"content":{"rendered":"<p>I&#8217;m still happily using a Raspberry Pi <del>2B<\/del> 3 as a lightweight desktop machine. It&#8217;s not my main computer, but it&#8217;s pleasantly capable. Set up with a couple of paged desktops (or virtual desktops, as we used to call &#8217;em), I can get a bunch of things done with it.<\/p>\n<p>One feature that really irked me, though, was the way that window switching worked. Or, for greater clarity, <strong>didn&#8217;t<\/strong> work. <a href=\"http:\/\/openbox.org\/wiki\/Main_Page\">Openbox<\/a>, the standard window manager in Raspbian, didn&#8217;t allow you to switch to windows on another desktop with Alt+Tab. As I have a smallish screen, I typically have very few windows per desktop, so I want that ability to move from task to task.<\/p>\n<p>This, however, can be fixed. In your <tt>~\/.config\/openbox\/lxde-pi-rc.xml<\/tt> file, change the keybinding sections for Alt+Tab and Alt-Shift+Tab from:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n    &lt;!-- Keybindings for window switching --&gt;\r\n    &lt;keybind key=&quot;A-Tab&quot;&gt;\r\n      &lt;action name=&quot;NextWindow&quot;\/&gt;\r\n    &lt;\/keybind&gt;\r\n    &lt;keybind key=&quot;A-S-Tab&quot;&gt;\r\n      &lt;action name=&quot;PreviousWindow&quot;\/&gt;\r\n    &lt;\/keybind&gt;\r\n<\/pre>\n<p>to<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n    &lt;!-- Keybindings for window switching --&gt;\r\n    &lt;keybind key=&quot;A-Tab&quot;&gt;\r\n      &lt;action name=&quot;NextWindow&quot;&gt;\r\n        &lt;allDesktops&gt;yes&lt;\/allDesktops&gt;\r\n      &lt;\/action&gt;\r\n    &lt;\/keybind&gt;\r\n    &lt;keybind key=&quot;A-S-Tab&quot;&gt;\r\n      &lt;action name=&quot;PreviousWindow&quot;&gt;\r\n        &lt;allDesktops&gt;yes&lt;\/allDesktops&gt;\r\n      &lt;\/action&gt;\r\n    &lt;\/keybind&gt;\r\n<\/pre>\n<p>Log out, log back in, and Alt+Tab across desktops should Just Work. If you&#8217;re not using the default pi user, I suspect you&#8217;ll have to edit the <tt>~\/.config\/openbox\/lxde-<em>user<\/em>-rc.xml<\/tt> file instead.<\/p>\n<p>Credit for this tip: <a href=\"http:\/\/crunchbang.org\/forums\/viewtopic.php?pid=132128#p132128\">user crunchworksyeay on the CrunchBang Linux Forums<\/a>.<\/p>\n<p>This has been a <em>Memo To Myself<\/em>\u00e2\u201e\u00a2 production.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m still happily using a Raspberry Pi 2B 3 as a lightweight desktop machine. It&#8217;s not my main computer, but it&#8217;s pleasantly capable. Set up with a couple of paged desktops (or virtual desktops, as we used to call &#8217;em), I can get a bunch of things done with it. One feature that really irked [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[2929,2928,2927,2510,1746,985,2926],"class_list":["post-12274","post","type-post","status-publish","format-standard","hentry","category-computers-suck","tag-alt","tag-alttab","tag-desktops","tag-raspberrypi","tag-switch","tag-tab","tag-workspaces"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pQNZZ-3bY","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/12274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/comments?post=12274"}],"version-history":[{"count":5,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/12274\/revisions"}],"predecessor-version":[{"id":13358,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/12274\/revisions\/13358"}],"wp:attachment":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media?parent=12274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/categories?post=12274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/tags?post=12274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}