Lyr-7D1h / swayest_workstyle

Map workspace names to icons for Sway
MIT License
119 stars 18 forks source link

Pin certain workspaces to certain monitors #20

Closed it-is-wednesday closed 2 years ago

it-is-wednesday commented 2 years ago

I just found out that this configuration isn't possible with sworkstyle since it only works with workspace names, not workspace numbers:

workspace <name> output <outputs...>
           Specifies that workspace name should be shown on the specified outputs. Multiple outputs can be listed
           and the first available will be used. If the workspace gets placed on an output further down the list
           and an output that is higher on the list becomes available, the workspace will be moved to the higher
           priority output.

Now I'm aware that this is probably better solved at the Sway codebase, but:

  1. I don't want to open yet another feature request there
  2. sworkstyle is likely the only use case justifying this change
  3. I can write Rust, can't write C

I'll open a pull request soon, just wanted to hear your opinion

it-is-wednesday commented 2 years ago

Having spent a couple of days chasing my own tail, I realize that my problem was way too specific to consider.

The setup that I was using before sworkstyle was pinning all workspace 1-10 to my the big screen, and have a dedicated workspace named "Smallscreen" pinned to the small one. So I guess the feature I was aiming for is supporting renaming non-numeric workspaces as well.

This sounds like an annoying feature to add to sworkstyle, and I don't really need it; I just pinned the 10th workspace to the small screen and called it a day.

It's been a few dizzy days