From d7653fc8c2585a6af9efac7f063690e45951dd98 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Mon, 14 Mar 2016 18:22:46 +0100 Subject: [PATCH] Spawn ncmpcpp in ncmpcpp tag --- autostart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/autostart b/autostart index cd00909..37a1d59 100755 --- a/autostart +++ b/autostart @@ -10,6 +10,12 @@ function hc() { herbstclient "$@" } +spawn_with_rules() {( + herbstclient rule once maxage=10 "${RULES[@]}" + exec "$@" + ) & +} + Mod=Mod4 # tags @@ -19,6 +25,7 @@ for i in {0..9} ; do hc keybind "$Mod-$i" use "$i" hc keybind "$Mod-Shift-$i" move "$i" done +hc add scratchpad case "$(hostname)" in hepworth) @@ -121,3 +128,5 @@ xfsettingsd &! source .config/herbstluftwm/wallpaper.sh set_wallpaper +RULES=( instance=ncmpcpp tag=scratchpad focus=off ) +spawn_with_rules urxvtcd -name ncmpcpp -e ncmpcpp -- 2.39.2