You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
479 B

#!/bin/bash
# if called from a tmux session, set up panes for dev window
if [ -n "$TMUX_PANE" ]; then
tmux rename-window dev
tmux splitw -h
tmux selectp -t 0
tmux resizep -x 83
tmux splitw -v -l 15
tmux selectp -t 0
clear
# create a new default session
else
SESSION='default'
tmux -2 -C new -s $SESSION 'powermate_pactl.py'
tmux -C rename-window -t $SESSION powermate
tmux -C new-window -n dev -t $SESSION
tmux -C new-window -t $SESSION
tmux attach -t $SESSION
fi