From: Christian Heller Date: Fri, 21 Mar 2025 14:16:26 +0000 (+0100) Subject: Improve status.sh. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/%7B%7Bdb.prefix%7D%7D/conditions?a=commitdiff_plain;h=fbfe6d4c076c70a7244c5adf841461d507b3ec42;p=config Improve status.sh. --- diff --git a/testing/home/t490s/.nonpath_bins/status.sh b/testing/home/t490s/.nonpath_bins/status.sh index 3faa0b4..1363bf6 100755 --- a/testing/home/t490s/.nonpath_bins/status.sh +++ b/testing/home/t490s/.nonpath_bins/status.sh @@ -47,7 +47,7 @@ color_at() { print_clipboard() { print_selection() { - print_bar_block "$1:[" "${COL_WHITE}" 0 + print_bar_block "$1 [" "${COL_WHITE}" 0 CLEANED=$(wl-paste $2 | sed 's/"/\\"/g') ELLIPSIS= if [ $(echo "${CLEANED}" | wc -c) -gt 32 ]; then @@ -55,10 +55,10 @@ print_clipboard() { ELLIPSIS='...' fi print_bar_block "${CLEANED}" "" 0 - print_bar_block "${ELLIPSIS}]" "${COL_WHITE}" + print_bar_block "${ELLIPSIS}]" "${COL_WHITE}" $3 } - print_selection C - print_selection P --primary + print_selection 'wl-paste' '' 0 + print_selection ' --primary' --primary } print_online() { @@ -150,7 +150,7 @@ print_keyboard() { else LAYOUT=?? fi - print_bar_block "k:${LAYOUT}" + print_bar_block "kb_${LAYOUT}" } printf '{"version": 1}\n['