✨ feat(ui): add zoom in/out options to menu bar
This commit is contained in:
2 files changed
+12
-4
No files matched your search
@@ -0,0 +1,3 @@
|
||||
<svg width="16" height="16" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m3.5 1c-1.3807 0-2.5 1.1193-2.5 2.5s1.1193 2.5 2.5 2.5h1.5v4h-1.5c-1.3807 0-2.5 1.1193-2.5 2.5s1.1193 2.5 2.5 2.5 2.5-1.1193 2.5-2.5v-1.5h4v1.5c0 1.3807 1.1193 2.5 2.5 2.5s2.5-1.1193 2.5-2.5-1.1193-2.5-2.5-2.5h-1.5v-4h1.5c1.3807 0 2.5-1.1193 2.5-2.5s-1.1193-2.5-2.5-2.5-2.5 1.1193-2.5 2.5v1.5h-4v-1.5c0-1.3807-1.1193-2.5-2.5-2.5zm0 1c0.82843 0 1.5 0.67157 1.5 1.5v1.5h-1.5c-0.82843 0-1.5-0.67157-1.5-1.5s0.67157-1.5 1.5-1.5zm9 0c0.82843 0 1.5 0.67157 1.5 1.5s-0.67157 1.5-1.5 1.5h-1.5v-1.5c0-0.82843 0.67157-1.5 1.5-1.5zm-6.5 4h4v4h-4zm-2.5 5h1.5v1.5c0 0.82843-0.67157 1.5-1.5 1.5s-1.5-0.67157-1.5-1.5 0.67157-1.5 1.5-1.5zm7.5 0h1.5c0.82843 0 1.5 0.67157 1.5 1.5s-0.67157 1.5-1.5 1.5-1.5-0.67157-1.5-1.5z" fill="#dedede" fill-rule="evenodd" style="paint-order:normal"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 865 B |
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user