vtsm: add manifest for OpenSUSE

This commit is contained in:
Gabriel Arazas 2024-04-09 14:00:14 +08:00
parent c0c64c9f9d
commit d192e39178
3 changed files with 58 additions and 44 deletions

6
.vtsm/opensuse.json Normal file
View File

@ -0,0 +1,6 @@
{
"bin": "$HOME/.local/bin",
"nvim": "$XDG_CONFIG_HOME/nvim",
"kitty": "$XDG_CONFIG_HOME/kitty",
"wezterm": "$XDG_CONFIG_HOME/wezterm"
}

View File

@ -32,7 +32,10 @@ function module.apply_to_config(config)
return config
end
-- The keymod to be used for the entire configuration.
-- The keymod to be used for the entire configuration. The purpose of the
-- keymod is to assign it as a "global modifier" for the Wezterm program since
-- usual modifiers like CTRL and ALT are typically used for programs like Vim
-- and Emacs. It's quite similar to tmux's prefix key for its keybindings.
module.keymod = "CTRL|SHIFT"
module.alt_keymod = "CTRL|SHIFT|ALT"

View File

@ -117,6 +117,11 @@ function module.apply_to_config(config)
}),
},
{ key = "h", mods = "ALT", action = act.AdjustPaneSize({ "Left", 1 }) },
{ key = "j", mods = "ALT", action = act.AdjustPaneSize({ "Down", 1 }) },
{ key = "k", mods = "ALT", action = act.AdjustPaneSize({ "Up", 1 }) },
{ key = "l", mods = "ALT", action = act.AdjustPaneSize({ "Right", 1 }) },
{ key = "r", mods = keymod, action = act.ReloadConfiguration },
{ key = "o", mods = keymod, action = act.ShowDebugOverlay },
{ key = "p", mods = keymod, action = act.ActivateCommandPalette },