{"id":1283,"date":"2011-12-18T22:38:10","date_gmt":"2011-12-18T20:38:10","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=1283"},"modified":"2011-12-18T22:38:10","modified_gmt":"2011-12-18T20:38:10","slug":"handling-right-clicks-on-a-macbook-running-linux-the-2011-awesome-edition","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2011\/12\/18\/handling-right-clicks-on-a-macbook-running-linux-the-2011-awesome-edition\/","title":{"rendered":"Handling right clicks on a macbook running Linux &#8211; The 2011 Awesome Edition"},"content":{"rendered":"<p>2 years ago I had written a post about <a href=\"\/kargig\/blog\/2009\/06\/11\/handling-right-clicks-on-a-macbook-running-linux\/\">handling right clicks on a macbook running linux<\/a>. Along with changing my window manager of choice, I think I&#8217;ve found a better\/more elegant solution to that problem.<\/p>\n<p>On my computer&#8217;s workspaces one will normally find one or two browser windows open, some instant messaging applications (skype,pidgin), an mp3 player (audacious2) and terminals. Lots of them. I need them to ssh to the servers I monitor\/administer and for coding (with vim of course!). I even use one for my email client (mutt). So I need my terminals to be as efficient as possible. After many trials over the years I&#8217;ve decided on using <a href=\"http:\/\/software.schmorp.de\/pkg\/rxvt-unicode.html\">urxvt<\/a> as my terminal of choice.<\/p>\n<p>About a month ago I gave <a href=\"http:\/\/awesome.naquadah.org\/\">awesome<\/a> a try and since then it&#8217;s been my window manager of choice instead of <a href=\"http:\/\/fluxbox.org\/\">fluxbox<\/a>. The reason behind this is mostly fluxbox&#8217;s inability to tile terminal (call me urxvt) windows efficiently while changing resolutions. I mostly use my laptop with an external 23&#8221; monitor but I wanted to be able to tile my terminals independently of using only my laptop&#8217;s screen or both laptop&#8217;s and the external one. In fluxbox you can make a window appear on specific area of the screen, so I could open 3-4 terminals on a specific workspace\/monitor. Resizing though one of them to fit some monitoring program more efficiently didn&#8217;t resize the others &#8216;automagically&#8217; as well. So, I had to manually resize all open windows of that workspace. Yes, this is horrible from a usability point of view, luckily I didn&#8217;t have to do it that frequently. So, I gave awesome a try for its tiling features. I really miss though <a href=\"http:\/\/fluxbox-wiki.org\/index.php?title=Editing_the_apps_file#Grouping_apps_via_the_apps_file\">fluxbox&#8217;s tabbing features<\/a> that I constantly used along with it&#8217;s amazing keybindings flexibility (Rant: isn&#8217;t it stupid that you have to write your keybindings in lua for awesome and in haskell for xmonad ?) but the tiling capabilities of awesome are currently more important to me.<\/p>\n<p>So while my previous solution for right clicking without a mouse worked pretty well for fluxbox, in my new awesome world I&#8217;ve replaced it with <a href=\"http:\/\/hoopajoo.net\/projects\/xautomation.html\">xautomation<\/a> tools. First of all, one needs to install xautomation tools <\/p>\n<p><code>aptitude install xautomation<\/code><\/p>\n<p>Then find <em>clientbuttons<\/em> configuration part in the default <em>~\/.config\/awesome\/rc.lua<\/em> and add this line to it:<\/p>\n<p><code>awful.button({ modkey }, 2, function () awful.util.spawn(\"xte 'mouseclick 3'\") end)<\/code><\/p>\n<p>restart awesome and try <em>modkey + 3 finger tap on your touchpad<\/em>. You should be seeing a right click &#8220;menu&#8221;.<br \/>\nIf you don&#8217;t know what 3 finger tap is or how to configure it, read the 2009 article.<\/p>\n<p>That&#8217;s it, no more xbindkeys + xvkbd for awesome.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2 years ago I had written a post about handling right clicks on a macbook running linux. Along with changing my window manager of choice, I think I&#8217;ve found a better\/more elegant solution to that problem. On my computer&#8217;s workspaces one will normally find one or two browser windows open, some instant messaging applications (skype,pidgin), [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[3],"tags":[422,33,107,192,595,424,27,191,123,423,418,420,419,421],"class_list":["post-1283","post","type-post","status-publish","format-standard","hentry","category-linux","tag-awesome","tag-debian","tag-fluxbox","tag-keyboard","tag-linux","tag-lua","tag-macbook","tag-mouse","tag-right-click","tag-tiling","tag-xautomation","tag-xbindkeys","tag-xte","tag-xvkbd"],"aioseo_notices":[],"views":7620,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=1283"}],"version-history":[{"count":6,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1283\/revisions"}],"predecessor-version":[{"id":1289,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1283\/revisions\/1289"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=1283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=1283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=1283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}