diff options
author | NeodarZ <neodarz@neodarz.net> | 2017-08-23 20:35:04 +0200 |
---|---|---|
committer | NeodarZ <neodarz@neodarz.net> | 2017-08-23 20:35:04 +0200 |
commit | 8dab54a65a713d7bf661bc966e58c7e8ecf9c408 (patch) | |
tree | d945c2db604bb2243aa59ab9da38c472985ef5ea /scripts/.scripts/task | |
parent | 58fe5cf21035b556cab6577bd0ebc294d0df621f (diff) | |
download | dotfiles_ascii-8dab54a65a713d7bf661bc966e58c7e8ecf9c408.tar.xz dotfiles_ascii-8dab54a65a713d7bf661bc966e58c7e8ecf9c408.zip |
Add some cool script
Diffstat (limited to 'scripts/.scripts/task')
-rwxr-xr-x | scripts/.scripts/task | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/.scripts/task b/scripts/.scripts/task new file mode 100755 index 0000000..f15e4a6 --- /dev/null +++ b/scripts/.scripts/task @@ -0,0 +1,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 |