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.
config-tmux/status-first

57 lines
1.3 KiB

#!/bin/bash
function left() {
line='#[align=left range=left #{status-left-style}]'
line=$line'#[fg=colour133,bg=colour235,bold]'
line=$line' #S ' \
line=$line'#[fg=colour133]❯'
line=$line'#[fg=colour240]'
line=$line' '$(whoami)' '
line=$line'#[fg=colour235,bg=default,nobold]'
echo $line
}
function center() {
# Alignment
line='#[norange default]#[list=on align=#{status-justify}]'
# Markers
line=$line'#[list=left-marker]<#[list=right-marker]>#[list=on]'
# Start of list
line=$line'#{W:'
# Window list
line=$line'#[push-default]#{T:window-status-format}#[pop-default]'
# Window separator
line=$line'#[norange default]#{?window_end_flag,,#{window-status-separator}},'
# Current format
line=$line'#[push-default]#{T:window-status-current-format}#[pop-default]'
line=$line'#[norange list=on default]'
line=$line'#{?window_end_flag,,#{window-status-separator}}'
# End of list
line=$line'}'
echo $line
}
function right() {
line='#[nolist align=right range=right #{status-right-style}]'
line=$line$(date +"%I:%M %p")' '
line=$line'#[fg=colour238,nobold]'
line=$line'#[fg=colour254, bg=colour238]'
line=$line' '$(date +"%D %a")
line=$line$(rainbarf --width 10 --battery --remaining --tmux --rgb)
echo "${line}"
}
echo "$(left)$(center)$(right)"