Switch from tmux to zellij
Also remapped some nvim and zsh keybinds to not conflict with zellij
This commit is contained in:
parent
cebd82df87
commit
5561023ea8
10
config.toml
10
config.toml
|
@ -154,10 +154,6 @@ src = ".local/share/applications/steam-native.desktop"
|
|||
dst = "~/.config/telegram-desktop/lang.strings"
|
||||
src = ".config/telegram-desktop/lang.strings"
|
||||
|
||||
[dotfiles."f_tmux.conf"]
|
||||
dst = "~/.tmux.conf"
|
||||
src = ".tmux.conf"
|
||||
|
||||
[dotfiles.f_youtube-dl_config]
|
||||
dst = "~/.config/youtube-dl/config"
|
||||
src = ".config/youtube-dl/config"
|
||||
|
@ -250,6 +246,10 @@ src = ".npmrc"
|
|||
dst = "~/.npmrc"
|
||||
chmod = "600"
|
||||
|
||||
[dotfiles.d_zellij]
|
||||
src = ".config/zellij"
|
||||
dst = "~/.config/zellij"
|
||||
|
||||
[profiles.pacman]
|
||||
dotfiles = ["f_makepkg.conf", "f_paru.conf"]
|
||||
|
||||
|
@ -267,7 +267,7 @@ dotfiles = [
|
|||
"f_ranger.conf",
|
||||
"f_ranger_commands.py",
|
||||
"f_rtv.cfg",
|
||||
"f_tmux.conf",
|
||||
"d_zellij",
|
||||
"f_zshrc",
|
||||
"f_npmrc",
|
||||
]
|
||||
|
|
|
@ -68,7 +68,7 @@ return {
|
|||
keys = {
|
||||
{
|
||||
desc = "Open Telescope",
|
||||
"<C-s>",
|
||||
"t",
|
||||
"<cmd>Telescope<cr>",
|
||||
},
|
||||
{
|
||||
|
@ -88,7 +88,7 @@ return {
|
|||
},
|
||||
{
|
||||
desc = "Change to a project",
|
||||
"<C-p>",
|
||||
"<leader>p",
|
||||
"<cmd>Telescope projects<cr>",
|
||||
},
|
||||
},
|
||||
|
|
|
@ -24,8 +24,8 @@ return {
|
|||
}, { prefix = "<leader>" })
|
||||
|
||||
wk.register({
|
||||
["<C-n>"] = { "<cmd>bnext<cr>", "Next buffer" },
|
||||
["<C-b>"] = { "<cmd>bprevious<cr>", "Previous buffer" },
|
||||
["<Tab>"] = { "<cmd>bnext<cr>", "Next buffer" },
|
||||
["<S-Tab>"] = { "<cmd>bprevious<cr>", "Previous buffer" },
|
||||
})
|
||||
|
||||
-- Exit terminal insert mode with esc
|
||||
|
|
11
home/.config/zellij/config.kdl
Normal file
11
home/.config/zellij/config.kdl
Normal file
|
@ -0,0 +1,11 @@
|
|||
theme "kanagawa"
|
||||
|
||||
keybinds {
|
||||
unbind "Ctrl g"
|
||||
locked {
|
||||
bind "Ctrl l" { SwitchToMode "Normal"; }
|
||||
}
|
||||
shared_except "locked" {
|
||||
bind "Ctrl l" { SwitchToMode "Locked"; }
|
||||
}
|
||||
}
|
15
home/.config/zellij/themes/kanagawa.kdl
Normal file
15
home/.config/zellij/themes/kanagawa.kdl
Normal file
|
@ -0,0 +1,15 @@
|
|||
themes {
|
||||
kanagawa {
|
||||
fg "#dcd7ba"
|
||||
bg "#1f1f28"
|
||||
black "#090618"
|
||||
red "#c34043"
|
||||
green "#76946a"
|
||||
yellow "#c0a36e"
|
||||
blue "#7e9cd8"
|
||||
magenta "#957fb8"
|
||||
cyan "#6a9589"
|
||||
white "#c8c093"
|
||||
orange "#ffa066"
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
# Launch tmux if logging in over ssh
|
||||
if [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
||||
if tmux has-session -t ssh_tmux 2>/dev/null; then
|
||||
exec tmux -2 attach-session -t ssh_tmux
|
||||
else
|
||||
exec tmux -2 new-session -s ssh_tmux
|
||||
fi
|
||||
fi
|
9
home/.config/zsh/01-zellij.zsh
Normal file
9
home/.config/zsh/01-zellij.zsh
Normal file
|
@ -0,0 +1,9 @@
|
|||
if [[ -z "$ZELLIJ" ]]; then
|
||||
# Launch or attach to existing session if logging in over ssh
|
||||
if [[ -n "$SSH_CONNECTION" ]]; then
|
||||
exec zellij attach -s SSH
|
||||
# Launch a new local session otherwise
|
||||
else
|
||||
exec zellij
|
||||
fi
|
||||
fi
|
|
@ -44,3 +44,7 @@ bindkey -M vicmd e edit-command-line
|
|||
|
||||
# bind delete in normal mode
|
||||
bindkey -M vicmd '^[[3~' delete-char
|
||||
|
||||
# Rebind fzf to ctrl+f
|
||||
bindkey '^F' fzf-file-widget
|
||||
bindkey '^T' transpose-chars
|
||||
|
|
Loading…
Reference in a new issue