donovanglover / hyprnome

GNOME-like workspace switching in Hyprland.
https://donovan.is/hyprnome
GNU General Public License v3.0
151 stars 3 forks source link

Cycle only after empty workspace #109

Open Schweber opened 3 months ago

Schweber commented 3 months ago

Feature Request

Summary

I would like hyprnome to cycle only after an empty workspace. So let's say i'm on workspace 2 with a window open and i run hyprnome --newFlag, then an empty workspace 3 is created and switched to. If i then run hyprnome --newFlag again, it cycles back to workspace 1 (because it is already on the "rightmost" workspace and it is empty. So creating another empty workspace doesn't make sense and with --newFlag it is instructed to cycle to workspace 1 in this case).

Motivation

I could then bind this command without having separate binds for "i want to create a new workspace to the right" and "i want to cycle back to workspace 1 after reaching the last empty workspace".

Detailed Description

The present --cycle flag is very close. I guess it would be trivial to adapt its behaviour.

Priorities

Add a :+1: reaction to issues you find important.