Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for hiding empty workspaces between used workspaces #7

Open
Daniel-42-z opened this issue Jan 1, 2025 · 13 comments
Open
Labels
enhancement New feature or request

Comments

@Daniel-42-z
Copy link

Probably like most people switching from gnome, I don't care about workspace numbers and always put new windows to the right of the current workspace, so when I close all windows in a previous workspace I like that workspace to be completely hidden. The waybar workspaces module and hyprswitch both does this, but in hyprtasking all the empty workspaces will be shown which wastes a lot of screen space. Can you add an option in the config to hide all empty workspaces?

This is how hyprswitch looks like with workspace 1 and 3 used but 2 empty:
image

@raybbian
Copy link
Owner

raybbian commented Jan 1, 2025

Yeah definitely. How would you imagine the other screen space being used? Transparency?

@Daniel-42-z
Copy link
Author

Yeah definitely. How would you imagine the other screen space being used? Transparency?

Do you mean the empty workspaces between used ones? Maybe just not show them at all and only show workspaces that are being used.

@raybbian raybbian added the enhancement New feature or request label Jan 2, 2025
@raybbian
Copy link
Owner

raybbian commented Jan 3, 2025

er, I mean more of "what do I put on the screen right there instead of the workspace". just the background color?

@Daniel-42-z
Copy link
Author

Daniel-42-z commented Jan 3, 2025

er, I mean more of "what do I put on the screen right there instead of the workspace". just the background color?

Probably just don't put anything and move all non-empty workspaces after it one unit forward (that's how gnome does it). For example if workspace 1 and 3 are used, hyprtasking should display:
1 3 4
5 6 7
8 9 Empty

For the empty part probably display a wallpaper like how empty workspaces are currently shown

@ninetailedtori
Copy link

I mean once you get the background fixed up, or perhaps pulled from a .config/hyprtasking config file, you'd have a background for hyprtasking zoomout, and then you could just do what Daniel said, just omit the unused ones and sort the remaining workspaces chronologically (though you'll have to keep in mind multimonitor workspace binds too of course - perhaps using the vdesktop solution could potentially solve that trouble for multimonitor though?)

@raybbian
Copy link
Owner

raybbian commented Jan 9, 2025

Hey, I've just pushed a linear overview layout if you'd like to give that a try.

I also have plans to make another minimap style layout, similar to that of hyprswitch but with some additional quirks (e.g. grouping workspaces into columns, and moving between rows + cols, etc.)

@Daniel-42-z
Copy link
Author

Hey, I've just pushed a linear overview layout if you'd like to give that a try.

I also have plans to make another minimap style layout, similar to that of hyprswitch but with some additional quirks (e.g. grouping workspaces into columns, and moving between rows + cols, etc.)

Thanks, this is working as expected. However if I want to view lots of workspaces on a linear view the workspaces need to be very small and it will be hard to drag windows between them. Is there also a way to make the workspace line scrollable?

@ninetailedtori
Copy link

Hey, I've just pushed a linear overview layout if you'd like to give that a try.

I also have plans to make another minimap style layout, similar to that of hyprswitch but with some additional quirks (e.g. grouping workspaces into columns, and moving between rows + cols, etc.)

Given hyprexpo rn is hard crashing when I use the toggle feature to zoom back into a workspace, it almost feels like fate that I should shift it back to hyprtasking 😄

@raybbian
Copy link
Owner

raybbian commented Jan 9, 2025

Is there also a way to make the workspace line scrollable?

Yep, that should be a quick addition when I get to it

@raybbian
Copy link
Owner

raybbian commented Jan 9, 2025

Added scrolling 👍

@Daniel-42-z
Copy link
Author

Added scrolling 👍

I updated but scrolling scrolls the window I'm currently focused on instead of the workspace list. For more info, I scroll with touchpad and launch hyprtasking with fusuma's 3-finger swipe up.

@raybbian
Copy link
Owner

Hey, it should work with touchpad scrolling now.

@Daniel-42-z
Copy link
Author

Hey, it should work with touchpad scrolling now.

Just updated and it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants