diff --git a/dots/.config/quickshell/ii/modules/bar/UtilButtons.qml b/dots/.config/quickshell/ii/modules/bar/UtilButtons.qml index 2930329c1..d7f73a4e3 100644 --- a/dots/.config/quickshell/ii/modules/bar/UtilButtons.qml +++ b/dots/.config/quickshell/ii/modules/bar/UtilButtons.qml @@ -25,7 +25,7 @@ Item { visible: Config.options.bar.utilButtons.showScreenSnip sourceComponent: CircleUtilButton { Layout.alignment: Qt.AlignVCenter - onClicked: Quickshell.execDetached(["qs", "-p", Quickshell.shellPath("screenshot.qml")]) + onClicked: Hyprland.dispatch("global quickshell:regionScreenshot") MaterialSymbol { horizontalAlignment: Qt.AlignHCenter fill: 1 diff --git a/dots/.config/quickshell/ii/modules/sidebarRight/quickToggles/androidStyle/AndroidScreenSnipToggle.qml b/dots/.config/quickshell/ii/modules/sidebarRight/quickToggles/androidStyle/AndroidScreenSnipToggle.qml index c00570e87..5a22b616a 100644 --- a/dots/.config/quickshell/ii/modules/sidebarRight/quickToggles/androidStyle/AndroidScreenSnipToggle.qml +++ b/dots/.config/quickshell/ii/modules/sidebarRight/quickToggles/androidStyle/AndroidScreenSnipToggle.qml @@ -4,6 +4,7 @@ import qs.modules.common.widgets import qs.services import QtQuick import Quickshell +import Quickshell.Hyprland AndroidQuickToggleButton { id: root @@ -22,7 +23,7 @@ AndroidQuickToggleButton { interval: 300 repeat: false onTriggered: { - Quickshell.execDetached(["qs", "-p", Quickshell.shellPath("screenshot.qml")]) + Hyprland.dispatch("global quickshell:regionScreenshot") } }