hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.72k stars 838 forks source link

Add nofocus to layerrules #6059

Open id3v1669 opened 4 months ago

id3v1669 commented 4 months ago

Description

Feature

Create a layer rule that allows to make a layer non-interactive for user

Usage

layerrule = nofocus,namespace

Why

Tried creating non-interactive overlay widget as part of my bar configuration, but ran into a problem. I wanted widget to be visible all the time and to be on-top of other windows, as widget is non-interactive and some locations where I want to place it are meant to be used within other apps. I wish I could make layer non-interactive for cursor so I could interact with primary windows below widget even without hiding it.

vaxerski commented 4 months ago

if it's your own app, set the surface's input area to an empty region

id3v1669 commented 4 months ago

if it's your own app, set the surface's input area to an empty region

No, I was trying to use eww for widgets.