ErikReider / SwayNotificationCenter

A simple GTK based notification daemon for SwayWM
GNU General Public License v3.0
1.41k stars 63 forks source link

[Feature] Ability to toggle the full-screen coverage of the `swaync-control-center` layer (#21) #486

Closed iamhrigved closed 1 month ago

iamhrigved commented 1 month ago

Problem

I have set layerrule = blur, swaync-control-center which should blur the full layer of the control center when it is visible. Now, since the layer covers the full screen, everything on my screen blurs, which I clearly do not want.

Note: See #21

Proposed solution

Probably an option like this in the config would be fine.

{
  "properties": {
    "control-center-close-on-click": {
      "type": "boolean",
      "description": "Wether or not to close the control center when clicking outside it",
      "default": true
    }
  }
}

Additional context

Image Demo: image

Output of hyprctl layers:

Monitor VGA-1:
    Layer level 0 (background):
        Layer 62cfe7f9a320: xywh: 0 0 1920 1080, namespace: swww-daemon
    Layer level 1 (bottom):
        Layer 62cfe7f836b0: xywh: 0 0 1920 37, namespace: waybar
    Layer level 2 (top):
    Layer level 3 (overlay):
        Layer 62cfe8005500: xywh: 0 37 1920 1043, namespace: swaync-control-center
ErikReider commented 1 month ago

Not related to swaync. Hyprland has a ignore transparent feature for the blur which fixes this. I don't use it myself so no clue what it's called

iamhrigved commented 1 month ago

Thanks! There is a ignorezero rule.

layerrule = ignorezero, swaync-control-center