#!/usr/bin/env bash set -euo pipefail tag=$(herbstclient attr tags.focus.name) selectedPath=$(run_list.sh | rofi -dmenu) [ -z $selectedPath ] && exit 0 herbstclient rule prepend maxage="120" pid="$$" tag="$tag" once exec $selectedPath