Add zellij

This commit is contained in:
Tobias Reisinger 2024-06-24 15:25:15 +02:00
parent f7f2b3a020
commit 8e7155d2c7
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 12 additions and 6 deletions

View file

@ -32,6 +32,7 @@ declare -A mapper=(
["xprofile"]="$HOME/.xprofile"
["yadm"]="$HOME/.local/share/yadm/repo.git/config"
["yadm-encrypt"]="$HOME/.config/yadm/encrypt"
["zellij"]="$HOME/.config/zellij/"
["zsh"]="$HOME/.config/zsh/.zshrc"
)

View file

@ -3,7 +3,7 @@
modes="std
single
single-sec
layout"
zellij"
portalo_mode_std () {
echo "Loading portalo standard screen layout"
@ -23,12 +23,12 @@ portalo_mode_single_sec () {
yadm config --add local.class monitor-single-sec
}
portalo_mode_layout () {
layout_dir="$HOME/.config/hypr/layouts"
portalo_mode_zellij () {
layout_dir="$HOME/.config/zellij/layouts"
layouts=$(\ls -1 "$layout_dir")
layout=$(echo "$layouts" | $DMENU -p "layout")
if [ -n "$layout" ]; then
"$layout_dir/$layout"
$TERMINAL -e zellij --layout="$layout_dir/$layout"
fi
}
@ -42,6 +42,6 @@ case $mode in
"std") portalo_mode_std ;;
"single") portalo_mode_single ;;
"single-sec") portalo_mode_single_sec ;;
"layout") portalo_mode_layout ;;
"zellij") portalo_mode_zellij ;;
*) echo "'$mode' is not a valid mode (single, std)" ;;
esac

View file

@ -43,6 +43,7 @@
yadm # dotfile manager
yq # tool for YAML
yt-dlp # tool to download videos from the internet
zellij # terminal multiplexer
zip # zip
];

View file

@ -15,7 +15,7 @@ $cmd_duration\
[](bg:red fg:yellow)\
$status\
[](bg:white fg:red)\
${custom.asciinema_log}$shell\
${custom.asciinema_log}${env_var.ZELLIJ}$shell\
[](bg:cyan fg:white)\
$jobs\
[](cyan)
@ -42,6 +42,10 @@ when = ''' test -n "$ASCIINEMA_LOG" && test -n "$ASCIINEMA_REC" '''
style = "bg:white fg:black"
format = '[$output ]($style)'
[env_var.ZELLIJ]
style = "bg:white fg:black"
format = '[ ]($style)'
[directory]
read_only = ""
truncation_length = 8