KZDKM / Hyprspace

Workspace overview plugin for Hyprland
GNU General Public License v2.0
523 stars 16 forks source link

Hyprspace and Hyprexpo on same gesture_finger #93

Open KAGEYAM4 opened 1 month ago

KAGEYAM4 commented 1 month ago

Currently hyprspace and hyprexpo can't be on same gesture_finger. Would it be possible if one of them is active the other gets disabled?

I was doing three finger swipe up for hyprspace and three finger swipe down for hyprexpo.

Like in KDE we have both type of overview on same gesture_finger.

myamusashi commented 1 month ago

https://github.com/horriblename/hyprgrass

KAGEYAM4 commented 1 month ago

@myamusashi i meant like this -->

  1. 3 finger swipe up to open hyprspace, 3 finger swipe down to close hyprspace
  2. 3 finger swipe down to open hyprexpo, 3 finger swipe up to close hyprexpo

In KDE both overview, desktop overview are on same finger ( 3 ) and uses the gesture like above.

In hyprland, this breaks, if i open hyprspace and now try to close it, it will instaed open hyprexpo.

myamusashi commented 1 month ago

Show me the keybind(but my laptop doesn't have a touch screen I don't know if I can help).

KAGEYAM4 commented 1 month ago
plugin {
    overview {
    onBottom = false
    reverseSwipe = true
    }

    hyprexpo {
    gesture_fingers = 3
    }
}
myamusashi commented 1 month ago

If you want the hacky way, you can use another plugin like the one I mentioned there, and use it like this

hyprgrass-bind = , <gesture_name>, <dispatcher>, <args>

KZDKM commented 4 weeks ago

This could be fixed when I added support for vertical layout so that hyprexpo and hyprspace has different swipe directions. But then you could no longer swipe across workspaces.

3 finger swipe up to open hyprspace, 3 finger swipe down to close hyprspace 3 finger swipe down to open hyprexpo, 3 finger swipe up to close hyprexpo

In KDE both overview, desktop overview are on same finger ( 3 ) and uses the gesture like above.

In hyprland, this breaks, if i open hyprspace and now try to close it, it will instaed open hyprexpo.

I could make hyprspace not consume the swipe event when its swiping at the opposite direction so that the swipe could be sent to hyprexpo but I dont know if hyprexpo would do the same. Both plugin would have to support this for it to work.

hyprgrass could be a workaround but I dont have experience with it so maybe try it for yourself