Add tmux color schemes

This commit is contained in:
Andrew Tomaka 2021-11-06 22:44:35 -04:00
parent bff26a03ab
commit 3d686f72e4
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
5 changed files with 77 additions and 10 deletions

View file

@ -17,11 +17,15 @@ cat $alacritty/alacritty-base.yml $alacritty/themes/$new_color.yml >> $alacritty
echo $new_color > $color_file
for pane_info in $(tmux list-panes -a -F '#{pane_id}-#{pane_current_command}'); do
IFS=- read pane cmd <<< "$pane_info"
if [[ $TMUX ]]; then
for pane_info in $(tmux list-panes -a -F '#{pane_id}-#{pane_current_command}'); do
IFS=- read pane cmd <<< "$pane_info"
if [[ $cmd == "vim" ]]; then
echo "sending to $pane"
tmux send-keys -t $pane ":call ChangeBackground()" ENTER
fi
done
if [[ $cmd == "vim" ]]; then
echo "sending to $pane"
tmux send-keys -t $pane ":call ChangeBackground()" ENTER
fi
done
tmux source-file $HOME/.tmux/${new_color}.conf
fi