From fbfe6d4c076c70a7244c5adf841461d507b3ec42 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 21 Mar 2025 15:16:26 +0100 Subject: [PATCH] Improve status.sh. --- testing/home/t490s/.nonpath_bins/status.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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[' -- 2.30.2