diff options
| author | JopStro <[email protected]> | 2020-06-19 10:06:46 +0100 |
|---|---|---|
| committer | JopStro <[email protected]> | 2020-06-19 10:06:46 +0100 |
| commit | 1ed1e7896089bc3bc5aae19c245791fc2b9bd310 (patch) | |
| tree | 5f8784b11d113fb820d9e6a1fe666b47b4a048eb /alternative | |
| parent | 68cf698a11018ede0bc635edee1b69e587a91ddd (diff) | |
Swap the main script and the alternative script
Diffstat (limited to 'alternative')
| -rw-r--r-- | alternative/README.md | 2 | ||||
| -rwxr-xr-x[-rw-r--r--] | alternative/bspswallow | 2 |
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 |
