aboutsummaryrefslogtreecommitdiffhomepage
path: root/X11/mpd/ncmpcpp/tsession
diff options
context:
space:
mode:
Diffstat (limited to 'X11/mpd/ncmpcpp/tsession')
-rw-r--r--X11/mpd/ncmpcpp/tsession32
1 files changed, 32 insertions, 0 deletions
diff --git a/X11/mpd/ncmpcpp/tsession b/X11/mpd/ncmpcpp/tsession
new file mode 100644
index 0000000..e34d4b8
--- /dev/null
+++ b/X11/mpd/ncmpcpp/tsession
@@ -0,0 +1,32 @@
1neww
2set -g status off
3
4#image pane; run cover script, disable text output and remove prompt
5send-keys "stty -echo" C-m
6send-keys "tput civis -- invisible" C-m
7send-keys "export PS1=''" C-m
8send-keys "clear" C-m
9send-keys "~/.ncmpcpp/cover.sh " C-m
10
11#catalog pane; run instance of ncmpcpp
12split-window -v
13select-pane -t 1
14send-keys "ncmpcpp --config='~/.ncmpcpp/catalog.conf'" C-m
15send-keys 1
16
17#visualizer pane; run instance of ncmpcpp in visualizer mode
18select-pane -t 0
19split-window -h
20send-keys "ncmpcpp --config='~/.ncmpcpp/visualizer.conf'" C-m
21send-keys 8
22send-keys u
23
24#resize image and visualizer pane to fit image
25resize-pane -t 0 -x 49 -y 23
26resize-pane -t 1 -y 23
27
28#hook for keeping the image pane size constant
29set-hook client-resized 'resize-pane -t 0 -x 49 -y 23'
30
31#focus on catalog pane
32select-pane -t 2 \ No newline at end of file