summaryrefslogtreecommitdiff
path: root/river/init
diff options
context:
space:
mode:
Diffstat (limited to 'river/init')
-rwxr-xr-xriver/init23
1 files changed, 12 insertions, 11 deletions
diff --git a/river/init b/river/init
index f01b730..ebd3224 100755
--- a/river/init
+++ b/river/init
@@ -105,17 +105,18 @@ riverctl map normal $mod1 0 set-focused-tags $all_tags
riverctl map normal $mod1+Shift 0 set-view-tags $all_tags
# scratchpad tags
-riverctl map normal $mod1+Control z spawn "river_sp -n z"
-riverctl map normal $mod1+Control x spawn "river_sp -n x"
-riverctl map normal $mod1+Control c spawn "river_sp -n c"
-riverctl map normal $mod1+Control v spawn "river_sp -n v"
-riverctl map normal $mod1+Control b spawn "river_sp -n b"
-riverctl map normal $mod1+Control a spawn "river_sp -n a"
-riverctl map normal $mod1+Control s spawn "river_sp -n s"
-riverctl map normal $mod1+Control d spawn "river_sp -n d"
-riverctl map normal $mod1+Control f spawn "river_sp -n f"
-riverctl map normal $mod1+Control g spawn "river_sp -n g"
-riverctl map normal $mod1+Control q spawn "river_sp -n q"
+BINPATH="${XDG_CONFIG_HOME:-$HOME/.config}/river/sp"
+riverctl map normal $mod1+Control z spawn "$BINPATH/river_sp -n z"
+riverctl map normal $mod1+Control x spawn "$BINPATH/river_sp -n x"
+riverctl map normal $mod1+Control c spawn "$BINPATH/river_sp -n c"
+riverctl map normal $mod1+Control v spawn "$BINPATH/river_sp -n v"
+riverctl map normal $mod1+Control b spawn "$BINPATH/river_sp -n b"
+riverctl map normal $mod1+Control a spawn "$BINPATH/river_sp -n a"
+riverctl map normal $mod1+Control s spawn "$BINPATH/river_sp -n s"
+riverctl map normal $mod1+Control d spawn "$BINPATH/river_sp -n d"
+riverctl map normal $mod1+Control f spawn "$BINPATH/river_sp -n f"
+riverctl map normal $mod1+Control g spawn "$BINPATH/river_sp -n g"
+riverctl map normal $mod1+Control q spawn "$BINPATH/river_sp -n q"
# $mod1+Space to toggle float
riverctl map normal $mod1+Control Space toggle-float