Compare commits

...

2 Commits

Author SHA1 Message Date
57b5e8e2ef added CustomShortcut to powermenu and launcher 2025-11-28 15:56:46 +01:00
45e7f8d0bc added global shortcut type 2025-11-28 15:56:06 +01:00
3 changed files with 15 additions and 15 deletions

View File

@@ -5,6 +5,7 @@ import QtQuick.Controls
import Quickshell.Wayland
import Quickshell.Io
import "root:/singeltons"
import "root:/utils"
PanelWindow {
id: root
@@ -20,10 +21,10 @@ PanelWindow {
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
WlrLayershell.layer: WlrLayer.Top
IpcHandler {
target: "launcher"
function open(): void {root.show = true; }
CustomShortcut {
name: "openLauncher"
description: "Open launcher"
onPressed: {root.show = true; }
}
// Main window

View File

@@ -5,6 +5,7 @@ import QtQuick.Controls
import Quickshell.Wayland
import Quickshell.Io
import "root:/singeltons"
import "root:/utils"
PanelWindow {
id: root
@@ -23,17 +24,10 @@ PanelWindow {
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
WlrLayershell.layer: WlrLayer.Top
IpcHandler {
target: "powermenu"
function open(): void {
root.selectedIndex = 0
root.show = true
}
function close(): void {
root.show = false
}
CustomShortcut {
name: "openPowermenu"
description: "Open powermenu"
onPressed: {root.show = true; }
}
function executeButton(index){

5
utils/CustomShortcut.qml Normal file
View File

@@ -0,0 +1,5 @@
import Quickshell.Hyprland
GlobalShortcut {
appid: "quickshell"
}