Initial commit

Added a minimal default-tmux.sh and a chat client kill script.
This commit is contained in:
c47 2024-01-16 19:21:53 +01:00
commit 581efa43a8
2 changed files with 27 additions and 0 deletions

24
default-tmux.sh Normal file
View file

@ -0,0 +1,24 @@
T=/usr/bin/tmux
S=default
${T} has-session -t ${S} 2>/dev/null
if [[ ${?} -eq 0 ]]; then
${T} a -t ${S}
else
${T} new -d -s ${S}
${T} rename-window -t ${S}:1 'Nvim'
${T} send-keys -t ${S}:'Nvim' 'nvim' C-m
${T} new-window -t ${S}:2 -n 'Chat'
${T} send-keys -t ${S}:'Chat' 'profanity' C-m
${T} new-window -t ${S}:8 -n Mail
${T} send-keys -t ${S}:'Mail' "ssh inb -t '${T} a -t0'" C-m
${T} new-window -t ${S}:9 -n Music
${T} select-window -t ${S}:'Chat'
${T} a -t ${S}
fi

3
kill-chats.sh Normal file
View file

@ -0,0 +1,3 @@
for CC in schildichat-des skypeforlinux signal-desktop google-chrome; do
kill `pidof ${CC} 2>/dev/null`
done