{"id":48964,"date":"2025-05-26T07:52:53","date_gmt":"2025-05-26T07:52:53","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=48964"},"modified":"2025-05-26T07:52:53","modified_gmt":"2025-05-26T07:52:53","slug":"touchegg-touch-gesture-begin-end","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2025\/05\/touchegg-touch-gesture-begin-end\/","title":{"rendered":"Touchegg 2.0.18 Adds Actions Support on Gesture Begin &#038; End"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/touchegg-icon-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-35870\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/touchegg-icon-1-250x250.png\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/touchegg-icon-1-250x250.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/touchegg-icon-1-300x300.png 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/touchegg-icon-1-600x600.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/touchegg-icon-1-768x768.png 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/touchegg-icon-1.png 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>Touch\u00e9gg, the popular Linux multi-touch gesture recognizer, released new 2.0.18 version on Sunday!<\/p>\n<p>The new release of this free open-source application, added ability to execute actions both when the touch gesture starts and ends.<\/p>\n<p><!--more--><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/07\/touchpadtapactions.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1035\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/07\/touchpadtapactions.jpg\" alt=\"touchpad tapping actions\" width=\"396\" height=\"254\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/07\/touchpadtapactions.jpg 396w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/07\/touchpadtapactions-300x192.jpg 300w\" sizes=\"auto, (max-width: 396px) 100vw, 396px\" \/><\/a><\/p>\n<p>Touch\u00e9gg is a Linux app that supports all hardware supported by <code>libinput<\/code>, though it only works on classic X11\/Xorg session (no Wayland support). And, it&#8217;s default in Linux Mint since 21.2.<\/p>\n<p>It runs silently in background. When you perform touchpad or touchscreen gestures, e.g., swipe or pinch, it transforms them into pre-defined actions and executes correspondingly.<\/p>\n<p>The app supports <b>swipe<\/b>, <b>pinch<\/b>, and <b>tap<\/b> gestures with 2, 3, 4, 5 fingers (some excluded as they have system built-in actions) in both global or per-app basis. And, it can transform them to window resize, tile window, workspace switch, mouse click, keyboard shortcut, and execute command actions.<\/p>\n<div id=\"attachment_48967\" style=\"width: 620px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/touche.webp\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-48967\" class=\"size-large wp-image-48967\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/touche-700x579.webp\" alt=\"\" width=\"610\" height=\"505\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/touche-700x579.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/touche-300x248.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/touche-768x635.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/touche.webp 1022w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><p id=\"caption-attachment-48967\" class=\"wp-caption-text\">Touch\u00e9 &#8211; the graphical Touch\u00e9gg configuration tool<\/p><\/div>\n<p>Previously, it supports keyboard shortcut, mouse click and run a command actions that execute on either &#8220;gesture begin&#8221; or &#8220;gesture end&#8221;. Now, the actions have <b>new choice to execute on gesture begin-and-end<\/b>.<\/p>\n<p>For mouse click action, it presses down the mouse button when gesture starts, and releases it when gesture ends.<\/p>\n<p>In the case for running a command action, an environment variable is set <code>TOUCHEGG_GESTURE_ON<\/code>, allowing the executed script to take different actions at the beginning and the end of the gesture.<\/p>\n<p>And, as you see in the screenshot above, the graphical Touch\u00e9 configuration tool is updated with the new &#8220;Gesture begin and end&#8221; option when you choose to simulate one of the 3 actions mentioned above.<\/p>\n<h3>How to Install Touch\u00e9gg 2.0.18<\/h3>\n<p><b>NOTE: as mentioned, Touch\u00e9gg does NOT work on Wayland session that&#8217;s default in Ubuntu since 22.04.<\/b><\/p>\n<p>The application offers <code>.rpm<\/code> and <code>.deb<\/code> packages as well as source tarball, which are available to download at the Github releases page:<\/p>\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-vivid-cyan-blue-to-vivid-purple-gradient-background has-text-color has-background\" href=\"https:\/\/github.com\/JoseExposito\/touchegg\/releases\" target=\"_blank\" rel=\"noopener\">Touch\u00e9gg Source (under Assets)<\/a><\/div>\n<\/div>\n<p>For Ubuntu (20.04, 22.04, 24.04 and 24.10) and Linux Mint, just open terminal (Ctrl+Alt+T) and run commands below one by one to install it from the <a href=\"https:\/\/launchpad.net\/~touchegg\/+archive\/ubuntu\/stable\" target=\"_blank\" rel=\"noopener\">official PPA<\/a>:<\/p>\n<pre>sudo add-apt-repository ppa:touchegg\/stable\r\n\r\nsudo apt update\r\n\r\nsudo apt install touchegg<\/pre>\n<p>After installed the application, run the command below to make sure it&#8217;s running properly in the backgound:<\/p>\n<pre>systemctl status touchegg.service<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/touchegg-service.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-48968\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/touchegg-service.webp\" alt=\"\" width=\"706\" height=\"533\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/touchegg-service.webp 706w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/touchegg-service-300x226.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/touchegg-service-700x528.webp 700w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/a><\/p>\n<p>Then, either copy <code>\/usr\/share\/touchegg\/touchegg.conf<\/code> file into local <code>~\/.config\/touchegg<\/code> (create if not exist) directory and edit to configure the gestures.<\/p>\n<p>Or, install <a href=\"https:\/\/flathub.org\/apps\/com.github.joseexposito.touche\" target=\"_blank\" rel=\"noopener\">Touch\u00e9 flatpak package<\/a> to configure via a graphical interface:<\/p>\n<ul>\n<li>First, Linux Mint and Fedora Workstation (with 3rd party repository enabled) may search and install Touch\u00e9 from either Software Manager or GNOME Software.<\/li>\n<li>For Debian, Ubuntu, and their based systems, open terminal and run command to install the daemon package first:\n<pre>sudo apt install flatpak<\/pre>\n<p>Other Linux may follow the official <a href=\"https:\/\/flatpak.org\/setup\/\" target=\"_blank\" rel=\"noopener\">setup guide<\/a> to enable Flatpak support.<\/li>\n<li>Finally, install the graphical configuration tool by running command:\n<pre>flatpak install https:\/\/dl.flathub.org\/repo\/appstream\/com.github.joseexposito.touche.flatpakref<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/06\/flatpak-touche.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-46701\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/06\/flatpak-touche.webp\" alt=\"\" width=\"738\" height=\"509\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/06\/flatpak-touche.webp 738w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/06\/flatpak-touche-300x207.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/06\/flatpak-touche-700x483.webp 700w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/a><\/li>\n<li>Or, run the command below to update the package:\n<pre>flatpak update com.github.joseexposito.touche<\/pre>\n<\/li>\n<\/ul>\n<p>After installed the tool, launch it from menu (log out and back in if app icon not visible) or by running the command below in terminal:<\/p>\n<pre>flatpak run com.github.joseexposito.touche<\/pre>\n<p>Finally configure your touch gestures either global or in app basis and enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>Touch\u00e9gg, the popular Linux multi-touch gesture recognizer, released new 2.0.18 version on Sunday! The new release of this free open-source application, added ability to execute actions both when the touch gesture starts and ends.<\/p>\n","protected":false},"author":1,"featured_media":35870,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2042],"class_list":["post-48964","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-touchpad-gestures"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/48964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=48964"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/48964\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/35870"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=48964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=48964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=48964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}