fusuma-plugin-appmatcher 0.1.0.pre2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c82fbaea367e1b416873bfda4fd07e6c33ca726403a7d1200dfd6351a1f92f70
4
- data.tar.gz: e22437189f3f762f636507fc5eeba5304f28e8e59168a81fb12ec6e18da82589
3
+ metadata.gz: d226043c98f0533823ed38981d0a412ef2024f74651a2b637838b8c0d0fdd40a
4
+ data.tar.gz: c5f28764fb1382f56fb862a51fce6e891448169e886360dcccb44420c1147042
5
5
  SHA512:
6
- metadata.gz: b4f83d6928f08ecd382a6beda34478e83912e4fe964e9578fc3f531595c175c90ae116b087e5288ecf65bbdab805faee6b938830a29d4f6555df903098a44639
7
- data.tar.gz: c518fabd2584b692448225179ed2808eb9b91b989b8bf937902f6c4a80ebb1deeaf56ce51c88b48799910656a8f6644b61a577cc9e58ee50538fe75689521c36
6
+ metadata.gz: 901f6476d9350bbe963e0b38ea0e8d68593ecd5e0ca2f18b90dc253b710649d330641d6598e669396db8f5f9a92e582060a549a612964cf495b278d190cf13f3
7
+ data.tar.gz: 4852a78ff0c699a194ad0a325271006a84fa8c66c7c9cbfd025b0b9db8b3077a1556f39cbe11dd823d6f2b618b34e4c0c449e52426665d8a1659d9ee2d306e54
data/README.md CHANGED
@@ -27,76 +27,65 @@ Google-chrome
27
27
  Alacritty
28
28
  ```
29
29
 
30
- You can use these applicatin name to under `application:` section in config.yml
30
+ You can use these applicatin name to under `application:` context in config.yml
31
31
 
32
32
  ## Add appmatcher properties and application names to config.yml
33
33
 
34
- Add `appmatcher:` property in `~/.config/fusuma/config.yml`.
34
+ 1. Add the `---` symbol to separate the context in config.yml.
35
35
 
36
- lines beginning from `#` are comments
36
+ 2. Add `context:` property in `~/.config/fusuma/config.yml`.
37
37
 
38
- ### Add `application:` property
39
-
40
- * Set the `application:` property in the root of config.yml.
41
-
42
- * Under the `application:` property, you can set the `application name` as a property.
38
+ 3. Under the `context:` property, you can set the `application: APP_NAME` as a value.
39
+ * In this context, you can configure mappings to application-specific gestures.
43
40
  * For example, you can set `:Google-chrome`, `:Alacritty`, `Org.gnome.Nautilus`, and so on.
44
- * You can find property name's hint, with `$ fusuma-appmatcher -l`
45
- * If set `global:` as the `application name`, it is used as default configuration.
41
+ * You can find property name's hint, with `$ fusuma-appmatcher -l`
42
+
43
+ **NOTE: The first context separated by `---` is the default context**
46
44
 
47
45
  ### Example
48
46
 
49
- * Move the existing `swipe` or `pinch` sections in config.yml under `application:` > `Global:`.
47
+ In the following example of config.yml
48
+
49
+ * On Google-chrome, the three-finger gesture is mapped to open in tab, close tab, back in history, forward in history.
50
+ * On Gnome-terminal, the three-finger gesture will be mapped to open in tab, close in tab.
50
51
 
51
52
  ```diff
52
- - swipe:
53
- - 4:
54
- - up:
55
- - sendkey: 'LEFTCTRL+LEFTALT+DOWN'
56
- - keypress:
57
- - LEFTSHIFT:
58
- - sendkey: 'LEFTSHIFT+LEFTCTRL+LEFTALT+DOWN'
59
- - down:
60
- - sendkey: 'LEFTCTRL+LEFTALT+UP'
61
- - LEFTSHIFT:
62
- - sendkey: 'LEFTSHIFT+LEFTCTRL+LEFTALT+UP'
63
- + application:
64
- + Global:
65
- + swipe:
66
- + 4:
67
- + up:
68
- + sendkey: 'LEFTCTRL+LEFTALT+DOWN'
69
- + keypress:
70
- + LEFTSHIFT:
71
- + sendkey: 'LEFTSHIFT+LEFTCTRL+LEFTALT+DOWN'
72
- + down:
73
- + sendkey: 'LEFTCTRL+LEFTALT+UP'
74
- + LEFTSHIFT:
75
- + sendkey: 'LEFTSHIFT+LEFTCTRL+LEFTALT+UP'
76
- + Google-chrome:
77
- + swipe:
78
- + 3:
79
- + left:
80
- + sendkey: 'LEFTALT+RIGHT'
81
- + right:
82
- + sendkey: 'LEFTALT+LEFT'
83
- + up:
84
- + sendkey: 'LEFTCTRL+T'
85
- + down:
86
- + sendkey: 'LEFTCTRL+W'
87
- + Alacritty:
88
- + swipe:
89
- + 3:
90
- + up:
91
- + window: {fullscreen: 'add'}
92
- + down:
93
- + window: {fullscreen: 'remove'}
53
+ # this is default context
54
+ swipe:
55
+ 4:
56
+ up:
57
+ sendkey: 'LEFTCTRL+LEFTALT+DOWN'
58
+ keypress:
59
+ LEFTSHIFT:
60
+ sendkey: 'LEFTSHIFT+LEFTCTRL+LEFTALT+DOWN'
61
+ down:
62
+ sendkey: 'LEFTCTRL+LEFTALT+UP'
63
+ LEFTSHIFT:
64
+ sendkey: 'LEFTSHIFT+LEFTCTRL+LEFTALT+UP'
65
+ + ---
66
+ + context:
67
+ + application: Google-chrome
68
+ + swipe:
69
+ + 3:
70
+ + left:
71
+ + sendkey: 'LEFTALT+RIGHT'
72
+ + right:
73
+ + sendkey: 'LEFTALT+LEFT'
74
+ + up:
75
+ + sendkey: 'LEFTCTRL+T'
76
+ + down:
77
+ + sendkey: 'LEFTCTRL+W'
78
+ + ---
79
+ + context:
80
+ + application: Gnome-terminal
81
+ + swipe:
82
+ + 3:
83
+ + up:
84
+ + sendkey: 'LEFTSHIFT+LEFTCTRL+T'
85
+ + down:
86
+ + sendkey: 'LEFTSHIFT+LEFTCTRL+W'
94
87
  ```
95
88
 
96
- ### TODO
97
-
98
- * [ ] Support Threshold / Interval Settings
99
-
100
89
  ## Contributing
101
90
 
102
91
  Bug reports and pull requests are welcome on GitHub at https://github.com/iberianpig/fusuma-plugin-appmatcher. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_runtime_dependency 'iniparse'
28
28
  spec.add_runtime_dependency 'ruby-dbus'
29
29
 
30
- spec.add_dependency 'fusuma', '~> 2.0.0.pre2'
30
+ spec.add_dependency 'fusuma', '~> 2.0.0'
31
31
  end
@@ -7,6 +7,7 @@ require_relative 'appmatcher/gnome'
7
7
 
8
8
  module Fusuma
9
9
  module Plugin
10
+ # Detect focused applications.
10
11
  module Appmatcher
11
12
  module_function
12
13
 
@@ -3,7 +3,7 @@
3
3
  module Fusuma
4
4
  module Plugin
5
5
  module Appmatcher
6
- VERSION = '0.1.0.pre2'
6
+ VERSION = '0.1.0'
7
7
  end
8
8
  end
9
9
  end
@@ -10,6 +10,7 @@ module Fusuma
10
10
 
11
11
  # @param status [String]
12
12
  def initialize(name:)
13
+ super()
13
14
  @name = name
14
15
  end
15
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fusuma-plugin-appmatcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - iberianpig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-31 00:00:00.000000000 Z
11
+ date: 2021-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iniparse
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.0.0.pre2
47
+ version: 2.0.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.0.0.pre2
54
+ version: 2.0.0
55
55
  description: fusuma-plugin-appmatcher is Fusuma plugin for assigning gesture mapping
56
56
  per application.
57
57
  email:
@@ -98,9 +98,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: 1.3.1
103
+ version: '0'
104
104
  requirements: []
105
105
  rubygems_version: 3.1.4
106
106
  signing_key: