This fixes the tests when run within Debian's autopkgtest. Since there
were still some living child processes, autopkgtest was stuck waiting
for them forever.
* Added some tests, and discovered some bugs along the way
* Fixed those afformentioned bugs 🎉
* Some codebase rework, needed to add the afformentioned tests
This branch adds a whole bunch of rework and now has integration tests.
The coverage might not be perfect, but it's a pretty good start that
should give some confidence in case of any sort of rework.
Implement the following logic:
* first try SWAYSOCK
* if failed, then try I3SOCK, the legacy one coming from i3
* if failed, then we abort with an error
Added constant for maximum workspaces per group instead of hardcoded 10
Hello creators of swaysome.
I love this program, its quite nice, thank you for sharing it ^.^
However, I can't live with just 10 workspaces per group, I need more.
So, instead of having the base 10 hard-coded all around, I created a constant, which I named `MAX_GROUP_WS` due to my super creative naming skills. This way, anyone could change the groups naming and the limit of workspaces with just modifying a simple constant.
Examples:
```
MAX Naming
10 → 17, 27
100 → 107, 207
1000 → 1007, 2007
15 → 22, 37
```
On my local setup I use 100, so its easy to know which group I'm in, and I recommend others to either use 10 or 100. That said, nothing prevents you from using other bases, such as hexadecimal (16), or 69...
To keep backwards compatibility, and not break any setup, I kept the default as `10`.
If you like my change, feel free to merge it!
See merge request hyask/swaysome!12
Note about (un)bindcode or (un)bindsym and order numbering
Added a note about using either (un)bindcode or (un)bindsym and re-ordered numbering to use single digits instead of double digits in the README.
See merge request hyask/swaysome!11