Deadcode
This commit is contained in:
parent
b287e51f7a
commit
88cd13b5dc
|
@ -109,7 +109,6 @@
|
|||
set fillchars="fold: " " Characters to fill the statuslines and vertical separators
|
||||
set nrformats-=octal
|
||||
set pastetoggle=<F12>
|
||||
set breakat=\ \ ;:,!? " Long lines break chars
|
||||
set shortmess=aoOtIWcFs " Shorten messages and don't show intro
|
||||
set omnifunc=syntaxcomplete#Complete
|
||||
set complete+=]
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
pidof python -m FoxDot || {
|
||||
pkill -9 -f scsynth\ -u\ 57110\ -a\ 144\ -i\ 16\ -o\ 16\ -b\ 65536\ -n\ 32768\ -m\ 131072\ -S\ 44100\ -R\ 0\ -C\ 0\ -l\ 1
|
||||
pkill -9 -f sclang\ -D\ /home/deadguy/Music/LiveCoding/foxy.scd
|
||||
sleep 1s
|
||||
tmux kill-session -t livecode
|
||||
}
|
||||
|
||||
#pidof python -m FoxDot 2> /dev/null
|
||||
|
||||
#if [[ $? -eq 1 ]]; then
|
||||
# pkill -9 -f scsynth\ -u\ 57110\ -a\ 144\ -i\ 16\ -o\ 16\ -b\ 65536\ -n\ 32768\ -m\ 131072\ -S\ 44100\ -R\ 0\ -C\ 0\ -l\ 1
|
||||
# pkill -9 -f sclang\ -D\ /home/deadguy/Music/LiveCoding/foxy.scd
|
||||
#fi
|
28
bin/livecode
28
bin/livecode
|
@ -1,37 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euf -o pipefail
|
||||
|
||||
session="livecode"
|
||||
foxpid=$(pidof python -m FoxDot)
|
||||
|
||||
# set up tmux
|
||||
tmux start-server
|
||||
tmux -2 start-server
|
||||
|
||||
# create a new tmux session, starting vim from a saved session in the new window
|
||||
# create a new tmux session
|
||||
tmux new-session -d -s $session
|
||||
|
||||
# Select pane 1, start scsynth
|
||||
tmux selectp -t 1
|
||||
tmux send-keys "scsynth -u 57110" C-m
|
||||
|
||||
sleep 3s
|
||||
tmux selectp -t 1
|
||||
tmux send-keys "scsynth -u 57110" C-m
|
||||
|
||||
# Split pane 1 horizontal by 50%, start sclang
|
||||
tmux splitw -v -p 50
|
||||
tmux send-keys "sclang -D ~/Music/LiveCoding/foxy.scd" C-m
|
||||
|
||||
sleep 5s
|
||||
tmux send-keys "sclang -D ~/Music/LiveCoding/foxy.scd" C-m
|
||||
|
||||
# Create new window, launch foxdot
|
||||
tmux new-window -t $session:2
|
||||
tmux selectp -t 1
|
||||
tmux selectp -t 1
|
||||
tmux send-keys "foxdot" C-m
|
||||
|
||||
# Attach to the session
|
||||
tmux attach-session -t $session
|
||||
|
||||
if [[ ! $foxpid ]]; then
|
||||
pkill -9 -f scsynth
|
||||
pkill -9 -f sclang\ -D\ /home/deadguy/Music/LiveCoding/foxy.scd
|
||||
sleep 5s
|
||||
tmux kill-session -t livecode
|
||||
fi
|
||||
tmux attach-session -t $session
|
Reference in New Issue