aboutsummaryrefslogtreecommitdiffhomepage
path: root/mpd/ncmpcpp/tsession
blob: e34d4b866b7c491d05b452f02d2f5d25acc61fae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
neww
set -g status off

#image pane; run cover script, disable text output and remove prompt
send-keys "stty -echo" C-m
send-keys "tput civis -- invisible" C-m
send-keys "export PS1=''" C-m
send-keys "clear" C-m
send-keys "~/.ncmpcpp/cover.sh " C-m

#catalog pane; run instance of ncmpcpp
split-window -v
select-pane -t 1
send-keys "ncmpcpp --config='~/.ncmpcpp/catalog.conf'" C-m
send-keys 1

#visualizer pane; run instance of ncmpcpp in visualizer mode
select-pane -t 0
split-window -h
send-keys "ncmpcpp --config='~/.ncmpcpp/visualizer.conf'" C-m
send-keys 8
send-keys u

#resize image and visualizer pane to fit image
resize-pane -t 0 -x 49 -y 23
resize-pane -t 1 -y 23

#hook for keeping the image pane size constant
set-hook client-resized 'resize-pane -t 0 -x 49 -y 23'

#focus on catalog pane
select-pane -t 2