README.md in fusuma-0.11.0 vs README.md in fusuma-0.11.1
- old
+ new
@@ -29,11 +29,11 @@
```bash
$ sudo gem install fusuma
```
-### 4. Install xdotool(optional)
+### 4. Install xdotool(optional)
For sending shortcuts:
```bash
$ sudo apt-get install xdotool
```
@@ -59,41 +59,41 @@
$ sudo gem update fusuma
```
## Customize Gesture Mapping
-You can customize the settings for gestures to put and edit `~/.config/fusuma/config.yml`.
+You can customize the settings for gestures to put and edit `~/.config/fusuma/config.yml`.
**NOTE: You will need to create the `~/.config/fusuma` directory if it doesn't exist yet.**
```bash
$ mkdir -p ~/.config/fusuma # create config directory
$ nano ~/.config/fusuma/config.yml # edit config file.
```
-### Example (Gesture Mapping for elementary OS)
+### Example 1: Gesture Mapping for elementary OS
```yaml
swipe:
- 3:
- left:
+ 3:
+ left:
command: 'xdotool key alt+Left'
- right:
+ right:
command: 'xdotool key alt+Right'
- up:
+ up:
command: 'xdotool key ctrl+t'
threshold: 1.5
- down:
+ down:
command: 'xdotool key ctrl+w'
threshold: 1.5
4:
- left:
+ left:
command: 'xdotool key super+Left'
- right:
+ right:
command: 'xdotool key super+Right'
- up:
+ up:
command: 'xdotool key super+a'
- down:
+ down:
command: 'xdotool key super+s'
pinch:
2:
in:
command: 'xdotool key ctrl+plus'
@@ -109,10 +109,46 @@
interval:
swipe: 1
pinch: 1
```
+### Example 2: Gesture Mapping for Ubuntu OS to mimic Mac a little
+
+```yaml
+swipe:
+ 3:
+ left:
+ command: 'xdotool key alt+Shift+Tab'
+ right:
+ command: 'xdotool key alt+Tab'
+ up:
+ command: 'xdotool key super'
+ down:
+ command: 'xdotool key super'
+ 4:
+ up:
+ command: 'xdptool key super+m'
+ down:
+ command: 'xdotool key super+m'
+pinch:
+ in:
+ command: 'xdotool key super+a'
+ threshold: 0.1
+ out:
+ command: 'xdotool key super'
+ threshold: 0.1
+
+threshold:
+ swipe: 1
+ pinch: 1
+
+interval:
+ swipe: 1
+ pinch: 1
+
+```
+
if `command: ` properties are blank, the swipe/pinch doesn't execute command.
`threshold:` is sensitivity to swipe/pinch. Default value is 1.
If the swipe's threshold is `0.5`, shorten swipe-length by half.
@@ -127,14 +163,14 @@
You need to replace to `command: ` property.
```diff
swipe:
- 3:
- left:
+ 3:
+ left:
- shortcut: 'alt+Left'
+ command: 'xdotool key alt+Left'
- right:
+ right:
- shortcut: 'alt+Right'
+ command: 'xdotool key alt+Right'
```
### About xdotool