Created
June 21, 2023 17:06
-
-
Save iacchus/d4310d9858215c2a9d216dade8888144 to your computer and use it in GitHub Desktop.
Termux keyboard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Configuration with additional popup keys (swipe up from an extra key) | |
extra-keys = [[ \ | |
{key: KEYBOARD, popup: {macro: "CTRL d", display: exit}}, \ | |
{key: ESC, popup: {macro: "CTRL f d", display: "tmux exit"}}, \ | |
{key: CTRL, popup: {macro: "CTRL f BKSP", display: "tmux ←"}}, \ | |
{key: ALT, popup: {macro: "CTRL f TAB", display: "tmux →"}}, \ | |
{macro: "ALT c", display: "cd", popup: {macro: "ALT g", display: A-g}}, \ | |
{macro: "vim SPACE $(fzf) ENTER", display: "vim", popup: {macro: "ALT g", display: A-g}}, \ | |
{macro: "ESC :w ENTER", display: ":w", popup: {macro: "ALT g", display: A-g}}, \ | |
{macro: "ESC :q ENTER", display: ":q", popup: {macro: "ALT g", display: A-g}}, \ | |
{macro: 'y :%s/ CTRL r " //gi LEFT LEFT LEFT', display: ":%s", \ | |
popup: {macro: 'y :%s/ CTRL r " //gic LEFT LEFT LEFT LEFT', display: ':%s gic'}}, \ | |
{macro: "CTRL c", display: "<C-c>", popup: {macro: "ALT g", display: A-g}}, \ | |
{macro: "CTRL d", display: "<C-d>", popup: {macro: "ALT g", display: A-g}}, \ | |
{macro: "!$", display: "!$", popup: {macro: "ALT g", display: A-g}}, \ | |
{macro: "/", display: "/", popup: {macro: '"sy / CTRL r s ENTER', display: "search selection"}}, \ | |
{key: ENTER}, \ | |
{key: LEFT, popup: {macro: "ESC 0", display: "<ESC>0"}}, \ | |
{key: DOWN, popup: {macro: "CTRL d", display: "<C-d>"}}, \ | |
{key: UP, popup: {macro: "CTRL u", display: "<C-u>"}}, \ | |
{key: RIGHT, popup: {macro: "ESC $", display: "<ESC>$"}}, \ | |
{key: TAB, popup: {macro: "ALT a", display: A-a}} \ | |
]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This goes to
~/.termux/termux.properties
.