Initial commit
Added a minimal default-tmux.sh and a chat client kill script.
This commit is contained in:
commit
581efa43a8
24
default-tmux.sh
Normal file
24
default-tmux.sh
Normal 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
3
kill-chats.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
for CC in schildichat-des skypeforlinux signal-desktop google-chrome; do
|
||||
kill `pidof ${CC} 2>/dev/null`
|
||||
done
|
Loading…
Reference in a new issue