use hyprland global keybind dispatch for window toggling

This commit is contained in:
end-4
2025-04-27 23:06:22 +02:00
parent 4548000077
commit 9b0d769598
13 changed files with 134 additions and 111 deletions
@@ -7,6 +7,7 @@ import QtQuick.Layouts
import Quickshell
import Quickshell.Io
import Quickshell.Widgets
import Quickshell.Hyprland
import Quickshell.Services.Notifications
import "./notification_utils.js" as NotificationUtils
@@ -23,11 +24,6 @@ Item {
Layout.fillWidth: true
clip: !popup
Process {
id: closeSidebarProcess
command: ["qs", "ipc", "call", "sidebarRight", "close"]
}
Process {
id: copyNotificationBody
command: ["bash", "-c", `wl-copy "${notificationObject.body}"`]
@@ -456,7 +452,7 @@ Item {
: notificationObject.body.replace(/<img/g, "\n <img").split("\n")[0]
onLinkActivated: {
Qt.openUrlExternally(link)
closeSidebarProcess.running = true
Hyprland.dispatch("global quickshell:sidebarRightClose")
}
MouseArea {
anchors.fill: parent