Code Monkey home page Code Monkey logo

wezterm-config's Introduction

My WezTerm Config

Stargazers Issues Build

screenshot


Features

  • Background Image Selector

    Uses wezterm.read_dir to scan the backdrops directory for images.

    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)
      currenly 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

 

  • Steps:
    1. # On Windows and Unix systems
      git clone https://github.com/KevinSilvester/wezterm-config.git ~/.config/wezterm
    2. And Done!!! 🎉🎉

 


All Key Binbdings

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

  • On MacOs:
    • SUPERSuper
    • SUPER_REVSuper+Ctrl
  • On Windows and Linux
    • SUPERAlt
    • SUPER_REVAlt+Ctrl

To avoid confusion when switching between different OS and to avoid conflicting
with OS's built-in keyboard shortcuts.

  • On all platforms: LEADERSUPER_REV+Space

Miscellaneous/Useful

Keys Action
F1 ActivateCopyMode
F2 ActivateCommandPalette
F3 ShowLauncher
F4 ShowLauncher (tabs only)
F5 ShowLauncher (workspaces only)
F11 ToggleFullScreen
F12 ShowDebugOverlay
SUPER+f Search Text
SUPER+u Open URL

 

Copy+Paste

Keys Action
Ctrl+Shift+c Copy to Clipborad
Ctrl+Shift+v Paste from Clipborad

 

Cursor Movements

Keys Action
SUPER+LeftArrow Move cursor to Line Start
SUPER+RightArrow Move cursor to Line End
SUPER+Backspace Clear Line (does not work for PowerShell or cmd)

 

Tabs

Tabs: Spawn+Close
Keys Action
SUPER+t SpawnTab (DefaultDomain)
SUPER_REV+f SpawnTab (WSL:Ubuntu)
SUPER_REV+w CloseCurrentTab
Tabs: Navigation
Keys Action
SUPER+[ Next Tab
SUPER+] Previous Tab
SUPER_REV+[ Move Tab Left
SUPER_REV+] Move Tab Right

 

Windows

Keys Action
SUPER+n SpawnWindow

 

Panes

Panes: Split Panes
Keys Action
SUPER+\ SplitVertical (CurrentPaneDomain)
SUPER_REV+\ SplitHorizontal (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

 

Background Images

Keys Action
SUPER+/ Select Random Image
SUPER+, Cycle to next Image
SUPER+. Cycle to previous Image
SUPER_REV+/ Fuzzy select Image

 

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)

References/Inspirations

wezterm-config's People

Contributors

christianhturner avatar kevinsilvester avatar lukebarton avatar pwsandoval avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wezterm-config's Issues

error on windows 11

i am getting the following errors. Any advice?

❯ wezterm
09:21:04.426  ERROR  wgpu::backend::direct > Error in Adapter::request_device: Limit 'max_compute_workgroups_per_dimension' value 65535 is better than allowed 0
09:21:04.431  ERROR  wezterm_gui::frontend > Failed to create window: Requesting a device failed

Center text tab

I took your config for the tabs as an example, but I see that the text is not centered, there is a space on the left, although I can't find the config for this, am I missing something?

(      wslhost ~ btop ~/.c  )
   ^
   ^
this space is bigger than right

Example of your demo:

wez2

Maybe it's better appreciated when the tab doesn't have the unicode character on the right, like next...

My term, same problem:

wez
On the left have more padding or space than right

Thanks for your time, and excellent config!

serial error

i am getting the following errors. Any advice?

Process "pwsh" in domain "Serial Port com1" didn't exit cleanly
Exited with code 1.
This message is shown because exit_behavior="CloseOnCleanExit"

How to set my own background image?

I tried to delete all png images in backdrops, and then put my own images into them, but it didn't work. I would like to ask if there are any requirements for image format, name, etc.

请教如何设置一个tab内激活的panel

image

如图,我想设置为如果某个panel没激活的时候,也正常显示,不跟现在一样显示灰色,我看你的方案里是解决了这个问题的,但我没找到从哪里可以设置。

Using this config on macOS doesn't correctly load the shell.

I'm on macOS version 14.3.1, and I'm using the system's default zsh.
image
The commands configured in the zsh environment variables are no longer working properly.

elseif platform.is_mac then
   options.default_prog = { '/bin/zsh' }
   options.launch_menu = {
      { label = 'Bash', args = { 'bash' } },
      { label = 'Fish', args = { '/opt/homebrew/bin/fish' } },
      { label = 'Nushell', args = { '/opt/homebrew/bin/nu' } },
      { label = 'Zsh', args = { 'zsh' } },
   }

a error happened in windows system

callback error stack traceback: [C]: in metamethod 'index' C:\Users\shuhai\.config\wezterm/config\bindings.lua:93: in main chunk [C]: in function 'require' [string "C:\Users\shuhai\.config\wezterm\wezterm.lua"]:12: in main chunk caused by:InputSelectoris not a valid KeyAssignment variant. There are too many alternatives to list here; consult the documentation!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.