feat: Add some more rules and fix draw screen dimming
This commit is contained in:
@@ -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'")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user