#!/usr/bin/env dash # Based on: https://codeberg.org/nirodhvana/reservoir/src/commit/2fa8c14877799a03bb927f048c2907dbb418fd68/dot-local/bin/gobble # Inspired by https://github.com/swindlesmccoop/not-just-dotfiles/blob/master/.local/bin/swallow swallow_tag=$((1 << 9)) eat() { riverctl set-view-tags $swallow_tag } throwup() { riverctl set-focused-tags $swallow_tag && riverctl send-to-previous-tags && riverctl focus-previous-tags } if [ -z "$*" ]; then printf "ERROR: No Arguments Supplied\n" else eat && "$@" throwup fi