1 2 3 4 5 6 7 8 9 10 11 12
#!/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