Skip to content

Commit fc91859

Browse files
committed
Make the raise-by-class command return error codes, so it can be used with || and &&, etc.
1 parent 5be0347 commit fc91859

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

linux/raise-by-class

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ wmctrl -l | cut -d ' ' -f 1 | {
1818
if [ "$class" = "$expected_class" ]; then
1919
# Raise the window by the ID.
2020
wmctrl -i -a "$id"
21-
break
21+
exit 0
2222
fi
2323
done
24+
25+
exit 1
2426
}

0 commit comments

Comments
 (0)