Prevent tmux color change if it's not running
This commit is contained in:
parent
32b33a73c5
commit
ee2869e335
1 changed files with 8 additions and 6 deletions
|
@ -21,6 +21,7 @@ cat $alacritty/alacritty-base.yml $alacritty/themes/$new_color.yml >> $alacritty
|
||||||
|
|
||||||
echo $new_color > $color_file
|
echo $new_color > $color_file
|
||||||
|
|
||||||
|
if tmux info &> /dev/null; then
|
||||||
for pane_info in $(tmux list-panes -a -F '#{pane_id}-#{pane_current_command}'); do
|
for pane_info in $(tmux list-panes -a -F '#{pane_id}-#{pane_current_command}'); do
|
||||||
IFS=- read pane cmd <<< "$pane_info"
|
IFS=- read pane cmd <<< "$pane_info"
|
||||||
|
|
||||||
|
@ -28,3 +29,4 @@ for pane_info in $(tmux list-panes -a -F '#{pane_id}-#{pane_current_command}');
|
||||||
tmux send-keys -t $pane ":lua ChangeBackground()" ENTER
|
tmux send-keys -t $pane ":lua ChangeBackground()" ENTER
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue