Skip to content

Petryanin/wezterm-config

 
 

Repository files navigation

Petryanin's WezTerm Config


Features

  • Background Image Selector

    • Cycle images
    • Fuzzy search for image
    • Toggle background image

    See: key bindings for usage

  • GPU Adapter Selector

    💡 Only works if the front_end option is set to WebGpu.

    A small utility to select the best GPU + Adapter (graphics API) combo for your machine.

    GPU + Adapter combo is selected based on the following criteria:

    1. Best GPU available

      Discrete > Integrated > Other (for wgpu's OpenGl implementation on Discrete GPU) > Cpu

    2. Best graphics API available (based off my very scientific scroll a big log file in Neovim test 😁)

      💡
      The available graphics API choices change based on your OS.
      These options correspond to the APIs the wgpu crate (which powers WezTerm's gui in WebGpu mode)
      currently has support implemented for.
      See: https://github.com/gfx-rs/wgpu#supported-platforms for more info

      • Windows: Dx12 > Vulkan > OpenGl
      • Linux: Vulkan > OpenGl
      • Mac: Metal

Getting Started

Most of the key bindings revolve around a SUPER, SUPER_REV(super reversed) and SUPER_SHIFT keys.

  • On MacOs:
    • SUPERCommand
    • SUPER_REVCommand+Option
    • SUPER_SHIFTCommand+Shift
  • On Windows and Linux
    • SUPERCtrl
    • SUPER_REVCtrl+Alt
    • SUPER_SHIFTCtrl+Shift
  • On all platforms:
    • LEADERSUPER+L

Miscellaneous/Useful

Keys Action
F1 ActivateCopyMode
SUPER_SHIFT+t ShowLauncher (tabs launch menu items and domains)
SUPER_SHIFT+f ActivateCommandPalette
F3 ShowLauncher
F4 ShowLauncher (tabs only)
F5 ShowLauncher (workspaces only)
F11 ToggleFullScreen
F12 ShowDebugOverlay
SUPER+f Search Text
SUPER+u Open URL
SUPER+Backspace Delete whole line
SUPER+ Move cursor to the beginning of the line
SUPER+ Move cursor to the end of the line

 

Copy+Paste

Keys Action
SUPER+c Copy to Clipborad
SUPER+v Paste from Clipborad

 

Tabs

Tabs: Spawn+Close
Keys Action
SUPER+t SpawnTab (CurrentPaneDomain)
SUPER_REV+t SpawnTab (DefaultDomain)
SUPER+w CloseCurrentTab
Tabs: Navigation
Keys Action
SUPER_REV+ Next Tab
SUPER_REV+ Previous Tab
SUPER_REV+[ Move Tab Left
SUPER_REV+] Move Tab Right
SUPER+<number 1-9> Switch to Tab with the number
Tabs: Toggle Tab-bar
Keys Action
SUPER+9 Toggle tab bar
Tabs: Title
Keys Action
SUPER+0 Rename Current Tab
SUPER_REV+0 Undo Rename

 

Windows

Keys Action
SUPER+n SpawnWindow
SUPER+= Increase Window Size
SUPER+- Decrease Window Size

 

Panes

Panes: Split Panes
Keys Action
SUPER+\ SplitHorizontal (CurrentPaneDomain)
SUPER_REV+\ SplitVertical (CurrentPaneDomain)
Panes: Zoom+Close Pane
Keys Action
SUPER+Enter TogglePaneZoomState
SUPER+w CloseCurrentPane
Panes: Navigation
Keys Action
SUPER_REV+k Move to Pane (Up)
SUPER_REV+j Move to Pane (Down)
SUPER_REV+h Move to Pane (Left)
SUPER_REV+l Move to Pane (Right)
SUPER_REV+p Swap with selected Pane
Panes: Scroll Pane
Keys Action
SUPER+u Scroll Lines up 5 lines
SUPER+d Scroll Lines down 5 lines
PageUp Scroll Page up
PageDown Scroll Page down

 

Background Images

Keys Action
SUPER+/ Select Random Image
SUPER+, Cycle to next Image
SUPER+. Cycle to previous Image
SUPER_REV+/ Fuzzy select Image
SUPER+b Toggle background focus mode

 

Key Tables

See: https://wezfurlong.org/wezterm/config/key-tables.html

Keys Action
LEADER+f resize_font
LEADER+p resize_pane
Key Table: resize_font
Keys Action
k IncreaseFontSize
j DecreaseFontSize
r ResetFontSize
q PopKeyTable (exit)
Esc PopKeyTable (exit)
Key Table: resize_pane
Keys Action
k AdjustPaneSize (Direction: Up)
j AdjustPaneSize (Direction: Down)
h AdjustPaneSize (Direction: Left)
l AdjustPaneSize (Direction: Right)
q PopKeyTable (exit)
Esc PopKeyTable (exit)

About

My wezterm config

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%