Salam everybody,
I am working on a Python script to block any NSFW (Not Safe For Work) content by taking screenshots at intervals. My main goal is to make it impossible for me to kill or disable the script, as I struggle with a porn addiction.
Approaches I tried but failed:
- Running the script as a service under the root account: This caused problems with the Grim tool used in my code for taking screenshots on Hyprland.
What is the most robust approach that is reliable on a NixOS & Hyprland setup?
Additional Context:
- I have an accountable partner who has all the root and sudo passwords.
- I’m a beginner. I found some suggestions about running the code like a kernel module, but that seems very complex for me.
Project File Tree:
.
├── main.py
├── nsfw_mobilenet2.224x224.h5
├── poetry.lock
├── pyproject.toml
├── README.md
├── run.sh
└── shell.nix
1 directory, 7 files
Note: This is for personal use, so I don’t intend to publish or package it.
Any advice or guidance would be greatly appreciated!