Add a toggle in the bar for microphone loopback

This commit is contained in:
ant 2024-09-01 10:48:08 +02:00
parent d163a5e611
commit 4e51589599
2 changed files with 10 additions and 2 deletions

View file

@ -50,6 +50,14 @@
echo "$cwd"
'';
".bin/exec_on_stdin_newline".source = pkgs.writers.writePython3 "exec_on_stdin_newline" {} ''
# run command whjen a newline is added to stdin
import subprocess
from sys import stdin, argv
cmd = argv[1:]
while stdin.readline():
subprocess.call(cmd, shell=True)
'';
".bin/screenshot".source = (import ./bin/screenshot.nix) pkgs;