try out wezterm

This commit is contained in:
LordMZTE 2023-01-21 19:09:24 +01:00
parent 5d5f4dd6d1
commit 0f3a667329
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
4 changed files with 74 additions and 3 deletions

View file

@ -46,7 +46,7 @@ bindsym XF86Calculator exec qalculate-gtk
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec TERMINAL=alacritty i3-sensible-terminal
bindsym $mod+Return exec TERMINAL=<% opt.term_command %> i3-sensible-terminal
# open thunar
bindsym $mod+Ctrl+e exec thunar

View file

@ -10,8 +10,8 @@
# Note: the "Super" modifier is also known as Logo, GUI, Windows, Mod4, etc.
# Super+Return to start an instance of alacritty
riverctl map normal Super+Shift Return spawn alacritty
# Super+Return to start a terminal
riverctl map normal Super+Shift Return spawn <% opt.term_command %>
# Super+Q to close the focused view
riverctl map normal Super Q close

View file

@ -0,0 +1,69 @@
local wt = require "wezterm"
return {
color_scheme = "Dracula (Official)",
font = wt.font "<% opt.term_font %>",
window_background_opacity = 0.8,
disable_default_key_bindings = true,
leader = { key = "a", mods = "CTRL", timeout_milliseconds = 2000 },
keys = {
-- splitting
{
key = "h",
mods = "LEADER",
action = wt.action.SplitVertical {},
},
{
key = "v",
mods = "LEADER",
action = wt.action.SplitHorizontal {},
},
-- switching panes
{
key = "h",
mods = "ALT",
action = wt.action.ActivatePaneDirection "Left",
},
{
key = "j",
mods = "ALT",
action = wt.action.ActivatePaneDirection "Down",
},
{
key = "k",
mods = "ALT",
action = wt.action.ActivatePaneDirection "Up",
},
{
key = "l",
mods = "ALT",
action = wt.action.ActivatePaneDirection "Right",
},
-- tabs
{
key = "t",
mods = "CTRL|SHIFT",
action = wt.action.SpawnTab "CurrentPaneDomain",
},
{
key = "t",
mods = "CTRL",
action = wt.action.ActivateTabRelative(1),
},
-- font size
{
key = "+",
mods = "CTRL",
action = wt.action.IncreaseFontSize,
},
{
key = "-",
mods = "CTRL",
action = wt.action.DecreaseFontSize,
},
},
}

View file

@ -3,4 +3,6 @@ local opts = {}
opts.font = "Iosevka Nerd Font"
opts.term_font = "Iosevka Term Nerd Font Mono"
opts.term_command = "wezterm"
return opts