Add zellij
This commit is contained in:
parent
f7f2b3a020
commit
8e7155d2c7
4 changed files with 12 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue