This commit is contained in:
Patrick Alvin Alcala 2025-07-08 11:48:51 +08:00
parent 2c8bd6c741
commit 9ae2c4e514
8 changed files with 114 additions and 6 deletions

11
.config/ghostty/reload.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
# ابحث عن النوافذ المفتوحة من Ghostty
for win_id in $(hyprctl clients | grep -B 1 'com.mitchellh.ghostty' | grep -oP 'Window \K[0-9a-f]{14}'); do
echo "Focusing window ID: $win_id"
hyprctl dispatch focuswindow $win_id # اعمل فوكوس للنافذة
# ارسال مفتاح لإعادة تحميل Ghostty (مثال: Shift+Ctrl+,)
wtype --window $win_id "Shift+Ctrl+," # اختصار المفتاح
sleep 0.5 # تأخير بسيط بعد ارسال كل أمر
done