config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 0c283b156ac2aa05eb388eb1e7807c5a5d805a07
parent 44e8cc525c15781a87513b4c86904885652f66b5
Author: jacobs-github <JacobDoesLinux@protonmail.com>
Date:   Sun, 16 Feb 2020 02:35:19 -0800

grep just returns an exit code after a match (-q)

Diffstat:
Mbspwm/.config/bspwm/bspc-utils/bspc-querydesktop | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bspwm/.config/bspwm/bspc-utils/bspc-querydesktop b/bspwm/.config/bspwm/bspc-utils/bspc-querydesktop @@ -5,4 +5,5 @@ # I don't know hardly anything about regex yet, working on it. # so obviously this is very flawed but works for my *perpouses* -bspc query --desktop focused -T | sed 's/,/\n/g' | grep "$1" +bspc query --desktop focused -T | sed 's/,/\n/g' | grep "$1" -q +exit $?