no recursive #()

main
Efertone 9 months ago
parent e9a59ba09b
commit 29577a60a8
Signed by: efertone
GPG Key ID: 07AB750DDFD9EE50
  1. 21
      status-first
  2. 6
      status-second
  3. 2
      tmux.conf

@ -1,26 +1,13 @@
#!/bin/bash
# set status-format[0]
# "#[align=left range=left #{status-left-style}]#[push-default]#{T;=/#{status-left-length}:status-left}#[pop-default]
# #[norange default]#[list=on align=#{status-justify}]#[list=left-marker]<#[list=right-marker]>#[list=on]
# #{W:#[range=window|#{window_index} #{window-status-style}#{?#{&&:#{window_last_flag},#{!=:#{window-status-last-style},default}}, #{window-status-last-style},}#{?#{&&:#{window_bell_flag},#{!=:#{window-status-bell-style},default}}, #{window-status-bell-style},#{?#{&&:#{||:#{window_activity_flag},#{window_silence_flag}},#{!=:#{window-status-activity-style},default}}, #{window-status-activity-style},}}]#[push-default]#{T:window-status-format}#[pop-default]#[norange default]#{?window_end_flag,,#{window-status-separator}},#[range=window|#{window_index} list=focus #{?#{!=:#{window-status-current-style},default},#{window-status-current-style},#{window-status-style}}#{?#{&&:#{window_last_flag},#{!=:#{window-status-last-style},default}}, #{window-status-last-style},}#{?#{&&:#{window_bell_flag},#{!=:#{window-status-bell-style},default}}, #{window-status-bell-style},#{?#{&&:#{||:#{window_activity_flag},#{window_silence_flag}},#{!=:#{window-status-activity-style},default}}, #{window-status-activity-style},}}]#[push-default]#{T:window-status-current-format}#[pop-default]#[norange list=on default]#{?window_end_flag,,#{window-status-separator}}}
# #[nolist align=right range=right #{status-right-style}]#[push-default]#{T;=/#{status-right-length}:status-right}#[pop-default]#[norange default]#[align=centre]"
function left() {
line='#[align=left range=left #{status-left-style}]'
#line=$line'#[fg=colour234,bg=colour133,bold]'
#line=$line' #S ' \
#line=$line'#[fg=colour133,bg=colour235,nobold]'
#line=$line'#[fg=colour240,bg=colour235]'
#line=$line' #(whoami) '
#line=$line'#[fg=colour235,bg=default,nobold]'
line=$line'#[fg=colour133,bg=colour235,bold]'
line=$line' #S ' \
line=$line'#[fg=colour133]❯'
line=$line'#[fg=colour240]'
line=$line' #(whoami) '
line=$line' '$(whoami)' '
line=$line'#[fg=colour235,bg=default,nobold]'
@ -58,11 +45,11 @@ function center() {
function right() {
line='#[nolist align=right range=right #{status-right-style}]'
line=$line'#(date +"%I:%M %p") '
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)'
line=$line' '$(date +"%D %a")
line=$line$(rainbarf --width 10 --battery --remaining --tmux --rgb)
echo "${line}"
}

@ -4,7 +4,7 @@ function left() {
line=''
line=$line'#[fg=colour149,bg=colour235]'
line=$line' #(~/.tmux/get-path #{pane_current_path})'
line=$line' '$(~/.tmux/get-path "$1")
line=$line' #(gitmux "#{pane_current_path}") '
line=$line'#[fg=colour235,bg=default,nobold]'
@ -28,10 +28,10 @@ function right() {
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') '
line=$line' '$spotyStyle' '$(eferland spoty show --tmux $spotyFlags)' '
fi
echo "${line}"
}
echo "$(left)$(right)"
echo "$(left "$1")$(right)"

@ -63,7 +63,7 @@ set -g pane-active-border-style fg=colour219,bg=default
set -g status 2
set -g status-format[0] "#(~/.tmux/status-first)"
set -g status-format[1] "#(~/.tmux/status-second)"
set -g status-format[1] "#(~/.tmux/status-second '#{pane_current_path}')"
# Status length
#set -g status-left-length 50

Loading…
Cancel
Save