Commit graph

118 commits

Author SHA1 Message Date
Skia
3514b9cd5b Cargo.toml: Make sure master's version is different from anything released or packaged 2025-09-09 13:17:57 +02:00
Skia
a83c9d45aa tests: fix error message 2025-09-09 13:05:40 +02:00
Skia
11396b677e tests: make use of 'CARGO_BIN_EXE_swaysome'
Instead of hardcoding a relative and making assumptions, this makes sure
the tests are calling the right binary.
2025-09-09 13:02:10 +02:00
Skia
75806d081f tests: make sure sway's subprocesses are killed before killing sway
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.
2025-09-09 12:57:47 +02:00
Skia
351cb5dd66 Release version 2.3.0
* Added some tests, and discovered some bugs along the way
* Fixed those afformentioned bugs 🎉
* Some codebase rework, needed to add the afformentioned tests
2025-09-01 23:44:41 +02:00
Skia
3146c2f186 tests: make the race easier to win 2025-09-01 23:40:51 +02:00
Skia
4b205bf2e9 Merge branch 'skia/add_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.
2025-09-01 23:34:02 +02:00
Skia
eb2dc1de1d tests: add testing of the binary's integration with sway 2025-09-01 23:29:59 +02:00
Skia
f9a0c22e9b fix: Path::is_file can return 'false' sometimes for reasons™ 2025-09-01 23:20:03 +02:00
Skia
d6eb1b62a6 rename focus_to_{next,prev}_group functions 2025-04-13 14:58:42 +02:00
Skia
a8a80eb514 Simplifications and bugfixes discovered when writing tests 2025-04-13 14:58:42 +02:00
Skia
3f61dbda90 Add some integration tests 2025-04-13 14:58:42 +02:00
Skia
f7bcdf1296 lib: refactor SwaySome::new to also have SwaySome::new_from_socket
`SwaySome::new_from_socket` takes a socket path in argument.
This allows the tests to be able to build a SwaySome instance with a
custom socket path.
2024-11-04 18:03:17 +01:00
Skia
ffc73fd832 lib: add get_tree, useful for testing 2024-11-04 17:58:24 +01:00
Skia
ab32878de5 lib: remove useless headers 2024-11-04 17:57:59 +01:00
Skia
e5c61a8694 Split the whole thing into a lib and tiny main
This is how binaries are supposed to be done in Rust, to help with
integration testing. Guess what's coming?
2024-11-02 19:46:34 +01:00
Skia
191a5ab001 man: small phrasing improvement 2024-11-02 19:46:34 +01:00
Skia
bc80f6a650 Release 2.1.2 - one bugfix and some doc 2024-10-15 17:25:13 +02:00
Skia
c5930274e5 Correctly wrap around when changing workspace group
Fix #19
2024-10-12 15:35:11 +01:00
Skia
df9b26335f Merge branch 'void' into 'master'
README: add instructions to install on Void Linux

Added in https://github.com/void-linux/void-packages/pull/49049 

See merge request hyask/swaysome!13
2024-07-29 07:59:52 +00:00
Luca Matei Pintilie
41227bac8b
README: add instructions to install on Void Linux 2024-07-26 19:11:19 +02:00
Skia
1f8ccb0207 Release 2.1.1 - documentation update only 2024-02-23 11:21:32 +01:00
Skia
a399d827de Greatly improve the man page 2024-02-16 17:07:12 +01:00
Skia
83c454cd6a Add manpage 2024-01-29 16:54:10 +01:00
Skia
f336a437c2 Improve README and put default config in a separate file 2024-01-29 16:54:10 +01:00
Skia
b36ba07d06 Release 2.1.0 2023-11-30 16:18:38 +01:00
Skia
5f2cd2b300 README: add a link to the Matrix room 2023-11-27 11:27:35 +01:00
Skia
aa3b47fbad get_current_*: don't use outdated cache is these functions
Fixes https://gitlab.com/hyask/swaysome/-/issues/18
Thanks a lot @mahieujeremy for reporting that and providing a fix so quickly!
2023-11-27 11:12:33 +01:00
Skia
9da99893c4 Improve documentation and default config 2023-11-17 17:56:17 +01:00
Skia
36c1ef68da Cargo: bump all dependencies 2023-11-17 17:55:48 +01:00
Skia
3ccf1d6eda Add WorkspaceGroup{Next,Prev}Output command 2023-11-16 15:20:54 +01:00
Skia
90ec4a2566 Rework everything to have a global SwaySome object with methods in it
This allows easily keeping state across the various function calls.
2023-11-14 09:44:36 +01:00
Skia
99a99648b1 simplify clap structures 2023-11-13 15:52:39 +01:00
Skia
6d8c19e8a7 cargo fmt 2023-11-13 15:42:25 +01:00
Skia
6d26286583 Improve socket discovery, handling, and logging
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
2023-11-07 08:36:10 +02:00
Skia
cdd5a24dc6 Merge branch 'master' into 'master'
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
2023-06-06 08:41:39 +00:00
LluisE
91f697cb42 Feature MAX_GROUP_WS constant instead of hardcoded 10 2023-06-05 20:37:19 +02:00
Skia
c24d02e284 Merge branch 'master' into 'master'
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
2023-05-02 08:37:40 +00:00
Andrei S
05ca3b8f4a Note about (un)bindcode or (un)bindsym and order numbering 2023-04-27 12:02:41 +00:00
Skia
9772931af9 get_output: always filter out inactive outputs 2023-03-09 23:50:02 +01:00
Skia
7b3de58cd9 README: improved description to include workspace groups 2023-03-03 17:50:21 +01:00
Skia
7daf8ffd77 Release 2.0.0 2023-03-03 17:13:46 +01:00
Nabos
bc8ac73ddb Adding Nabos to authors 2023-03-03 16:12:49 +01:00
Nabos
4e7eed7b99 Merge branch 'move_to_group' into 'master'
Added move-to-group

 

See merge request hyask/swaysome!10
2023-03-03 14:41:51 +00:00
Nabos
cf86c9bd22 Added move-to-group 2023-03-03 14:41:51 +00:00
Skia
2541b0aa2c README: add a mention about '$PATH' issues (#11) 2023-03-02 12:49:10 +01:00
Skia
faf309ce81 Output: set a default for 'active' instead of failing 2023-02-07 11:32:38 +01:00
Skia
13b9687c0a README: small form improvements 2023-02-07 11:16:37 +01:00
Nabos
dd22264536 Merge branch 'fix_group_index' into 'master'
Group index fix

Check group index lower limit 

See merge request hyask/swaysome!9
2023-01-17 14:50:02 +00:00
Nabos
0db1faa1c5 Check group index lower limit 2023-01-17 15:47:27 +01:00