Hello,
I was wondering if it was possible to launch some applications at startup and define where they will spawn. So that you get the same layout every time you boot.
Hope this is possbile!
Thanks in advance.
Not yet.
This is a duplicate of #259.
It is!
Though it _may_ be possible to use exported world states and JSON trees, a simple script with one-shot rules will suffice.
#!/bin/sh
bspc desktop -f ^1
urxvtc &
sleep 0.05
#bash session persists after lynx closes
bspc rule -a URxvt -o split_dir="east" split_ratio="0.5" && urxvtc -g 53x8 -e /bin/bash -c "lynx && /bin/bash" &
sleep 0.05
bspc rule -a URxvt -o split_dir="north" split_ratio="0.489" locked=on && urxvtc -e toxic &
sleep 0.05
bspc node -f west
bspc rule -a URxvt -o split_dir="south" split_ratio="0.858" state=pseudo_tiled && urxvtc -g 53x8 -e tty-clock -bscC3 &
sleep 0.05
#bspc desktop -f ^2
bspc rule -a Firefox -o desktop=^2 state=floating && firefox &
There are a few drawbacks to this method
You may also need to customize split_ratio to account for your particular resolution, window gap, border width, and padding.
Fixed by e8aa679.
could you explain how this actually makes startup workspaces possible?
An example is given in the commit message.
@baskerville can you explain a bit the commit message? I'm sorry but I don't think I understood it completely.
I agree, some explanation would be nice.
Apologies for being a noob, but how do I attach a new process to one of these receptacles?
See examples/receptacles.
Most helpful comment
See
examples/receptacles.