aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/scripts/task
blob: f15e4a6eac127e58db18aa9ffda5f523f6b5862a (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
#!/bin/sh 
SESSION=task

optios $@

tmux kill-session -t $SESSION
tmux -2 new-session -d -s $SESSION
tmux send-keys "watch task calendar" C-m
tmux split-window -v
tmux resize-pan -D 10
tmux resize-pan -U 10
tmux send-keys "watch task $@" C-m
tmux split-window -v
tmux resize-pan -D 20
tmux resize-pan -U 5
l1="┳━┓┓ ┃┳━┓┏┏┓┳━┓┳  ┳━┓  ┏━┓┳━┓  ┓━┓┏━┓┏┏┓┳━┓  ┏━┓┏━┓┏┏┓┏┏┓┳━┓┏┓┓┳━┓┓━┓"
l2="┣━ ┏╋┛┃━┫┃┃┃ ┃━┛┃  ┣━   ┃ ┃┣━   ┗━┓┃ ┃┃┃┃ ┣━   ┃  ┃ ┃┃┃┃ ┃┃┃ ┃━┫┃┃┃┃ ┃┗━┓"
l3="┻━┛┇ ┗┛ ┇┛ ┇┇  ┇━┛┻━┛  ┛━┛┇    ━━┛┛━┛┛ ┇┻━┛  ┗━┛┛━┛┛ ┇┛ ┇┛ ┇┇┗┛┇━┛━━┛"
tmux send-keys "clear;echo -e '$l1\n$l2\n$l3\n\ntmux send-keys -t task:0.1 C-c \`<watch task>\` C-m\nMore info about task on the next page !'" C-m
tmux split-window -v
tmux resize-pan -D 5
tmux new-window
tmux select-window -t 1
tmux send-keys "task help | less" C-m
tmux select-window -t 0
tmux rename-window -t 0 "task"
tmux rename-window -t 1 "help"
tmux -2 attach-session -t $SESSION