commit 5a1e07c
hovercats
·
2023-11-29 14:40:53 +0000 UTC
parent c786eca
focus: fix shellcheck
1 files changed,
+2,
-2
M
sh/focus
M
sh/focus
+2,
-2
1@@ -11,7 +11,7 @@ INACTIVE="${INACTIVE:-0x333333}" # inactive border color
2 CUR=$(pfw)
3
4 usage() {
5- printf "usage: $(basename "$0") <next|prev|wid>\n" "%s"
6+ printf "usage: %s $(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-[ -z "$wid" ] && printf "$(basename "$0"): can't find a window to focus\n" "%s" >&2 && exit 1
15+[ -z "$wid" ] && printf "$(basename "$0"): %s 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