summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThorsten Wißmann <edu@thorsten-wissmann.de>2013-08-18 13:08:05 +0200
committerThorsten Wißmann <edu@thorsten-wissmann.de>2013-08-18 13:09:47 +0200
commitde742a5dfe74139897b6589977031d8960a1c836 (patch)
treef5ff923b69377e87419382275978bc46e2d9e49f /scripts
parent5cee16772ff0d97b1578c4ba3374d9b178b40f8c (diff)
Add rule flag prepend
Allow prepending of new rules instead of appending them to the list of rules.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/exec_on_tag.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/exec_on_tag.sh b/scripts/exec_on_tag.sh
index f7acaa16..f2758ed5 100755
--- a/scripts/exec_on_tag.sh
+++ b/scripts/exec_on_tag.sh
@@ -20,6 +20,8 @@ tag=${tag:-$(hc attr tags.focus.name)}
hc add "$tag"
# move next window from this process to this tag
-hc rule maxage="$expire" pid="$$" tag="$tag" once
+# prepend the rule so that it may be overwritten by existing custom rules e.g.
+# in the autostart
+hc rule prepend maxage="$expire" pid="$$" tag="$tag" once
exec "$@"