• variety4me@lemmy.zipOP
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 month ago

    Mod+O { spawn "sh" "-c" "niri msg action toggle-overview; ~/.config/waybar/scripts/toggle.sh"; }

    the toggle script kills or launched waybar process

    • juipeltje@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 month ago

      That’s a clever way of doing it, hadn’t thought about that. Btw, did you know waybar supports toggling by sending it a SIGUSR1 Signal? It might simplify your script.

    • moonlight@fedia.io
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      Thanks, that makes sense. I was hoping you could have it “reveal” the bar as you zoom out into the overview. I assume this would basically make it pop in, although I suppose the bar could be set to fade in which would look nice…