From 5de8414b6417b98f94b3e323ae4be5b7e0289aa6 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 28 Apr 2025 23:59:49 +0200 Subject: [PATCH] booru image click to open sourcee --- .config/quickshell/modules/sidebarLeft/BooruImage.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/quickshell/modules/sidebarLeft/BooruImage.qml b/.config/quickshell/modules/sidebarLeft/BooruImage.qml index 7d5297791..8442754e9 100644 --- a/.config/quickshell/modules/sidebarLeft/BooruImage.qml +++ b/.config/quickshell/modules/sidebarLeft/BooruImage.qml @@ -4,6 +4,7 @@ import "root:/modules/common/widgets" import QtQuick import QtQuick.Controls import QtQuick.Layouts +import Quickshell.Hyprland import Qt5Compat.GraphicalEffects Button { @@ -15,6 +16,10 @@ Button { PointingHandInteraction {} + onClicked: { + Hyprland.dispatch(`exec xdg-open ${imageData.source}`) + } + background: Rectangle { implicitWidth: imageData.width implicitHeight: imageData.height