A user session deamon that stops processes associated with background X11 windows.
Find a file
Carl Klemm 569ce05dbb Split source into multiple files
SIGUSR1 now causes reload of blacklist
sigstoped now resumes all processes it stoped upon reciving SIGINT or SIGTERM
sigstoped avoids stopping processes that have no top level window left TODO: is this enough?
2020-06-05 12:14:37 +02:00
CMakeLists.txt Split source into multiple files 2020-06-05 12:14:37 +02:00
debug.h Split source into multiple files 2020-06-05 12:14:37 +02:00
main.cpp Split source into multiple files 2020-06-05 12:14:37 +02:00
process.cpp Split source into multiple files 2020-06-05 12:14:37 +02:00
process.h Split source into multiple files 2020-06-05 12:14:37 +02:00
README.md Create README.md 2020-06-04 18:41:22 +02:00
split.h Split source into multiple files 2020-06-05 12:14:37 +02:00
xinstance.cpp Split source into multiple files 2020-06-05 12:14:37 +02:00
xinstance.h Split source into multiple files 2020-06-05 12:14:37 +02:00

sigstoped

a user deamon that stops processes associated with background windows uses _NET_ACTIVE_WINDOW _NET_WM_PID WM_CLIENT_MACHINE and a blacklist to determine whitch processes to stop via SIGSTOP upon window swtich

usage:

  1. build
  2. create ~/.config/sigstoped/blacklist
  3. one proces name per line, nothing else
  4. run