FreeBSD support... Hyprshot just doesn't works in FreeBSD
I have installed Hyprshot with manual way and also all dependencies. But it just doesn't works.. Idk why
Also I haven't any output...
Does your Hyprland works fine in FreeBSD?
Does your Hyprland works fine in FreeBSD?
.. Nope. Waybar appears slow. When you switching workspaces which have, for example, 5 Nautilus file managers. It so laggy...
Also Hyprland from freebsd ports has a latest version.
My Hyprland works fine but no Hyprshot, same as OP`s issue... nothing happens.
First off - this a great utility, thanks for your work in creating it. I have stopped trying to use Hyprland on FreeBSD (a number of other problems make it impractical for the moment - but I'm checking back occasionally), but did a little troubleshooting on this issue, and found a couple of points:
First, the version of getopt in the FreeBSD base system is not the same as the GNU version. Hyprshot uses the GNU syntax.
As a quick workaround, you can install the misc/getopt port and modify the line in the args function to call /usr/local/bin/getopt. You could modify the code to choose the correct getopt based on the host operating system.
Second, the output of wc -m on FreeBSD is indented so that the conditional in checkRunning will never cause the script to exit - it simply keeps going round the loop and determining that <TAB>0 is not the same as 0! If you run Hyprshot from the terminal, you can just CTRL-C to stop it. I'd suggest a better approach is to rely on the exit status of pgrep, rather than trying to parse its output:
if ! pgrep -q slurp; then
pkill hyprpicker
exit
fi