aboutsummaryrefslogtreecommitdiff
path: root/alternative
diff options
context:
space:
mode:
Diffstat (limited to 'alternative')
-rw-r--r--alternative/README.md2
-rwxr-xr-x[-rw-r--r--]alternative/bspswallow2
2 files changed, 2 insertions, 2 deletions
diff --git a/alternative/README.md b/alternative/README.md
index 0794648..8e98ae0 100644
--- a/alternative/README.md
+++ b/alternative/README.md
@@ -1,3 +1,3 @@
# Alternative version
-This is a version of the script in which you specify a list of classes of programs that you don't want to swallow the terminal in a file called "noswallow".
+This is a version of the script in which you specify a list of classes of programs that you *do* want to swallow the terminal in a file called "swallow" and everything else isn't swallowed.
diff --git a/alternative/bspswallow b/alternative/bspswallow
index 8e787a3..1406fcf 100644..100755
--- a/alternative/bspswallow
+++ b/alternative/bspswallow
@@ -13,7 +13,7 @@ get_class() {
swallow() {
swallowerid=$1
swallowingid=$(bspc query -n prev -N)
- cat ~/.config/bspwm/noswallow ~/.config/bspwm/terminals | grep "^$(get_class $swallowerid)$" && return
+ grep "^$(get_class $swallowerid)$" ~/.config/bspwm/swallow || return
grep "^$(get_class $swallowingid)$" ~/.config/bspwm/terminals || return
echo $swallowerid $swallowingid >> /tmp/swallowids
bspc node $swallowingid --flag hidden=on