1. 8

I added also linux and illumos tags as this solution will work the same way on them as on FreeBSD system.

  1.  

  2. 4

    This one is actually usable under almost every UNIX environment with X11. Pretty sure it could be easily managed to work with Wayland.

    I really miss that neat Pause key on Sun Workstations which actually paused the whole Solaris, leaving you to OpenFirmware console with simple debugger. You were able to get back into running system like nothing ever happened.

    1. 1

      I really miss that neat Pause key on Sun Workstations which actually paused the whole Solaris, leaving you to OpenFirmware console with simple debugger. You were able to get back into running system like nothing ever happened.

      Nice! Did not know that :)

      1. 1

        PPC Mac’s had Open Firmware. I wonder if they can do that.

      2. 2

        There’s functionality for XMonad which automatically pauses the processes of all windows except for the active one. It also uses SIGCONT and SIGSTOP.

        1. 1

          On Linux I had to change the signal 17 to 19 and 19 to 18, according to trap -l

          1. 2

            Hi,

            thanks for input.

            I modified the desktop-pause.sh script to use kill -SIGCONT PID and kill -SIGSTOP PID commands instead.

            Change:

            https://github.com/vermaden/scripts/commit/f71ac87766b076d17b42a706757ded2170a51e8c

            Now it should work on FreeBSD and Linux without modifications.

            1. 1

              As a note, I do the same thing for macOS for firefox. I just use pkill -STOP basically, no wrapper script. I’m almost always in a terminal so it being in my history is fine enough for me.

            2. 1

              I made another modification with uname/case so all Linux systems should work properly now.

              There was problem with Ubuntu 16.04 which uses Dash as /bin/sh.