✨ feat(ui): add zoom in/out options to menu bar

This commit is contained in:
sankalp committed 2025-08-01 08:46:23 +05:45
1 parent c3d01b3185
commit 0b89e9852a
2 files changed
+12 -4

No files matched your search

+9 -4
View File
@@ -195,11 +195,16 @@ class MenuBarDropdowns:
parent=parent,
dropdown_children=[
dropdown_option(
"Zoom",
on_clicked=lambda _: subprocess.run(
"bash ~/.config/scripts/zoomer.sh", shell=True
),
"Zoom In",
"󰍉 +",
on_click="hyprctl -q keyword cursor:zoom_factor $(hyprctl getoption cursor:zoom_factor -j | jq '.float * 1.1')",
),
dropdown_option(
"Zoom Out",
"󰍉 -",
on_click="hyprctl -q keyword cursor:zoom_factor $(hyprctl getoption cursor:zoom_factor -j | jq '(.float * 0.9) | if . < 1 then 1 else . end')",
),
dropdown_divider("---------------------"),
dropdown_option(
"Move Window to Left",
on_click="hyprctl dispatch movewindow l",