feat(zellij): zellij runner, changes to the new tab template as well as new status bar plugin

This commit is contained in:
Sergio Laín 2023-10-16 12:44:10 +02:00
parent e3908d4f6e
commit ce2a9fca53
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
7 changed files with 56 additions and 31 deletions

View file

@ -12,6 +12,6 @@ function fish_user_key_bindings
bind \e\cw rga-fzf
bind \e\z cdzi
bind \e\ci navi
bind \e\cr repos
bind \e\cr zellij-runner
bind \e\[Z switch_kitty_tab
end

View file

@ -37,6 +37,12 @@ set -xg EDITOR nvim
set -xg VISUAL $EDITOR
set -xg SUDO_EDITOR $EDITOR
set -xg ZELLIJ_RUNNER_ROOT_DIR Repos
set -xg ZELLIJ_RUNNER_IGNORE_DIRS node_modules,target
set -xg ZELLIJ_RUNNER_MAX_DIRS_DEPTH 3
set -xg ZELLIJ_RUNNER_LAYOUTS_DIR .config/zellij/layouts
set -xg ZELLIJ_RUNNER_BANNERS_DIR .config/zellij/banners
set -xg GPG_TTY (tty)
set -xg LANG es_ES.UTF-8
set -xg LC_ALL es_ES.UTF-8

View file

@ -1,18 +1,10 @@
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣄⣠⣀⡀⣀⣠⣤⣤⣤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣄⢠⣠⣼⣿⣿⣿⣟⣿⣿⣿⣿⣿⣿⣿⣿⡿⠋⠀⠀⠀⢠⣤⣦⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠰⢦⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⣟⣾⣿⣽⣿⣿⣅⠈⠉⠻⣿⣿⣿⣿⣿⡿⠇⠀⠀⠀⠀⠀⠉⠀⠀⠀⠀⠀⢀⡶⠒⢉⡀⢠⣤⣶⣶⣿⣷⣆⣀⡀⠀⢲⣖⠒⠀⠀⠀⠀⠀⠀⠀
⢀⣤⣾⣶⣦⣤⣤⣶⣿⣿⣿⣿⣿⣿⣽⡿⠻⣷⣀⠀⢻⣿⣿⣿⡿⠟⠀⠀⠀⠀⠀⠀⣤⣶⣶⣤⣀⣀⣬⣷⣦⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣦⣤⣦⣼⣀⠀
⠈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠛⠓⣿⣿⠟⠁⠘⣿⡟⠁⠀⠘⠛⠁⠀⠀⢠⣾⣿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠏⠙⠁
⠀⠸⠟⠋⠀⠈⠙⣿⣿⣿⣿⣿⣿⣷⣦⡄⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⣼⣆⢘⣿⣯⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡉⠉⢱⡿⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⡿⠦⠀⠀⠀⠀⠀⠀⠀⠙⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⡗⠀⠈⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⣿⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⣿⣉⣿⡿⢿⢷⣾⣾⣿⣞⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠋⣠⠟⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⣿⣿⣿⠿⠿⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣾⣿⣿⣷⣦⣶⣦⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⠈⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠻⣿⣤⡖⠛⠶⠤⡀⠀⠀⠀⠀⠀⠀⠀⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠁⠙⣿⣿⠿⢻⣿⣿⡿⠋⢩⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠧⣤⣦⣤⣄⡀⠀⠀⠀⠀⠀⠘⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠘⣧⠀⠈⣹⡻⠇⢀⣿⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⣿⣿⣿⣿⣤⣀⡀⠀⠀⠀⠀⠀⠀⠈⢽⣿⣿⣿⣿⣿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠹⣷⣴⣿⣷⢲⣦⣤⡀⢀⡀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⣿⣿⣿⣿⣿⣿⠟⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣷⢀⡄⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠂⠛⣆⣤⡜⣟⠋⠙⠂⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⣿⣿⣿⠟⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⠉⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣤⣾⣿⣿⣿⣿⣆⠀⠰⠄⠀⠉⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⡿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⡿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⠿⠿⣿⣿⣿⠇⠀⠀⢀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⡿⠛⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢻⡇⠀⠀⢀⣼⠗⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⠃⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠁⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠒⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
▒███████▒▓█████ ██▓ ██▓ ██▓ ▄▄▄██▀▀▀
▒ ▒ ▒ ▄▀░▓█ ▀ ▓██▒ ▓██▒ ▓██▒ ▒██
░ ▒ ▄▀▒░ ▒███ ▒██░ ▒██░ ▒██▒ ░██
▄▀▒ ░▒▓█ ▄ ▒██░ ▒██░ ░██░▓██▄██▓
▒███████▒░▒████▒░██████▒░██████▒░██░ ▓███▒
░▒▒ ▓░▒░▒░░ ▒░ ░░ ▒░▓ ░░ ▒░▓ ░░▓ ▒▓▒▒░
░░▒ ▒ ░ ▒ ░ ░ ░░ ░ ▒ ░░ ░ ▒ ░ ▒ ░ ▒ ░▒░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░

View file

@ -1,11 +1,5 @@
keybinds {
shared_except "locked" {
bind "Ctrl y" {
LaunchOrFocusPlugin "file:~/.config/zellij/plugins/room.wasm" {
floating true
}
}
}
}
plugins {

View file

@ -1,9 +1,42 @@
layout {
tab name="terminal" {
pane size="70%" borderless=false
pane size="30%" borderless=false
default_tab_template {
children
pane size=1 borderless=true {
plugin location="file:~/.config/zellij/plugins/statusbar.wasm"
// plugin location="file:~/.config/zellij/plugins/statusbar.wasm"
plugin location="file:~/.config/zellij/plugins/zjstatus.wasm" {
format_left "{mode} #[fg=#8aadf4,bold]{session} {tabs}"
format_right "{datetime}"
format_space ""
hide_frame_for_single_pane "false"
mode_normal "#[bg=#89B4FA] "
mode_locked "#[bg=#ed8796] "
mode_resize "#[bg=#89B4FA] "
mode_pane "#[bg=#89B4FA] "
mode_tab "#[bg=#89B4FA] "
mode_scroll "#[bg=#89B4FA] "
mode_enter_search "#[bg=#89B4FA] "
mode_search "#[bg=#89B4FA] "
mode_rename_tab "#[bg=#89B4FA] "
mode_rename_pane "#[bg=#89B4FA] "
mode_session "#[bg=#89B4FA] "
mode_move "#[bg=#89B4FA] "
mode_prompt "#[bg=#89B4FA] "
mode_tmux "#[bg=#ffc387] "
tab_normal "#[fg=#6e738d] {name} "
tab_active "#[fg=#939ab7,bold,italic] {name} "
tab_active_fullscreen "#[fg=#939ab7,bold,italic] {name} []"
datetime "#[fg=#939ab7,bold] {format} "
datetime_format "%A, %d %b %Y %H:%M"
datetime_timezone "Europe/Madrid"
}
}
}
tab name="terminal" {
pane size="70%"
pane size="20%"
}
}

Binary file not shown.

View file

@ -1,7 +1,7 @@
themes {
default {
bg "#24273a" // Surface2
fg "#cad3f5"
fg "#b7bdf8"
red "#ed8796"
green "#a6da95"
blue "#8aadf4"