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

[Suggestion] App switcher #160

Open
System64fumo opened this issue Oct 9, 2024 · 16 comments
Open

[Suggestion] App switcher #160

System64fumo opened this issue Oct 9, 2024 · 16 comments

Comments

@System64fumo
Copy link

I would love to see something like an app switcher like the ones found on mobile oses.

Example




Desired behavior

  • Swipe up (From the bottom edge) to enter the switcher, Cannot enter switcher unless there are 2 or more workspaces.
  • Tap on a workspace to exit the switcher.
  • Ability to scroll/slide between workspaces.
  • Swipe up on a toplevel to close it
  • Swipe down on a workspace to close every toplevel in it (Optional)

Differences from hyprexpo

Hyprexpo has a static grid, This should be dynamic & scrollable.
Hyprexpo shows the wallpaper in every workspace, This should only show the toplevels in a workspace.

Final thoughts

I understand that all of this might be too much to ask for and that you might not have the time nor motivation to work on such big of a task.
I'd happily donate if it motivates you or helps in any way.

@horriblename
Copy link
Owner

definitely out of scope for this project, but I'll think about it as a separate plugin

@System64fumo
Copy link
Author

Awesome!
Please keep me updated 🤙

@horriblename
Copy link
Owner

hyprspace might interest you

@System64fumo
Copy link
Author

@horriblename it does, Do you think you could possibly add touchscreen compatibility to it? (Ie make it compatible with hyprgrass?)

@horriblename
Copy link
Owner

can you elaborate? I haven't tried it but it does seem to have some basic touch support

@System64fumo
Copy link
Author

I've tried it but couldn't get it working with touch yet (known issue)
The switcher can be configured almost the way that i want
As for the touch gesture support
I would love for it to integrate with hyprgrass's edge swipe feature

In other words
I'd like it to behave like mobile OS-es do
Swipe up to trigger the switcher
Swipe left or right to switch workspaces

@horriblename
Copy link
Owner

horriblename commented Oct 27, 2024

I've put up a fix for touch screen crashing

  • switching workspace with hyprgrass gestures should just work in hyprspace

  • you can toggle hyprspace with their dispatcher, hence:

    # untested
    hyprgrass-bind = , edge:d:u, overview:toggle 
    
  • I might add another PR to get window dragging working with touch in hyprspace

@System64fumo
Copy link
Author

Awesome work!

Regarding the dispatcher though..
I was kind of hoping to avoid doing that
I was looking for something seemless (Like with a trackpad for instance)

@horriblename
Copy link
Owner

well it's not impossible... I just don't know if it's a good idea. I'll cook something up

@System64fumo
Copy link
Author

Likely a terrible idea

There are like 2 ways of going about doing this
1: Support this behavior from hyprspace (Copy bottom gesture code from hyprgrass to hyprspace)
2: Support this behavior from hyprgrass (Copy workspace preview code from hyprspace to hyprgrass)

@smathles
Copy link

smathles commented Nov 9, 2024

Keen to see where this goes. The lack of touchscreen functionality with hyprspace is a bit painful atm.

I get it though if it's not exactly the intended scope of hyprgrass though lol, wrong plugin.

@System64fumo
Copy link
Author

Yeah hope either the desired functionality gets added to hyprspace or horriblename starts their own plugin (Or adds support for this to hyprgrass)

@horriblename
Copy link
Owner

waiting for #174

TL;DR hyprgrass will be exposing hooks so that other plugins can have hyprgrass integration

@System64fumo
Copy link
Author

Oh that would be incredible!
Good work!!

@horriblename
Copy link
Owner

with #189 you can now emulate touchpad swipes. Not exactly the integration I promised, but it works pretty nicely with hyprspace.

the event hooks I talked about is currently being re-thought

@System64fumo
Copy link
Author

Whoops forgot to reply to this, Amazing work!

Bit offtopic but i've noticed you're looking for on screen keyboards?
Could i interest you with my own?
https://github.com/System64fumo/sysboard

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

No branches or pull requests

3 participants