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.

37 lines
1.1 KiB

#!/bin/bash
function left() {
line=''
line=$line'#[fg=colour149,bg=colour235]'
line=$line' #(~/.tmux/get-path #{pane_current_path})'
line=$line' #(gitmux "#{pane_current_path}") '
line=$line'#[fg=colour235,bg=default,nobold]'
echo $line
}
function right() {
line='#[nolist align=right range=right #{status-right-style}]'
spotyTextColor=colour219
spotyBarColor=colour219
spotyBackground=default
#spotyBackground=colour133
#spotyStyle="#[fg=${spotyBackground}]#[fg=${spotyTextColor}, bg=${spotyBackground}, nobold]"
spotyStyle="#[fg=${spotyTextColor}, bg=${spotyBackground}, nobold]"
spotyFlags="--tmux-color-bar-fg=${spotyBarColor}"
spotyFlags="${spotyFlags} --tmux-color-text-fg=${spotyTextColor}"
spotyFlags="${spotyFlags} --first-artist --max-length-total=80"
if ps aux | grep -i '[z]oom' 2>&1 > /dev/null; then
line=$line' #[fg=colour124]#[fg=colour15, bg=colour124, nobold] Zoom is running '
else
line=$line' '$spotyStyle' #(eferland spoty show --tmux '$spotyFlags') '
fi
echo "${line}"
}
echo "$(left)$(right)"