forked from Shinonome/dots-hyprland
Merge branch 'end-4:main' into parallax
This commit is contained in:
@@ -115,6 +115,8 @@ animations {
|
|||||||
## specialWorkspace
|
## specialWorkspace
|
||||||
animation = specialWorkspaceIn, 1, 2.8, emphasizedDecel, slidevert
|
animation = specialWorkspaceIn, 1, 2.8, emphasizedDecel, slidevert
|
||||||
animation = specialWorkspaceOut, 1, 1.2, emphasizedAccel, slidevert
|
animation = specialWorkspaceOut, 1, 1.2, emphasizedAccel, slidevert
|
||||||
|
# zoom
|
||||||
|
animation = zoomFactor, 1, 3, emphasizedDecel
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
@@ -160,6 +162,7 @@ binds {
|
|||||||
cursor {
|
cursor {
|
||||||
zoom_factor = 1
|
zoom_factor = 1
|
||||||
zoom_rigid = false
|
zoom_rigid = false
|
||||||
|
zoom_disable_aa = true
|
||||||
hotspot_padding = 1
|
hotspot_padding = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -230,10 +230,8 @@ bindd = Ctrl+Shift+Alt+Super, Delete, Shutdown, exec, systemctl poweroff || logi
|
|||||||
|
|
||||||
##! Screen
|
##! Screen
|
||||||
# Zoom
|
# Zoom
|
||||||
binde = Super, Minus, exec, qs -c $qsConfig ipc call zoom zoomOut # Zoom out
|
binde = Super, Minus, exec, ~/.config/hypr/hyprland/scripts/zoom.sh decrease 0.3 # [hidden] Zoom out
|
||||||
binde = Super, Equal, exec, qs -c $qsConfig ipc call zoom zoomIn # Zoom in
|
binde = Super, Equal, exec, ~/.config/hypr/hyprland/scripts/zoom.sh increase 0.3 # [hidden] Zoom in
|
||||||
binde = Super, Minus, exec, qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/hypr/hyprland/scripts/zoom.sh decrease 0.1 # [hidden] Zoom out
|
|
||||||
binde = Super, Equal, exec, qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/hypr/hyprland/scripts/zoom.sh increase 0.1 # [hidden] Zoom in
|
|
||||||
# Zoom with keypad
|
# Zoom with keypad
|
||||||
binde = Super, code:82, exec, qs -c $qsConfig ipc call zoom zoomOut # [hidden] Zoom out
|
binde = Super, code:82, exec, qs -c $qsConfig ipc call zoom zoomOut # [hidden] Zoom out
|
||||||
binde = Super, code:86, exec, qs -c $qsConfig ipc call zoom zoomIn # [hidden] Zoom in
|
binde = Super, code:86, exec, qs -c $qsConfig ipc call zoom zoomIn # [hidden] Zoom in
|
||||||
|
|||||||
@@ -37,14 +37,6 @@ Singleton {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
property real screenZoom: 1
|
|
||||||
onScreenZoomChanged: {
|
|
||||||
Quickshell.execDetached(["hyprctl", "keyword", "cursor:zoom_factor", root.screenZoom.toString()]);
|
|
||||||
}
|
|
||||||
Behavior on screenZoom {
|
|
||||||
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
|
||||||
}
|
|
||||||
|
|
||||||
GlobalShortcut {
|
GlobalShortcut {
|
||||||
name: "workspaceNumber"
|
name: "workspaceNumber"
|
||||||
description: "Hold to show workspace numbers, release to show icons"
|
description: "Hold to show workspace numbers, release to show icons"
|
||||||
@@ -56,16 +48,4 @@ Singleton {
|
|||||||
root.superDown = false
|
root.superDown = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
IpcHandler {
|
|
||||||
target: "zoom"
|
|
||||||
|
|
||||||
function zoomIn() {
|
|
||||||
screenZoom = Math.min(screenZoom + 0.4, 3.0)
|
|
||||||
}
|
|
||||||
|
|
||||||
function zoomOut() {
|
|
||||||
screenZoom = Math.max(screenZoom - 0.4, 1)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user