stepping it back

This commit is contained in:
2026-07-09 20:00:35 -05:00
parent 2743338c36
commit 53cdebdc1e
17 changed files with 229 additions and 305 deletions
+5 -5
View File
@@ -8,6 +8,7 @@ import base64
from datetime import datetime
from pathlib import Path
from warehouse import Media_flag, rand12
from swayipc import Swayipc
Recordings = Path.home() / "records"
Tmp = tempfile.gettempdir()
@@ -35,17 +36,16 @@ def find_focused_pid(node):
return None
def force_kill():
tree = json.loads(subprocess.check_output(
["swaymsg", "-t", "get_tree"],
text=True
))
sway = Swayipc()
tree = sway.tree()
pid = find_focused_pid(tree)
if not pid:
return
os.kill(pid, 9)
def is_recording():
return subprocess.run(
["pgrep", "-x", "wf-recorder"],