4 ms·
Show HN: Script to simplify i3 scratchpad setup
Small convenience script that simplifies config of scratchpads for specific application in i3, given that you want your scratchpads to work the same way as I do.
The script lazily loads the target application on first toggle, then restart's them when necessary in case the window is accidentally closed.
- PbVrCt 1y agoI 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.