diff --git a/config/assets/icons/misc/control.svg b/config/assets/icons/misc/control.svg new file mode 100644 index 0000000..ed4e9d7 --- /dev/null +++ b/config/assets/icons/misc/control.svg @@ -0,0 +1,3 @@ + + + diff --git a/modules/panel/components/menubar.py b/modules/panel/components/menubar.py index 62fc920..8d25855 100644 --- a/modules/panel/components/menubar.py +++ b/modules/panel/components/menubar.py @@ -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",