mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-05-18 15:04:19 +02:00
try out wezterm
This commit is contained in:
parent
5d5f4dd6d1
commit
0f3a667329
|
@ -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
|
||||
|
|
|
@ -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
|
69
.config/wezterm/wezterm.lua.cgt
Normal file
69
.config/wezterm/wezterm.lua.cgt
Normal 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,
|
||||
},
|
||||
},
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue