Quote:
Originally Posted by apt-get
(Hey, if anyone knows a way that you can go about automating that process when tmux starts, please DO NOT HESITATE TO TELL ME!!!!! I've been ripping my eyes out reading documentation for ways to do this!)
|
I've been messing with this for a couple of days and have some of it figured out. You definitely do the basic set-up in .tmux.conf and mine looks like this:
Code:
# set global r-o-e
#set -g set-remain-on-exit on
setw -g aggressive-resize off
# Create a new session
new -n main
splitw -v -l 1 -t 0 conkytermstart
selectp -U
Which is pretty basic. It makes a horizontal split and puts conky in the bottom pane. That said, there are a few weirdies about this I don't get:
Why does the -v flag cause horizontal panes? If I use the -h flag, I get vertical panes.
After a certain point, reducing the size of one of the panes seems futile. Both -l and -p seem to take a minimum of about 25%. Since my conky bar is only 1 line, I do want to minimize it further, it just doesn't seem to work. However, I can reduce it further once tmux is running.
The key thing is to start tmux with the attach option (
$tmux attach). If you just start as tmux, it doesn't seem to pay any attention to .tmux.conf. I did see somewhere that when just using tmux to start, there is an implicit new_session that overrides the one in .tmux.conf.