diff options
author | Ryan Kavanagh <rak@rak.ac> | 2023-02-09 19:29:20 -0500 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2023-02-09 19:29:20 -0500 |
commit | 1cd70a9954b6206de484f89ed7d71f2124c8c2cb (patch) | |
tree | 2d5b6ad8f8a2c7f3afb7238a980bacb642841053 /bin/executable_tmcg | |
parent | elisp .emacs (diff) | |
parent | s-l should force xlock to immediately lock (diff) |
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to 'bin/executable_tmcg')
-rwxr-xr-x | bin/executable_tmcg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/executable_tmcg b/bin/executable_tmcg index d94abbc..5ebb3cf 100755 --- a/bin/executable_tmcg +++ b/bin/executable_tmcg @@ -8,10 +8,12 @@ current_session () { } SESSION=$(current_session) +NEW=1 if [ "x${SESSION}" = "x" ]; then SESSION="irc" tmux new-session -s "${SESSION}" -d + NEW=$? fi if ! tmux switch -t ${SESSION}:catgirl >/dev/null 2>&1; then @@ -21,4 +23,7 @@ if ! tmux switch -t ${SESSION}:catgirl >/dev/null 2>&1; then tmux split-window -t ${SESSION}:catgirl -c '~' catgirl tilde tmux set-option -t ${SESSION}:catgirl remain-on-exit on tmux selectl -t ${SESSION}:catgirl tiled + if test ${NEW} -eq 0; then + tmux kill-window -t ${SESSION}:0 + fi fi |