summaryrefslogtreecommitdiff
path: root/river/init
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-24 11:18:01 -0600
committerzachir <zachir@librem.one>2023-02-24 11:18:01 -0600
commitf84ec770ae64100ec2d98e07b615b8ac04e7387e (patch)
treed0608b8167f494244a58dbb3801666286e2e5bc1 /river/init
parenta67128f4ce8b1def8164b645b490d1f4bba73b1f (diff)
add basic river scratchpads
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