Repository navigation
Add 3-finger swipe gestures for workspace switching and overview - #90
Open
PushkarDesai-06 wants to merge 1 commit into
Open
PushkarDesai-06 wants to merge 1 commit into
PushkarDesai-06 wants to merge 1 commit into
Conversation
Swiping left or right with three fingers switches to the next or previous workspace, swiping up or down sends the Super key to toggle the overview. Each swipe fires once and the remaining touches are ignored until all fingers are released. Workspaces are switched with Super+Page_Up/Page_Down on Linux, Ctrl+Win+Left/Right on Windows and Ctrl+Left/Right on macOS. Closes Unrud#87
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #87
Implements the design spec from #87.
Changes
Gestures (
webdata/app/touchpad.mjs)Protocol
KeyWorkspacePrev/KeyWorkspaceNext(ids 18 and 19), appended beforeKeyLimitso existing ids don't change. No new command.Backends
Super+Page_Up/Super+Page_DownCtrl+Win+Left/Ctrl+Win+RightCtrl+Left/Ctrl+RightKeyToKeysymsreturns the keysyms of a key combination. X11 and portal press them in order and release them in reverse. Single keys go through the existing code paths.README
Super+Page_Up/Downto the workspace action they want.Testing
gofmt,go mod tidy, andgo vet/go build/go test -racefor all Linux tag sets in CI pass.Touchpad. Covered all swipe directions, firing once per swipe, short moves being ignored, the 3-finger tap, unchanged move and scroll, and no scrolling after a swipe.wevshowsKEY_LEFTMETAheld around Page_Up/Page_Down as expected.