Launching Applications in Workspaces with matching label (continued).
You could easily modify .desktop files with sed using regex. Let’s say you always want applications belonging to personal
qube to open in 3rd workspace and switch to that workspace. Do this:
sed ~/.local/share/applications/org.qubes-os.com.*personal*.desktop -i -e 's/\(Exec=qvm-run\)\(.*\)/Exec=sh -c \"wmctrl -s 2;qvm-run\2\"/'
wmctrl -s 2
since Workspace indexes start at 0
To revert to original .desktop files:
qvm-appmenus --update --force personal
Other approach: adding custom feature to Qube for default workspace. Something like qvm-features qube custom-workspace workspacenumber
This is so simple that almost does not require any special custom tool or community guide. And no need for (discontinued) devilspie or any other weak dependency. Just leaving this here for anyone who needs it. I will spend time on more label (colors) and effects.