Replace tmuxp with smug

This commit is contained in:
2022-04-25 12:11:41 +02:00
parent 712f6865da
commit 1032a7fb6a
10 changed files with 103 additions and 84 deletions

View File

@@ -12,7 +12,12 @@ select_action() {
}
launch_session() {
bash -c "tmuxp load ~/.tmuxp/$1.yaml"
tmux_pid=$(pidof tmux)
if [ -z "$tmux_pid" ]; then
kitty --class tmux -- smug start "$1"
else
tmux run-shell "smug start $1 2&>1 > /dev/null"
fi
}
execute_action() {