Compare commits
2 Commits
4fc7f85983
...
57b5e8e2ef
| Author | SHA1 | Date | |
|---|---|---|---|
|
57b5e8e2ef
|
|||
|
45e7f8d0bc
|
@@ -5,6 +5,7 @@ import QtQuick.Controls
|
|||||||
import Quickshell.Wayland
|
import Quickshell.Wayland
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
import "root:/singeltons"
|
import "root:/singeltons"
|
||||||
|
import "root:/utils"
|
||||||
|
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: root
|
id: root
|
||||||
@@ -20,10 +21,10 @@ PanelWindow {
|
|||||||
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
|
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
|
||||||
WlrLayershell.layer: WlrLayer.Top
|
WlrLayershell.layer: WlrLayer.Top
|
||||||
|
|
||||||
IpcHandler {
|
CustomShortcut {
|
||||||
target: "launcher"
|
name: "openLauncher"
|
||||||
|
description: "Open launcher"
|
||||||
function open(): void {root.show = true; }
|
onPressed: {root.show = true; }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Main window
|
// Main window
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import QtQuick.Controls
|
|||||||
import Quickshell.Wayland
|
import Quickshell.Wayland
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
import "root:/singeltons"
|
import "root:/singeltons"
|
||||||
|
import "root:/utils"
|
||||||
|
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: root
|
id: root
|
||||||
@@ -23,17 +24,10 @@ PanelWindow {
|
|||||||
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
|
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
|
||||||
WlrLayershell.layer: WlrLayer.Top
|
WlrLayershell.layer: WlrLayer.Top
|
||||||
|
|
||||||
IpcHandler {
|
CustomShortcut {
|
||||||
target: "powermenu"
|
name: "openPowermenu"
|
||||||
|
description: "Open powermenu"
|
||||||
function open(): void {
|
onPressed: {root.show = true; }
|
||||||
root.selectedIndex = 0
|
|
||||||
root.show = true
|
|
||||||
}
|
|
||||||
|
|
||||||
function close(): void {
|
|
||||||
root.show = false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function executeButton(index){
|
function executeButton(index){
|
||||||
|
|||||||
5
utils/CustomShortcut.qml
Normal file
5
utils/CustomShortcut.qml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import Quickshell.Hyprland
|
||||||
|
|
||||||
|
GlobalShortcut {
|
||||||
|
appid: "quickshell"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user