Skip to content

Commit

Permalink
Merge pull request #1483 from DDKatch/paragraph-as-tmux-prefix
Browse files Browse the repository at this point in the history
Add paragraph_as_tmux_prefix rule
  • Loading branch information
tekezo authored Sep 3, 2023
2 parents 9f4d754 + 8e31a9a commit 9cf4eeb
Showing 1 changed file with 338 additions and 0 deletions.
338 changes: 338 additions & 0 deletions public/json/paragraph_as_tmux_prefix.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,338 @@
{
"title": "Cange § to Ctrl-a",
"rules": [
{
"description": "Remap section sign (§) to Ctrl-a. Plus it allows to use !@#$%^&*( as numbers for tmux to switch between panes",
"manipulators": [
{
"from": {
"key_code": "non_us_backslash"
},
"to": [
{
"key_code": "a",
"modifiers": [
"control"
]
},
{
"set_variable": {
"name": "tmux-prefix",
"value": true
}
}
],
"type": "basic"
},



{
"from": {
"key_code": "1",
"modifiers": {
"optional": [
"left_shift"
]
}
},
"conditions": [
{
"type": "variable_if",
"name": "tmux-prefix",
"value": true
}
],
"to": [
{
"key_code": "1"
},
{
"set_variable": {
"name": "tmux-prefix",
"value": false
}
}
],
"type": "basic"
},



{
"from": {
"key_code": "2",
"modifiers": {
"optional": [
"left_shift"
]
}
},
"conditions": [
{
"type": "variable_if",
"name": "tmux-prefix",
"value": true
}
],
"to": [
{
"key_code": "2"
},
{
"set_variable": {
"name": "tmux-prefix",
"value": false
}
}
],
"type": "basic"
},



{
"from": {
"key_code": "3",
"modifiers": {
"optional": [
"left_shift"
]
}
},
"conditions": [
{
"type": "variable_if",
"name": "tmux-prefix",
"value": true
}
],
"to": [
{
"key_code": "3"
},
{
"set_variable": {
"name": "tmux-prefix",
"value": false
}
}
],
"type": "basic"
},



{
"from": {
"key_code": "4",
"modifiers": {
"optional": [
"left_shift"
]
}
},
"conditions": [
{
"type": "variable_if",
"name": "tmux-prefix",
"value": true
}
],
"to": [
{
"key_code": "4"
},
{
"set_variable": {
"name": "tmux-prefix",
"value": false
}
}
],
"type": "basic"
},



{
"from": {
"key_code": "5",
"modifiers": {
"optional": [
"left_shift"
]
}
},
"conditions": [
{
"type": "variable_if",
"name": "tmux-prefix",
"value": true
}
],
"to": [
{
"key_code": "5"
},
{
"set_variable": {
"name": "tmux-prefix",
"value": false
}
}
],
"type": "basic"
},



{
"from": {
"key_code": "6",
"modifiers": {
"optional": [
"left_shift"
]
}
},
"conditions": [
{
"type": "variable_if",
"name": "tmux-prefix",
"value": true
}
],
"to": [
{
"key_code": "6"
},
{
"set_variable": {
"name": "tmux-prefix",
"value": false
}
}
],
"type": "basic"
},



{
"from": {
"key_code": "7",
"modifiers": {
"optional": [
"left_shift"
]
}
},
"conditions": [
{
"type": "variable_if",
"name": "tmux-prefix",
"value": true
}
],
"to": [
{
"key_code": "7"
},
{
"set_variable": {
"name": "tmux-prefix",
"value": false
}
}
],
"type": "basic"
},



{
"from": {
"key_code": "8",
"modifiers": {
"optional": [
"left_shift"
]
}
},
"conditions": [
{
"type": "variable_if",
"name": "tmux-prefix",
"value": true
}
],
"to": [
{
"key_code": "8"
},
{
"set_variable": {
"name": "tmux-prefix",
"value": false
}
}
],
"type": "basic"
},



{
"from": {
"key_code": "9",
"modifiers": {
"optional": [
"left_shift"
]
}
},
"conditions": [
{
"type": "variable_if",
"name": "tmux-prefix",
"value": true
}
],
"to": [
{
"key_code": "9"
},
{
"set_variable": {
"name": "tmux-prefix",
"value": false
}
}
],
"type": "basic"
},



{
"from": {
"key_code": "non_us_backslash",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "non_us_backslash"
}
],
"type": "basic"
}
]
}
]
}

0 comments on commit 9cf4eeb

Please sign in to comment.