Commit graph

124 commits

Author SHA1 Message Date
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
Skia
1234264d75 Merge branch 'workspaces_groups' 2023-01-16 11:27:38 +01:00
Skia
e8fc73c5da Merge branch 'workspaces_groups' into 'master'
Workspaces groups

This feature brings a lot of new possibilities.

A workspace group is group of ten workspaces inside a decimal range (ex: from 10 to 19).
It introduces `relative` and `absolute` scopes.

For a move or a focus, if the target index is only one digit it will focus the wanted workspace relative to the current group focused.

But if the target index is above 9, it will directly focus the workspace inside the group if it is already opened, if not, it will open the group on the current screen.

Example 1: I'm focused on 21. If I do `swaysome focus 5` it's going to focus the workspace 25 on the same output than the other 20s.

Example 2: I'm focused on 21. If I do `swaysome focus 35` it's going to focus the workspace 35. If there is no 30s opened yet, it's going to open it on my current screen, but I already have 32 opened on another screen, so it's going to open the workspace 35 on it.


It also brings the `next-group` and `prev-group` features to switch focus from 21 to 31 or 21 to 11 for example.

There is the `focus-group` action that allows you to directly focus a specified group and so creating multiple workspace groups on one output (For example, 20s for work and 30s for private stuff).

There is one breaking behavior: I had to edit the `init` function to begin from 10 and not from 1.

So with `swaysome init 1`, a triple screen is now initialized like this: 11, 21, 31 instead of 1, 11, 21. 

See merge request hyask/swaysome!6
2023-01-16 10:26:23 +00:00
Skia
0566cf106e README: fix '{next,prev}-output' and add 'Breaking changes' section 2023-01-16 11:15:01 +01:00
Skia
5380131ee9 Fix 'move_container_to_next_or_prev_output' and 'current_output_index' 2023-01-16 11:11:03 +01:00
Skia
29a0afe619 Merge branch 'cli_parser_argument_types' into 'master'
Cli parser argument types

Just a little stronger typing on the CLI arguments 

See merge request hyask/swaysome!5
2023-01-13 16:09:43 +00:00
Skia
dfb6e79a3a Merge branch 'rearrange_workspaces' into 'master'
Rearrange workspaces

Based of the args parser rework, I added a feature to rearrange the missplaced workspaces.
It is useful when you unplug a screen, create a workspace then plug the screen back.
In this scenario, the screen won't move back to the correct screen when the screen is plugged back.
I don't know if there could be a way to fix this behavior instead of creating a feature to repair it each time.
Let me know what you think 

See merge request hyask/swaysome!4
2023-01-13 16:08:40 +00:00
Nabos
1c8ab4246a Fix minimum output index 2022-12-23 09:59:06 +01:00
Nabos
1334bde4bd Updated Readme 2022-12-23 09:25:13 +01:00
Nabos
a0dc360e37 Removed debug print 2022-12-23 09:10:58 +01:00
Skia
997f50c759 Merge branch 'Renner0E-master-patch-46524' into 'master'
readme: install option for arch

 

See merge request hyask/swaysome!8
2022-11-30 08:55:13 +00:00
Renner0E
b57fb3d7b2 readme: install option for arch 2022-11-29 17:00:32 +00:00
Skia
d700e562ce pkgbuild: set an obviously dummy version number
This is to show that it isn't used and need no bump upon new release.
Was discussed on https://gitlab.com/hyask/swaysome/-/merge_requests/7
2022-11-29 10:16:51 +01:00
Skia
25b92a7d26 Merge branch 'AUR' into 'master'
added PKGBUILD for AUR

This is my first merge request and PKGBUILD for the AUR. 

See merge request hyask/swaysome!7
2022-11-29 09:12:26 +00:00
renner0e
685c75d889 added PKGBUILD for AUR 2022-11-14 16:42:03 +01:00
Nabos
4620e8ab2c Fix focus to group when already existing group 2022-08-25 15:25:32 +02:00
Nabos
4ec989ed72 Fix focus to group when no existing workspace 2022-08-23 15:14:19 +02:00
Nabos
72c34cb5e5 Fix focus next/prev group 2022-08-17 14:14:48 +02:00
Nabos
b6f81aa7bb Finished workspace groups 2022-08-17 11:17:47 +02:00
Nabos
286760ade6 Added Groups 2022-08-11 17:36:34 +02:00
Nabos
dd848dfe04 Strongly typed workspace indexes and output indexes 2022-08-05 12:58:39 +02:00
Nabos
6fe7ca7bc3 Check for screen number 2022-08-05 12:56:00 +02:00
Skia
f6278fcef2 Merge branch 'cli_parser_rework' into 'master'
Reworked argument parsing

Using Clap struct parser for cleaner and safer argument parsing. 

See merge request hyask/swaysome!3
2022-08-03 22:18:28 +00:00
Nabos
b39b51ad58 Added a rearrange workspaces feature 2022-08-03 16:05:38 +02:00
Nabos
90e1e46fb2 Reworked argument parsing 2022-08-03 16:04:56 +02:00
Skia
d57d98697b Release 1.1.5 2022-05-23 01:22:42 +02:00
Skia
0d19f3f651 Merge branch '4-workaround-missing-focused-field' into 'master'
Fix #4: Add workaround for missing `focused` property in outputs

If there is an inactive input, then the `focused` property may be missing in sway's response to a `get_output` message.
This fix uses a feature of serde where default values for missing fields can be defined.
Here, the `Default::default` for booleans is used, which is `false`.

Closes #4

See merge request hyask/swaysome!1
2022-05-22 23:20:56 +00:00
Daniel Albert
2497f0519f Fix #4: Add workaround for missing focused property in outputs
If there is an inactive input, then the `focused` property may be missing in sway's response to a `get_output` message.
This fix uses a feature of serde where default values for missing fields can be defined.
Here, the `Default::default` for booleans is used, which is `false`.
2022-05-22 21:15:00 +02:00
Skia
06eb9d29c2 Release 1.1.4 2022-04-12 23:54:44 +02:00
Skia
1e6986558d Fix underflow in 'prev_output' calculation 2022-04-12 23:53:58 +02:00
Skia
465a4aff84 Fix all cargo clippy reports 2022-04-12 23:53:27 +02:00
Skia
9af265efbe Use clap's 'crate_version' macro to avoid further mess 2022-04-12 23:33:17 +02:00
Skia
80b791fa2d Bump dependencies and release 1.1.3 2022-04-11 10:25:33 +02:00
Skia
57272671ed Always sort lists of objects returned by sway
Fixes #2
2021-11-07 00:54:32 +01:00
Skia
aa2a232320 Use more strongly typed JSON for Output and Workspace 2021-11-07 00:53:16 +01:00
Skia
ae9eb161fe Release 1.1.2
New repository, homepage, install instruction, etc...
No code change.
2021-10-16 14:15:14 +02:00
Skia
8054542664 Update README with more up-to-date install instructions 2021-10-16 14:13:33 +02:00
Skia
3609786b7b Cargo: add some missing metadata 2021-10-16 13:42:03 +02:00
Skia
7be68bd830 Add .gitlab-ci.yml 2021-10-16 13:35:14 +02:00
Skia
6f72380643 Release 1.1.1
Fix crash with disabled outputs
2021-10-15 10:21:02 +02:00
Skia
81fb306aec init: ignore disabled outputs 2021-10-15 10:14:44 +02:00
Skia
780e54abd4 Release 1.1.0
Many code improvements, plus add compatibility with sworkstyle.
2021-09-07 17:13:40 +02:00
Skia
ee9750fc57 Use 'workspace number' feature of sway
This allows compatibility with e.g. `sworkstyle`, as we don't rely on
workspace names any more.
2021-09-07 17:13:40 +02:00
Skia
25c7a2cc62 cargo fmt 2021-09-07 17:13:40 +02:00
Skia
b9d67f5975 Clean build warnings and improve log output 2021-09-07 17:13:40 +02:00