commit 0e0fb5f

hovercats  ·  2023-11-28 20:32:45 +0000 UTC
parent 3c0c921
focus: use printf
1 files changed,  +2, -2
+2, -2
 1@@ -11,7 +11,7 @@ INACTIVE=${INACTIVE:-0x333333} # inactive border color
 2 CUR=$(pfw)
 3 
 4 usage() {
 5-    echo "usage: $(basename "$0") <next|prev|wid>"
 6+    printf "usage: $(basename "$0") <next|prev|wid>\n"
 7     exit 1
 8 }
 9 
10@@ -38,7 +38,7 @@ case $1 in
11 esac
12 
13 # exit if we can't find another window to focus
14-test -z "$wid" && echo "$(basename "$0"): can't find a window to focus" >&2 && exit 1
15+test -z "$wid" && printf "$(basename "$0"): can't find a window to focus\n" >&2 && exit 1
16 
17 setborder inactive "$CUR" # set inactive border on current window
18 setborder active "$wid"   # activate the new window