Skip to content

Commit

Permalink
Merge pull request #1519 from pqrs-org/personal_tekezo
Browse files Browse the repository at this point in the history
Update personal_tekezo (add ;+i)
  • Loading branch information
tekezo authored Oct 25, 2023
2 parents d3df78a + a1376ce commit 76aa3f5
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 10 deletions.
1 change: 1 addition & 0 deletions public/extra_descriptions/personal_tekezo.json.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<li>Change ;+j to mouse button #1</li>
<li>Change ;+k to mouse button #3</li>
<li>Change ;+l to mouse button #2</li>
<li>Change ;+i to warp mouse pointer to the center of screen</li>
</ul>

<ul>
Expand Down
31 changes: 30 additions & 1 deletion public/json/personal_tekezo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
],
"rules": [
{
"description": "Personal rules (@tekezo) (rev 49)",
"description": "Personal rules (@tekezo) (rev 50)",
"available_since": "14.12.6",
"manipulators": [
{
Expand Down Expand Up @@ -668,6 +668,35 @@
}
]
},
{
"type": "basic",
"from": {
"key_code": "i",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"software_function": {
"set_mouse_cursor_position": {
"screen": 0,
"x": "50%",
"y": "50%"
}
}
}
],
"conditions": [
{
"type": "variable_if",
"name": "personal_tekezo_mouse_buttons",
"value": 1
}
]
},
{
"type": "basic",
"from": {
Expand Down
15 changes: 6 additions & 9 deletions src/json/personal_tekezo.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function main() {
maintainers: ['tekezo'],
rules: [
{
description: 'Personal rules (@tekezo) (rev 49)',
description: 'Personal rules (@tekezo) (rev 50)',
available_since: '14.12.6',
manipulators: [].concat(
coreConfiguration(),
Expand Down Expand Up @@ -507,9 +507,10 @@ function mouse() {
},
})
;[
{ from: 'j', to: 'button1' },
{ from: 'k', to: 'button3' },
{ from: 'l', to: 'button2' },
{ from: 'j', to: [{ pointing_button: 'button1' }] },
{ from: 'k', to: [{ pointing_button: 'button3' }] },
{ from: 'l', to: [{ pointing_button: 'button2' }] },
{ from: 'i', to: [{ software_function: { set_mouse_cursor_position: { screen: 0, x: '50%', y: '50%' } } }] },
].forEach(function (def) {
result.push({
type: 'basic',
Expand All @@ -519,11 +520,7 @@ function mouse() {
optional: ['any'],
},
},
to: [
{
pointing_button: def.to,
},
],
to: def.to,
conditions: [
{
type: 'variable_if',
Expand Down

0 comments on commit 76aa3f5

Please sign in to comment.