diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2024-11-07 11:32:27 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2024-11-07 11:32:27 +0800 |
| commit | 71ca28742ac4f93ab2401eaee8e78471c023cd4b (patch) | |
| tree | dd7c3921d249151dc3179f015153b9f9833d9d73 /X11/mpd/ncmpcpp/tsession | |
| parent | c7ed81e664a592db8fc9a9a6e8f44843de8024a1 (diff) | |
Update
Diffstat (limited to 'X11/mpd/ncmpcpp/tsession')
| -rw-r--r-- | X11/mpd/ncmpcpp/tsession | 32 |
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 @@ | |||
| 1 | neww | ||
| 2 | set -g status off | ||
| 3 | |||
| 4 | #image pane; run cover script, disable text output and remove prompt | ||
| 5 | send-keys "stty -echo" C-m | ||
| 6 | send-keys "tput civis -- invisible" C-m | ||
| 7 | send-keys "export PS1=''" C-m | ||
| 8 | send-keys "clear" C-m | ||
| 9 | send-keys "~/.ncmpcpp/cover.sh " C-m | ||
| 10 | |||
| 11 | #catalog pane; run instance of ncmpcpp | ||
| 12 | split-window -v | ||
| 13 | select-pane -t 1 | ||
| 14 | send-keys "ncmpcpp --config='~/.ncmpcpp/catalog.conf'" C-m | ||
| 15 | send-keys 1 | ||
| 16 | |||
| 17 | #visualizer pane; run instance of ncmpcpp in visualizer mode | ||
| 18 | select-pane -t 0 | ||
| 19 | split-window -h | ||
| 20 | send-keys "ncmpcpp --config='~/.ncmpcpp/visualizer.conf'" C-m | ||
| 21 | send-keys 8 | ||
| 22 | send-keys u | ||
| 23 | |||
| 24 | #resize image and visualizer pane to fit image | ||
| 25 | resize-pane -t 0 -x 49 -y 23 | ||
| 26 | resize-pane -t 1 -y 23 | ||
| 27 | |||
| 28 | #hook for keeping the image pane size constant | ||
| 29 | set-hook client-resized 'resize-pane -t 0 -x 49 -y 23' | ||
| 30 | |||
| 31 | #focus on catalog pane | ||
| 32 | select-pane -t 2 \ No newline at end of file | ||