You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gosture is a Linux X Window system productivity tool, written in Go language.
Gosture implements system-wide customizable mouse gestures as well as keyboard shortcuts.
How to use Gosture
Prepare your Gosture configuration file at ~/.Gosture.cfg.
An example of configuration file is provided as Gosture_Config_Example.txt.
You can use it as a starting point. E.g. run cp Gosture_Config_Example.txt ~/.Gosture.cfg
Tweak the configuration to your needs. (Check detailed instructions below.)
Run Gosture in background and enjoy the mouse gestures and keyboard shortcuts. E.g. run nohup ./Gosture &
After launching, you can control it through the icon in system tray.
Tip: you can add it into your X Window Startup Applications so that it automatically runs at your login.
The following operations are defined by default in the provided configuration example:
Operation
Action
Mouse Middle Button
Trigger a mouse gesture
Gesture ↙
Minimize active window
Gesture ↗
Maximize / Restore active window
Gesture ↓→
Close active window
Gesture ↑
Scroll to top (Equivalent to Home key)
Gesture ↓
Scroll to bottom (Equivalent to End key)
Gesture ←
Copy selection to clipboard (Equivalent to Ctrl+Insert)
Gesture →
Paste from clipboard (Equivalent to Shift+Insert)
Gesture ↑↓
Snap window to top edge (Equivalent to Super+Up)
Gesture ↓↑
Snap window to bottom edge (Equivalent to Super+Down)
Gesture ←→
Snap window to left edge (Equivalent to Super+Left)
Gesture →←
Snap window to right edge (Equivalent to Super+Right)
Super+Alt+Z
Run gedit (Super key is also known as Windows key)
Super+Alt+X
Run terminal (Super key is also known as Windows key)
Super+Alt+C
Run calculator (Super key is also known as Windows key)
How to configure Gosture
Gosture configuration file ~/.Gosture.cfg is a standard JSON file.
All eight directions are supported; directions are mapped to digits on Num Pad.
.
.
.
7 (↖)
8 (↑)
9 (↗)
4 (←)
6 (→)
1 (↙)
2 (↓)
3 (↘)
For example: gesture of "↑→" is 86; gesture of "↖↘" is 73; gesture of "←↓→" is 426.
Tip: Mixture of orthogonal stroke and diagonal stroke in one gesture (like "↗→" or "↙↓↘") is supported, but not recommended.
Current supported actions:
Action
Description
minwin
Minimize active window
maxwin
Maximize active window / Restore it if already maximized
closewin
Close active window
key,[key1],[key2],...
Send a key combination. Each key is delimited by comma
cmd,[executable],[dir]
Run [executable], can be a program or script with arguments. [dir] is optional working directory