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" ["xprofile"]="$HOME/.xprofile"
["yadm"]="$HOME/.local/share/yadm/repo.git/config" ["yadm"]="$HOME/.local/share/yadm/repo.git/config"
["yadm-encrypt"]="$HOME/.config/yadm/encrypt" ["yadm-encrypt"]="$HOME/.config/yadm/encrypt"
["zellij"]="$HOME/.config/zellij/"
["zsh"]="$HOME/.config/zsh/.zshrc" ["zsh"]="$HOME/.config/zsh/.zshrc"
) )

View file

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

View file

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

View file

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