ErikReider / SwayNotificationCenter

A simple GTK based notification daemon for SwayWM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] slurp output seems captured when running command

desdic opened this issue · comments

Hi,

I tried making a screenshot button like

    "buttons-grid": {
      "actions": [
        {
          "label": "screenshot",
          "command": "/sbin/grim -g \"$(/sbin/slurp)\" - | /sbin/swappy -f -"
        },

and without slurp it works but it seems that the output from slurp is captured somehow because the process is running (and hangs due to waiting for the user to choose a region) but its never output. If running it via hyprland it works

Desktop (please complete the following information):

  • OS: Arch / Hyprland

You need to use a script for that. And you also need to close the control center after clicking on the screenshot button. Without it, slurp just hangs.
you could try doing something like this.

    {
      "label": "screenshot",
      "command": "sh -c '/path/to/script/screenshot & swaync-client -cp'",
    },

You need to use a script for that. And you also need to close the control center after clicking on the screenshot button. Without it, slurp just hangs. you could try doing something like this.

    {
      "label": "screenshot",
      "command": "sh -c '/path/to/script/screenshot & swaync-client -cp'",
    },

this works perfectly, thanks!