Commit Graph
13 Commits
Author SHA1 Message Date
Asger WeirsøeandClaude fa1de7fe16 Add init --sync and --prune for incremental monitor setup
`init` planned every file on every run and refused if any of them
existed, so attaching a new monitor could not be configured without
--force — which reallocated global workspace numbers by i3's current
output order and renumbered the monitors already in use.

- allocate_global_starts() keeps the block each known output already
  holds and gives new outputs the lowest free block; blocks of inactive
  outputs stay reserved.
- read_allocations()/parse_allocation() read those blocks back out of
  the generated files (inverse of render_workspaces_for_output).
- --sync writes only the missing files, --prune drops configs for
  outputs that are gone and frees their numbers.
- Files without the auto-generated header are never written or
  deleted, --force included.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-11 12:58:05 +02:00
Asger Weirsøe f68b70c1da Fixed some bugs, updated how packages are handeled. Prepared on AUR publishing 2026-05-19 20:19:53 +02:00
generaldenmark 52feda8c10 Fixes problem if you have a number in your output name 2020-11-22 18:51:28 +01:00
generaldenmark 2ab92a9149 Updates readme to reflect the current state of the program, and also adds a future work in the readme :9 2020-11-13 20:22:31 +01:00
generaldenmark 2d01e2a214 Last release introduced a bug, where if you had a monitor in your config that was not active, it would error out the script and prevent screenchanges 2020-11-13 20:17:57 +01:00
generaldenmark 4daf458933 Removes the random regex, and just tries to match with what monitors are availble. (remember to update your config to match available outputs dummy) 2020-11-13 20:15:43 +01:00
Asger Geel Weirsøe 7725cf2684 Fixed bug with how the output is detected, and minor spelling fixes 2020-11-12 20:06:37 +01:00
Asger Geel Weirsøe 480c0edfe5 removes debug print 2020-09-15 20:04:16 +02:00
Asger Geel Weirsøe 6898757e70 adds extra monitors to the possible outputs 2020-09-15 20:01:32 +02:00
Asger Geel Weirsøe c7f28e4cdd Demos the move of active container to workspace based on mouse cursor 2020-09-05 11:18:25 +02:00
Asger Geel Weirsøe 3d045e5bbf fixes problems with installing the pacage with pip 2020-09-05 10:59:46 +02:00
Asger Geel Weirsøe 7fbf11e0d5 Fixes a problem with args parse and updates the readme 2020-09-05 10:26:59 +02:00
Asger Geel Weirsøe ddafd4c13c release v0.0.1 2020-09-05 10:15:39 +02:00