sudo apt update
sudo apt install xrdp
sudo apt install xfce4
| { | |
| "description": "CAPS LOCK + hjkl to arrow keys", | |
| "manipulators": [ | |
| { | |
| "conditions": [ | |
| { | |
| "name": "caps_lock pressed", | |
| "type": "variable_if", | |
| "value": 1 | |
| } |
| keycode 66 = Mode_switch | |
| keysym h = h H Left | |
| keysym l = l L Right | |
| keysym k = k K Up | |
| keysym j = j J Down | |
| keysym u = u U Page_Up | |
| keysym m = m M Home | |
| keysym semicolon = semicolon colon End | |
| keysym n = n N Page_Down |
| unbind C-b | |
| set -g prefix C-a | |
| set -g mouse on | |
| unbind '"' | |
| bind '-' split-window -v | |
| bind '_' split-window -v | |
| unbind '%' | |
| bind '|' split-window -h | |
| bind '\' split-window -h |
| # first, install socat by brew | |
| brew install socat | |
| # the forward! | |
| sudo socat TCP4-LISTEN:59919,fork TCP4:172.22.15.10:18081 |
| SetCapsLockState, AlwaysOff | |
| CapsLock & k:: | |
| send, {Up} | |
| Return | |
| CapsLock & j:: | |
| send, {Down} | |
| Return |