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

How to recreate Windows 10-alike Alt-Tab switching with three fingers? #165

Closed
emvaized opened this issue Apr 11, 2020 · 8 comments
Closed

Comments

@emvaized
Copy link

In Windows 10, task switcher opens on three-finger swipe start, and when you continue movement, you scroll through tasks, and select one on fingers release.

Is is possible to implement something similar using fusuma? If it is, maybe some example should be provided in the documentation (which is very great, by the way - thanks!).

@emvaized emvaized changed the title Hot to recreate Windows 10-alike Alt-Tab switching with three fingers? How to recreate Windows 10-alike Alt-Tab switching with three fingers? Apr 11, 2020
@iberianpig
Copy link
Owner

iberianpig commented Apr 12, 2020

I haven't used Windows in about ten years, so if I'll try it 😄

I think it's still going to be challenging to achieve that function.
Many problems need to be solved to make this happen.

  • Implementation of the three-finger scrolling gesture
  • Recognition of gesture combinations
    • 3-finger scroll up → ALT+TAB and hold ALT
    • Three fingers left/right scroll → SHIFT+TAB or TAB
    • End the three-fingered scrolling → release TAB.
  • Integration with WindowManager
    • Fusuma needs to know about the UI
    • Avoid keeping holding ALT when another action finishes the task switching.

@iberianpig iberianpig added this to Low priority in Issues Apr 12, 2020
@emvaized
Copy link
Author

emvaized commented Apr 12, 2020

@iberianpig
Here's little gif I found with google to illustrate the principle :)
Left-Right

@emvaized
Copy link
Author

@iberianpig
Oh, I see now - it's not possible yet. Well, I hope that some day this feature will be implemented, as it's actually very useful.

Then, I want to ask one more little question, for the matter of not opening new issue - I heard it is possible to regulate screen volume & brightness with fusuma the same way? E.g. fingers swipe regulate volume dynamically - the more far you swipe, the more volume/brightness increased.

It's not possible yet as well? Thanks.

@iberianpig
Copy link
Owner

Yes, Fusuma can trigger volume up/down
or brightness up/down keys continuously.
Set a short values like 0.3 to threshold and interval of gestures.

@emvaized
Copy link
Author

emvaized commented Apr 12, 2020

@iberianpig
I see.
So, for example, I have an Alt+F10 shortcut for increasing volume.
So, config.yml setting should look somewhat like that?.. (code below triggers command only once in my case, not continuously)

 4:
    left:
      command: "xdotool keydown alt; xdotool key F9; sleep 0.3; xdotool keyup alt" 
    right:
      command: "xdotool keydown alt; xdotool key F10; sleep 0.3; xdotool keyup alt" 

@emvaized
Copy link
Author

@iberianpig
I understood. You were talking about those:

threshold:
  swipe: 0.3
interval:
  swipe: 0.3

It works now! Thanks a lot.

@stale
Copy link

stale bot commented Jun 12, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 12, 2020
@stale stale bot closed this as completed Jun 20, 2020
Issues automation moved this from Low priority to Closed Jun 20, 2020
@iberianpig
Copy link
Owner

ref: https://github.com/iberianpig/fusuma/wiki/3-fingers-Alt-Tab-Switcher(Windows-Style)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Issues
  
Closed
Development

No branches or pull requests

2 participants