ErikReider / SwayNotificationCenter

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

Update Waybar config in README.md #336

Closed kurtnettle closed 6 months ago

kurtnettle commented 7 months ago

Details: https://github.com/Alexays/Waybar/issues/1968

TLDR: clicks were getting registered at wrong location which made the Waybar unusable.

ErikReider commented 7 months ago

Weird issue, I'm not experiencing this issue at all...

Test my config and see if it works better for you:

  "custom/notification": {
    "tooltip": true,
    "format": "{icon}",
    "format-icons": {
      "notification": "",
      "none": "",
      "dnd-notification": "",
      "dnd-none": "",
      "inhibited-notification": "",
      "inhibited-none": "",
      "dnd-inhibited-notification": "",
      "dnd-inhibited-none": ""
    },
    "return-type": "json",
    "exec-if": "which swaync-client",
    "exec": "swaync-client -swb",
    "on-click": "swaync-client -t -sw",
    "on-click-right": "swaync-client -d -sw",
    "escape": true
  },
kurtnettle commented 7 months ago

Weird issue, I'm not experiencing this issue at all...

Test my config and see if it works better for you:

  "custom/notification": {
    "tooltip": true,
    "format": "{icon}",
    "format-icons": {
      "notification": "",
      "none": "",
      "dnd-notification": "",
      "dnd-none": "",
      "inhibited-notification": "",
      "inhibited-none": "",
      "dnd-inhibited-notification": "",
      "dnd-inhibited-none": ""
    },
    "return-type": "json",
    "exec-if": "which swaync-client",
    "exec": "swaync-client -swb",
    "on-click": "swaync-client -t -sw",
    "on-click-right": "swaync-client -d -sw",
    "escape": true
  },

I have tried your config (both on my setup and also with latest and default config of waybar and swaync) but it didn't solve my issue. I faced this issue yesterday when I copied the example from the swaync README. After a bit googling, I came to know that it's an issue with Waybar. Adding sleep 0.1 solves the issue on my end.

Tested with default config on:

waybar-git r3034.0a747dda-1 swaync-git v0.9.0.r30.g70eaa5b-1

update: added a screenrecording

ErikReider commented 7 months ago

What WM are you using? Sway?

kurtnettle commented 7 months ago

What WM are you using? Sway?

Hyprland (I hope the author of Hyprland doesn't find this)

ErikReider commented 7 months ago

Hyprland (I hope the author of Hyprland doesn't find this)

This could be a Hyprland issue. Try testing with Sway. If it's a Hyprland issue, we could add a note for Hyprland issues in the PR instead :)

kdb424 commented 6 months ago

Running on NixOS with Hyprland and used the config directly from the readme without issue. This could be fixed in a recent version of hyprland or machine specific.

ErikReider commented 6 months ago

Running on NixOS with Hyprland and used the config directly from the readme without issue. This could be fixed in a recent version of hyprland or machine specific.

Thanks for checking! I'll close this then