This commit is contained in:
2025-11-13 19:27:11 -06:00
parent 184e939bb6
commit e1e1b316cf
11 changed files with 513 additions and 108 deletions

View File

@@ -1,3 +1,4 @@
import Quickshell
import QtQuick // for Text
import QtQuick.Controls
import QtQuick.Layouts
@@ -16,13 +17,56 @@ Item {
id: button
text: "󰤨 "
font.pointSize: 16
Process {
id: launcher
running: false
command: ["rofi", "-show", "drun"]
onClicked: {
menu.visible = true
grab.active = true
}
onClicked: launcher.running = true
implicitHeight: parent.height
}
}
property var window: null
id: root
PopupWindow {
id: menu
anchor.window: window
anchor.rect.x: root.parent.x + root.parent.width - width
anchor.rect.y: 50
implicitWidth: 250
implicitHeight: 150
visible: false
color: "transparent"
ClippingWrapperRectangle {
radius: 5
implicitHeight: parent.height - 20
implicitWidth: parent.width
ColumnLayout {
spacing: 0
Button {
Layout.topMargin: 5
x: (parent.width - width) / 2
implicitWidth: parent.width - 10
implicitHeight: parent.height / 5 - parent.spacing
text: 'shutdown'
}
}
}
HyprlandFocusGrab {
id: grab
windows: [ menu ]
onCleared: menu.visible = false
}
}
}