mirror of
https://github.com/TECHNOFAB11/tmux2k.git
synced 2025-12-11 23:50:08 +01:00
feat: add padding
This commit is contained in:
parent
d87007c2d0
commit
0951fbca45
3 changed files with 9 additions and 10 deletions
|
|
@ -12,8 +12,8 @@ get_tmux_option() {
|
|||
}
|
||||
|
||||
normalize_padding() {
|
||||
max_len=${2:-5}
|
||||
percent_len=${#1}
|
||||
max_len=${2:-5}
|
||||
let diff_len=$max_len-$percent_len
|
||||
# if the diff_len is even, left will have 1 more space than right
|
||||
let left_spaces=($diff_len + 1)/2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue