feat: Add some more rules and fix draw screen dimming

This commit is contained in:
2025-04-20 22:50:51 +10:00
parent 7fc2d78f96
commit 3d07720567
8 changed files with 38 additions and 149 deletions

View File

@@ -52,15 +52,22 @@ if __name__ == "__main__":
print("Rebinding mouse buttons")
os.system("hyprctl keyword bind , mouse_left, exec, 'ydotool key 56:1 105:1 105:0 56:0'")
os.system("hyprctl keyword bind , mouse_right, exec, 'ydotool key 56:1 106:1 106:0 56:0'")
# Set dim special to default
os.system("hyprctl keyword decoration:dim_special 0.5")
else:
print("Gromit is not running",flush=True)
# Check if gromit-mpx is running
if gromit_running():
os.system("gromit-mpx -t")
# Disable dim special
os.system("hyprctl keyword decoration:dim_special 0")
os.system("hyprctl dispatch togglespecialworkspace gromit")
os.system("hyprctl keyword unbind , mouse_left")
os.system("hyprctl keyword unbind , mouse_right")
os.system("hyprctl keyword bind , mouse_left, exec, 'gromit-mpx --undo'")
os.system("hyprctl keyword bind , mouse_right, exec, 'gromit-mpx --redo'")