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 2015-12-02 14:28:21 +0000

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.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2015-12-15 14:09:50 +0000

luytsm gravatar image

updated 2015-12-15 15:45:37 +0000

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.

edit flag offensive delete link more

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 ( 2015-12-15 14:37:37 +0000 )edit

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

Airblader gravatar imageAirblader ( 2015-12-15 18:48:40 +0000 )edit
0

answered 2015-12-02 14:57:53 +0000

Airblader gravatar image

updated 2015-12-02 15:00:24 +0000

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.

edit flag offensive delete link more

Comments

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

luytsm gravatar imageluytsm ( 2015-12-03 19:39:39 +0000 )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 ( 2015-12-03 20:32:27 +0000 )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 ( 2015-12-07 07:56:35 +0000 )edit

Question Tools

Stats

Asked: 2015-12-02 14:28:21 +0000

Seen: 140 times

Last updated: Dec 15