This commit is contained in:
2026-06-03 21:26:54 +02:00
parent 05e6b8d061
commit d21e5175d5
125 changed files with 41986 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
#!/usr/bin/env python3
"""
Example script for opening the launcher on the focused monitor.
This script uses the global keybind handler to open the launcher
on whichever monitor currently has focus.
"""
import sys
import os
# Add the Ax-Shell directory to Python path
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
try:
from utils.global_keybinds import get_global_keybind_handler
handler = get_global_keybind_handler()
success = handler.open_launcher()
if success:
print("Launcher opened on focused monitor")
sys.exit(0)
else:
print("Failed to open launcher")
sys.exit(1)
except ImportError as e:
print(f"Error importing Ax-Shell modules: {e}")
sys.exit(1)
except Exception as e:
print(f"Error opening launcher: {e}")
sys.exit(1)