Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make the status bar responsive #76

Open
bbigras opened this issue Jan 24, 2023 · 1 comment
Open

make the status bar responsive #76

bbigras opened this issue Jan 24, 2023 · 1 comment

Comments

@bbigras
Copy link

bbigras commented Jan 24, 2023

With termux on phones, the status bar could be more optimal.

Currently, I'm using this. Based on https://coderwall.com/p/trgyrq/make-your-tmux-status-bar-responsive .

tmux-airline.sh

#!/usr/bin/env bash

WIDTH=${1}
SMALL=80

if [ "$WIDTH" -le "$SMALL" ]; then
    echo ""
else
    echo "#{prefix_highlight}#[fg=cyan,bg=black,nobold,noitalics,nounderscore]#[fg=black,bg=cyan,bold] #H "
fi

conf

set -g status-right '#(eval ${tmux-airline} `tmux display -p "#{client_width}"`)'
@bbigras
Copy link
Author

bbigras commented Jan 25, 2023

before:
image

after:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant