Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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.

License

NotificationsYou must be signed in to change notification settings

ayuanx/Gosture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

By AyuanX, 22-Aug-2018


What is Gosture

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

  1. Prepare your Gosture configuration file at~/.Gosture.cfg.
    An example of configuration file is provided asGosture_Config_Example.txt.
    You can use it as a starting point. E.g. runcp Gosture_Config_Example.txt ~/.Gosture.cfg
  2. Tweak the configuration to your needs. (Check detailed instructions below.)
  3. Run Gosture in background and enjoy the mouse gestures and keyboard shortcuts. E.g. runnohup ./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:

OperationAction
Mouse Middle ButtonTrigger 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+ZRun gedit(Super key is also known as Windows key)
Super+Alt+XRun terminal(Super key is also known as Windows key)
Super+Alt+CRun calculator(Super key is also known as Windows key)

How to configure Gosture

Gosture configuration file~/.Gosture.cfg is a standard JSON file.

OptionDescription
mouse-gesture-enabletrue: enable mouse gesture;false: disable mouse gesture
mouse-gesture-triggercan be a single[Mouse Button] like2; or a[Modifier Key]-[Mouse Button] combination, likeControl-2

Definition of mouse buttons:

Mouse ButtonDescription
1Left Button
2Middle Button
3Right Button
4Scroll Up
5Scroll Down

Definition of keys:

Modifier KeyDescription
ShiftShift Key
LockCaps Lock Key
ControlCtrl Key
Mod1Alt Key
Mod2Num Lock Key
Mod3(Usually not mapped to any physical key)
Mod4Super Key (also known as Windows Key)
Mod5AltGr Key (usually absent on US keyboard)

Definition of mouse gestures:

All eight directions are supported; directions are mapped to digits onNum Pad.

...
7 (↖)8 (↑)9 (↗)
4 (←)6 (→)
1 (↙)2 (↓)3 (↘)
  • For example: gesture of "↑→" is86; gesture of "↖↘" is73; gesture of "←↓→" is426.
    Tip: Mixture of orthogonal stroke and diagonal stroke in one gesture (like "↗→" or "↙↓↘") is supported, but not recommended.

Current supported actions:

ActionDescription
minwinMinimize active window
maxwinMaximize active window / Restore it if already maximized
closewinClose 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

Dependencies and credits

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp