Skip to content

Instantly share code, notes, and snippets.

@rukh-debug
Created August 2, 2025 18:33
Show Gist options
  • Select an option

  • Save rukh-debug/ea4af894a4241c3b1af96f8513b93e59 to your computer and use it in GitHub Desktop.

Select an option

Save rukh-debug/ea4af894a4241c3b1af96f8513b93e59 to your computer and use it in GitHub Desktop.
# Magnifier shortcut for hyprland
# Ctrl + Mod + minust key (-) = zoom out
# Ctrl + Mod + equals key (=) = zoom in
"Ctrl + $Mod, code:21, exec, hyprctl keyword cursor:zoom_factor $(awk -v z=$(hyprctl getoption cursor:zoom_factor | grep 'float:' | awk '{print $2}') 'BEGIN {print z + 0.5}')"
"Ctrl + $Mod, code:20, exec, hyprctl keyword cursor:zoom_factor $(awk -v z=$(hyprctl getoption cursor:zoom_factor | grep 'float:' | awk '{print $2}') 'BEGIN {print (z > 1 ? z - 0.5 : 1)}')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment