A simple lag switch, also known as switch lag in Python (I'm not sure how you refer to it). Open-source.
- There may still be some issues, so feel free to submit a pull request or open an issue.
import tkinter as tk
from tkinter import messagebox, simpledialog
import keyboard
import subprocess
import configparser
import os
import threading
Important
Default hotkey: F4
Default auto-disable time: 4 seconds (4000 ms)