zsh,vm-list,karabiner,ghostty

This commit is contained in:
2025-09-26 05:57:27 +02:00
parent b8e96240ab
commit 0df5ff3199
8 changed files with 120 additions and 44 deletions

View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
file=/tmp/vm-switch.txt
# Ensure the file exists
touch "$file"
echo "Listening on $file ..."
tail -n0 -F "$file" | while read vm; do
[ -n "$vm" ] && echo "Switch requested: $vm" && ~/bin/work "$vm" &
done