hyprland-community / hyprland-autoname-workspaces

Hyprland autoname workspaces 🪟 [maintainers=@cyrinux,@maximbaz]
ISC License
199 stars 7 forks source link

Custom Workspace Names #79

Closed donovanglover closed 1 year ago

donovanglover commented 1 year ago

Is your feature request related to a problem? Please describe. I prefer using kanji for the workspace names over the usual numbers.

Describe the solution you'd like It would be nice if there was a way to map workspace ids to text so any identifier can be used for workspaces. This would be similar to waybar.

Describe alternatives you've considered I tried using named workspaces in Hyprland (name: 一, etc.) but hyprland-autoname-workspaces only uses the id.

Additional context hyprland-autoname-workspaces could add support for named workspaces so the name of the workspace is used instead of the id, however this would break scripts that identify the workspace by its name. Simply adding a new config option to src/renamer/mod.rs seems like the best solution.

cyrinux commented 1 year ago

Thanks for the idea, I will try to implement this soon

cyrinux commented 1 year ago

@donovanglover the feature is add on the main branch, can you please try ? - You just add to define add an id->name mapping in the [workspaces_name] sections, and use the {name} placeholder in the workspaces formatter. Look the config.toml.example if needed.

donovanglover commented 1 year ago

@cyrinux It works great, thank you! If there's going to be another release soon, I can update https://github.com/NixOS/nixpkgs/pull/236515

cyrinux commented 1 year ago

Cool! I will do a release as soon as we can do a release of hyprland-rs. In theory I can cut a tag right now but I will no be able to publish the crate as I actually use the master branch of hyprland-rs.

cyrinux commented 1 year ago

@donovanglover if you have any idea about https://github.com/NixOS/nix/issues/8479 this can unlock the release then 🥹

cyrinux commented 1 year ago

@donovanglover I release the version 1.1.0, if you can update nixos package 🙏🏻