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

Sway not reacting to scroll wheel inputs #8480

Open
Set2Minecraft opened this issue Nov 27, 2024 · 2 comments
Open

Sway not reacting to scroll wheel inputs #8480

Set2Minecraft opened this issue Nov 27, 2024 · 2 comments
Labels
enhancement New feature or incremental improvement

Comments

@Set2Minecraft
Copy link

Sway Version: 1.10

Goal: To be able to scroll workspaces by pressing alt + scrolling the mouse wheel

bindsym $mod+button[4-5] workspace next ( or prev )

This is doing nothing for some reason, nor is it throwing an error, in my head it should be working

workspace next ( or prev ) work as expected so I am not sure why the command is not being called

I have also tried getting an output from mouse inputs in general from sway, so something is being weird

@Set2Minecraft Set2Minecraft added the bug Not working as intended label Nov 27, 2024
@Nefsen402 Nefsen402 added enhancement New feature or incremental improvement and removed bug Not working as intended labels Nov 27, 2024
@Nefsen402
Copy link
Member

This is not a bug. This is not intended behavior as i3 doesn't have it. Anyways, a scroll feature for workspaces doesn't really make much sense because workspaces don't have a defined order. What would it mean to scroll to the "next" workspace? Note that the default config uses numbers to assign names to workspaces, but the value of these numbers doesn't mean much. Some users prefer to use letters to denote workspaces.

@Set2Minecraft
Copy link
Author

Nefsen, workspaces are ordered in the order they are made in the configuration file,
workspace 1
workspace 2
workspace 3

if you are on workspace 2 and do workspace next, sway will goto the next open workspace, If there is no currently open workspace it will do nothing. If workspace 1 was open it will roll around to workspace 1. I know this because I have both

bindgesture swipe:3:left workspace next
bindgesture swipe:3:left workspace prev

bindgesture documentation is found at 'man 5 sway'

the configs above are verbatim to my config file

for use on my touchpad. You are correct that the numbers of a workspace does not mean the order. The order of workspaces is based on the placement on the configuration file. ( with first as first and last as last )

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

No branches or pull requests

2 participants