#!/usr/bin/env bash set -e set -o nounset set -o pipefail SCRIPTS=${SCRIPTS:-$HOME/.local/scripts} THIS_FILE=${BASH_SOURCE[0]} LOG_LABEL=$(basename "$THIS_FILE") THIS=${THIS:-$LOG_LABEL} LOG_FILE=${LOG_FILE:-"/tmp/$LOG_LABEL.log"} FZF_DEFAULT_OPTS=${FZF_DEFAULT_OPTS:-""} usage() { cat < [FZF_OPTIONS] FLAGS: -n | --return-name: Return workspace name instead of id. -s | --return-name-if-special: Return name if a special workspace, otherwise return the id. This option is useful when moving a workspace using 'hyprctl' with the selection. -h | --help: Show this help page. NOTES: By default, we show a footer and header unless specifically passed in as extra arguments / options. Any other options or arguments are passed directly to 'fzf'. EOF } # Logging utility function, use in place of echo. log() { logging log --source "$THIS_FILE" "$@" } footer() { cat <<'EOF' _ __ __ | | /| / /__ ____/ /__ ___ ___ ___ ________ ___ | |/ |/ / _ \/ __/ '_/(_-