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

limit mouse in just one monitor

asked 2013-04-08 20:09:34 +0000

raoof gravatar image

hi and thank u for your great job on i3

I have another monitor but i don't want it to be in left or right side of my primary monitor i just want to have it in another workspace without extending the current one

how can I do this ?

thank u in advance

edit retag flag offensive close merge delete

Comments

Can you be more specific on _extending the current one_ part? i3 detects displays properly and assigns workspace per-monitor. If you are experiencing different behavior, please explain in detail what's happening.

MeanEYE gravatar imageMeanEYE ( 2013-04-08 20:17:51 +0000 )edit

it works fine but i just like to control monitor only with changing workspace not by moving mouse to the edge of the screen in another words I just want to stick mouse in the current workspace

raoof gravatar imageraoof ( 2013-04-08 20:27:38 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
3

answered 2013-04-09 08:22:56 +0000

updated 2013-04-09 08:33:27 +0000

As a start you can add focus_follows_mouse no to your config file. However, this will not restrict the mouse to the current workspace, but only make the focus stay right where it is regardless the mouse pointer position.

Update: The closest to the behaviour you want that I know of is the following: Adjust the vertical position of your favorite monitor relative to the second one using xrandr. Let us assume your primal monitor is on output HDMI1 and the secondary has a vertical resolution of e.g. 1080px. Then you can try the following command:

xrandr --output HDMI1 --pos 0x1080

This moves the HDMI1 monitor below the secondary one, so that the mouse cursor is practically banned to the primal monitor except for the upper right edge.

edit flag offensive delete link more

Comments

0x1080 put the ouput below the secondary one , but i use xrandr --output VGA1 --pos 1280x800 ( VGA1 is my secondary monitor ) and it goes to bottom right corner . thank u

raoof gravatar imageraoof ( 2013-04-09 11:52:50 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2013-04-08 20:09:34 +0000

Seen: 396 times

Last updated: Apr 09 '13