User Tools

Site Tools


wsl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wsl [2023/04/14 17:19] – Add instructions to allow matplotlib to plot dblumewsl [2025/04/06 18:53] (current) – Map C-i to vim's leader-i dblume
Line 1: Line 1:
 ===== WSL ===== ===== WSL =====
 +
 +==== Legacy Windows Console Host ====
  
 Window Title Bar -> Font: Size 16, Font: DejaVu Sans Mono for Powerline Window Title Bar -> Font: Size 16, Font: DejaVu Sans Mono for Powerline
 +
 +==== Windows Terminal ====
 +
 +[[https://unix.stackexchange.com/a/717441/282848|Use Windows Terminal to distinguish Ctrl-i from Tab]].
 +
 +To remap Ctrl-i to a sequence that maps as Ctrl-i //outside of tmux//:
 +
 +  - In Windows Terminal, go to the dropdown menu and open Settings
 +  - At the bottom left corner of the Settings, select the "Open JSON file" option.
 +  - Add the following in the "actions" list:
 +<code javascript>
 +{
 +    "command": 
 +    {
 +        "action": "sendInput",
 +        "input": "\\i"
 +    },
 +    "keys": "ctrl+i"
 +}
 +</code>
 +
 +Note that you could've set "input" to ''"input": "\u001b[105;5u"'', but that doesn't work in tmux on the server. If you want things to work in vim inside or outside of tmux, map Ctrl-i to <leader>-i.
 +
 +When you save it, note that the ''"keys": "ctrl+i"'' line changes to a new ''User.sendInput'' ID. Verify it's correct in the "keybindings" section. You should end up with something like:
 +
 +<code javascript>
 +{
 +    "command": 
 +    {
 +        "action": "sendInput",
 +        "input": "\\i"
 +    },
 +    "id": "User.sendInput.BDDBFCE3"
 +}
 +],
 +    "keybindings": 
 +    [
 +        {
 +            "id": "User.sendInput.BDDBFCE3",
 +            "keys": "ctrl+i"
 +        },
 +</code>
 +
 +=== Settings ===
 +
 +Color scheme: Vintage (With brightened Blue (0000D0), and Cyan (00A0A0))
 +Font face: DejaVu Sans Mono for Powerline
 +Font size: 11
 +Line height: 1.1
 +Font weight: Normal
  
 ===== Installation ===== ===== Installation =====
Line 44: Line 96:
      # Happens when running headless.  Convert to ImportError to cooperate with      # Happens when running headless.  Convert to ImportError to cooperate with
 </file> </file>
 +
 +===== VPN =====
 +
 +Install [[https://github.com/sakai135/wsl-vpnkit|wsp-vpnkit]], and run as a systemd service.
wsl.1681517981.txt.gz · Last modified: 2023/04/14 17:19 by dblume