mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: add zellij again
This commit is contained in:
parent
5b591ba10b
commit
f2267de522
10 changed files with 564 additions and 658 deletions
|
|
@ -25,7 +25,7 @@ if [[ $kitty -eq 1 ]]; then
|
|||
STR=$(swaymsg -t get_tree | jq -r 'recurse(.nodes[]) | select(.name == "__i3_scratch")' | grep kittyterm || true)
|
||||
CHECK=$(swaymsg -t get_tree | grep kittyterm || true)
|
||||
if [ "$CHECK" == "" ]; then
|
||||
exec kitty -T kittyterm &
|
||||
exec kitty -T kittyterm -o confirm_os_window_close=0 zellij attach --create kittyterm &
|
||||
sleep 1
|
||||
fi
|
||||
if [ "$STR" == "" ]; then
|
||||
|
|
|
|||
7
scripts/swarselzellij.sh
Normal file
7
scripts/swarselzellij.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
KITTIES=$(($(pgrep -P 1 kitty | wc -l) - 1))
|
||||
|
||||
if [[ $KITTIES -lt 1 ]]; then
|
||||
exec kitty -o confirm_os_window_close=0 zellij attach --create main
|
||||
else
|
||||
exec kitty -o confirm_os_window_close=0 zellij attach --create "temp $KITTIES"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue