Files
2026-06-03 21:26:54 +02:00

33 lines
853 B
Python

#!/usr/bin/env python3
"""
Example script for opening the overview on the focused monitor.
This script uses the global keybind handler to open the overview
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_overview()
if success:
print("Overview opened on focused monitor")
sys.exit(0)
else:
print("Failed to open overview")
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 overview: {e}")
sys.exit(1)