shell+hl: adjust workspace move curve

Looks a lot better on the bar and overlay.
This commit is contained in:
outfoxxed 2025-01-20 14:00:53 -08:00
parent 789228079c
commit b73b476c68
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
4 changed files with 8 additions and 7 deletions
modules
hyprland
user/modules/quickshell/shell

View file

@ -44,6 +44,7 @@ animations {
bezier = windowIn, 0.06, 0.71, 0.25, 1
bezier = windowResize, 0.04, 0.67, 0.38, 1
bezier = workspacesMove, 0.1, 0.75, 0.15, 1
animation = windowsIn, 1, 3, windowIn, slide #popin 20%
animation = windowsOut, 1, 3, windowIn, slide #popin 70%
@ -51,7 +52,7 @@ animations {
animation = border, 1, 10, default
animation = borderangle, 1, 8, default
animation = fade, 1, 3, default
animation = workspaces, 1, 6, default, slidevert
animation = workspaces, 1, 5, workspacesMove, slidevert
animation = layers, 1, 5, windowIn, slide
}

View file

@ -37,7 +37,7 @@ PanelWindow {
Rectangle {
id: barRect
x: 10 - Lock.Controller.bkgSlide * (barRect.width + 10)
x: 10 - Lock.Controller.lockSlide * (barRect.width + 10)
width: parent.width - 15
anchors {

View file

@ -21,15 +21,15 @@ Singleton {
Behavior on lockSlide {
NumberAnimation {
duration: 600
duration: 500
easing.type: Easing.BezierSpline
easing.bezierCurve: [0.0, 0.75, 0.15, 1.0, 1.0, 1.0]
easing.bezierCurve: [0.1, 0.75, 0.15, 1.0, 1.0, 1.0]
}
}
Behavior on bkgSlide {
NumberAnimation {
duration: 600
duration: 500
easing.type: Easing.OutCirc
}
}
@ -46,7 +46,7 @@ Singleton {
Timer {
id: lockClearTimer
interval: 600
interval: 500
onTriggered: {
lock.locked = false;
lockContextLoader.active = false;

View file

@ -4,12 +4,12 @@ import Quickshell.Io
import Quickshell.Wayland
import QtQuick
import QtQuick.Layouts
import ".."
import "screenshot" as Screenshot
import "bar" as Bar
import "lock" as Lock
import "notifications" as Notifs
import "launcher" as Launcher
import "background"
ShellRoot {
Component.onCompleted: [Lock.Controller, Launcher.Controller.init()]