XPOINTERBARRIER(1)
π XPOINTERBARRIER π
okay so bestie, welcome to the xpointerbarrier page β it's a General Commands Manual situation, section 1 ofc, and honestly it's giving "tiny tool, huge main character energy." Let's get into it π«Ά
β¨ SYNOPSIS β¨
xpointerbarrier top left right bottom | -k [-v]
π DESCRIPTION π
So what does this thing actually do? It creates four pointer barriers around each XRandR screen β yes, four, one for each side β which, and I cannot stress this enough, effectively jails your mouse pointer to one physical screen. Prison. For your cursor. π
And when I say barriers, I mean these are barriers that cannot be passed. Like, at all. So if you wanna get your pointer onto another screen, you need a tool that calls XWarpPointer(3) β that's the whole vibe. Some window managers are sweeties and do this for you already, iykyk. π§
xpointerbarrier will also monitor changes to the screen layout and adapt to newly connected screens. New monitor just dropped? It's already on it. Obsessed. β¨
β οΈ big one: xpointerbarrier must remain running for the barriers to stay alive. The literal second the program exits, the barriers disappear. Poof. Gone. So don't be closing it, bestie π
The options are as follows:
πΈ OPTIONS πΈ
top left right bottomβ these four spec the insets of the barriers on each screen, in pixels. You'll usually want to configure this so it lines up with your window decorations when you're using a tiling window manager. Matchy-matchy, slay. π-kβ you can give this flag instead of specifying the insets explicitly. When you do,xpointerbarrierreads the special property_KATRIA_INSETSfrom the root window. Fancy, right?katriawm(1)stores precalculated insets right there for you. π-vβ enables verbose output. super useful. and heads up: it must be the last argument. last. final. no notes. β
π¦ SIGNALS π¦
When the process receives SIGUSR1, it toggles its "active" state β meaning if there are currently active barriers, they get destroyed; otherwise, barriers get created. On/off. Off/on. A little toggle moment. π₯
π ENVIRONMENT π
DISPLAYβ the X11 display to connect to. that's it, that's the whole env section π
π LICENSE π
xpointerbarrier is released under the MIT license. See the accompanying LICENSE file for the deets. π
π°οΈ HISTORY π°οΈ
xpointerbarrier was originally written by Peter Hofmann. The project was started in December 2015. vintage. iconic. π
π SEE ALSO π
katriawm(1). that's the one. go read it. π«Ά
and that's the page!! this build is from the Debian fam, dated 2025-08-04 β barrier girls, we stay safe and we stay jailed πβ¨π
π¦ where this page comes from
- nixos 26.05: xpointerbarrier 25.08
- nixpkgs unstable: xpointerbarrier 25.08
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms