You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
888 B
33 lines
888 B
#!/bin/bash
|
|
|
|
|
|
#maybe use this as a setup for those programs and have a permanent sidebar?
|
|
#tmux send-keys -t "%74" "chafa " "/home/steven/downloads/images/big_keys_for_logo.jpg" "C-m"
|
|
# See the space!!!
|
|
#replaces man command - makes help a fallback
|
|
# use pick to deal with the output better
|
|
#TOD
|
|
|
|
c_tmux=$(env | grep -c TMUX)
|
|
if [ $c_tmux -gt 0 ];then
|
|
command=$(echo "$@")
|
|
tmux split-window -v
|
|
#"$command"
|
|
c_pane=$(tmux ls -F "#D")
|
|
printf '\033]2;%s\033\\' 'topbar'
|
|
tmux resize-pane -t "$c_pane" -R 20
|
|
tmux select-pane -m -t "$c_pane"
|
|
#echo "$c_pane"
|
|
tmux send-keys -t "$c_pane" "$command && exit" C-m
|
|
fi
|
|
|
|
|
|
# if [ $c_tmux -gt 0 ];then
|
|
# tmux kill-pane -t "$c_pane"
|
|
# fi
|
|
|
|
|
|
|
|
# Is it tmux?
|
|
# Does the sidebar already exist in this window?
|
|
# if not, create sidebar and export variable |