From f84ec770ae64100ec2d98e07b615b8ac04e7387e Mon Sep 17 00:00:00 2001
From: zachir <zachir@librem.one>
Date: Fri, 24 Feb 2023 11:18:01 -0600
Subject: add basic river scratchpads

---
 river/init | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

(limited to 'river/init')

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
-- 
cgit v1.2.3