From 9cf647bfb38d3738250e53480da69ef2d81362f1 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Wed, 3 Sep 2025 09:45:15 -0400 Subject: [PATCH] move shortcut to file --- modules/Shortcuts.qml | 6 +++++- widgets/LuxShortcut.qml | 5 ----- 2 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 widgets/LuxShortcut.qml diff --git a/modules/Shortcuts.qml b/modules/Shortcuts.qml index 2eb064e..e240bf9 100644 --- a/modules/Shortcuts.qml +++ b/modules/Shortcuts.qml @@ -1,6 +1,6 @@ import qs.services -import qs.widgets import Quickshell +import Quickshell.Hyprland Scope { id: root @@ -28,4 +28,8 @@ Scope { description: 'Open the Component Storybook' onPressed: Visibility.storybook = !Visibility.storybook } + + component LuxShortcut: GlobalShortcut { + appid: "lux" + } } diff --git a/widgets/LuxShortcut.qml b/widgets/LuxShortcut.qml deleted file mode 100644 index a724552..0000000 --- a/widgets/LuxShortcut.qml +++ /dev/null @@ -1,5 +0,0 @@ -import Quickshell.Hyprland - -GlobalShortcut { - appid: "lux" -}