The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Scrolling trough workspaces

asked Dec 2 '15

luytsm gravatar image

I want to scroll through my open workspaces.

This is possible when hovering over the i3-bar

I want to enable this feature when i press Ctrl+ScrollUp or ScrollDown. Is it possible to add something like this in my i3 config file.

2 answers

Sort by » oldest newest most voted
0

answered Dec 15 '15

luytsm gravatar image

updated Dec 15 '15

I've finally got back to this issue. The following i3 bindsym are the answer to my question.

bindsym --whole-window $mod+button4 workspace next_on_output
bindsym --whole-window $mod+button5 workspace prev_on_output

The problem was i was use MOUSE instead of BUTTON, which i3 didn't see as a wrong key or unknow key. This will only work when a windows is active on the workspace.

Comments

Please note my comment below. This only works when there is a window on the workspace. For empty workspaces, this will work only once #2097 is implemented (patch is pending) and then starting with i3 4.12.

Airblader gravatar imageAirblader (Dec 15 '15)edit

The patch to make it work on empty workspaces has been merged now.

Airblader gravatar imageAirblader (Dec 15 '15)edit
0

answered Dec 2 '15

Airblader gravatar image

updated Dec 2 '15

Just bind those keys to "workspace next" and "workspace prev".

You may want to use "next_on_output" and "prev_on_output" to fully mirror the i3bar behavior.

Comments

bindsym --whole-window $mod+mouse4 workspace next_on_output This keybind is not working. What am I doing wrong?

luytsm gravatar imageluytsm (Dec 3 '15)edit

It works fine for me. Make sure you are running the latest version of i3 (4.11, run i3 --version to find out). Also note that the binding only works on a window – it won't work when the mouse is on an empty workspace.

Airblader gravatar imageAirblader (Dec 3 '15)edit

I've filed a feature request to make this work on the root window as well. It has been accepted, but it needs to be implemented first: https://github.com/i3/i3/issues/2097

Airblader gravatar imageAirblader (Dec 7 '15)edit

Question Tools

Stats

Asked: Dec 2 '15

Seen: 140 times

Last updated: Dec 15