forked from Shinonome/dots-hyprland
fix screenshot button
This commit is contained in:
@@ -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
|
||||
|
||||
+2
-1
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user