Product Launch
anonymous
1 points
1 comments
Posted4 months agoActive4 months ago
Show HN: Script to simplify i3 scratchpad setup
github.comi3window managerproductivity
Discussion (1 comments)
Showing 1 comments
4 months ago
I set up scratchpads in River and otherwise use it as i3.
riverctl rule-add -title audio_term tags 1024
riverctl rule-add -title audio_term float
riverctl rule-add -title audio_term dimensions 700 500
riverctl spawn "ghostty --title=audio_term --gtk-tabs-location=hidden -e 'pulsemixer; exec bash'"
riverctl map normal Mod1 R spawn 'sh -c "riverctl toggle-focused-tags 1024; riverctl focus-view next"'
The example is from the config file, which is a bash script.1024 = 00000000000000000000010000000000 in binary, that is, river tag 11; The scratchpad lives in "workspace 11" when not toggled.
`exec bash` keeps the window open if the program is accidentally exited.