The worst I did is wanting to replace the WAN interface on my Opnsense router. I didn’t check properly and replaced my LAN interface instead, rendering the router inaccessible and fucking up my network. Luckily, its a VM on proxmox that was still accessible from IP. I just opened a console to the VM and found out that the whole configuration is in a file. Also, a copy is saved with every configuration change. I just found the right one to restore and voilà! My network was back up.
I use qtile on X11 and hyprland on Wayland. There is an option on hyprland for exactly that (idleinhibit window rule), but didn’t find a good solution on qtile yet. Anyway I have issues with qtile for other things too (because of X11 mainly).