Skip to content

make the status bar responsive #76

@bbigras

Description

@bbigras

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}"`)'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions