quickshell work

This commit is contained in:
2025-11-09 18:02:29 -06:00
parent 160ae56e03
commit 103c8e803a
9 changed files with 256 additions and 85 deletions

View File

@@ -1,3 +1,4 @@
import Quickshell
import QtQuick // for Text
import QtQuick.Controls
import QtQuick.Layouts
@@ -9,6 +10,10 @@ Item {
width: 30
height: 30
id: root
property var window: null
ClippingWrapperRectangle {
radius: 5
width: 30; height: 30
@@ -16,13 +21,59 @@ Item {
id: button
text: " "
font.pointSize: 16
Process {
id: launcher
running: false
command: ["rofi", "-show", "drun"]
}
onClicked: launcher.running = true
onClicked: menu.visible = !menu.visible
implicitHeight: parent.height
}
}
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: true
color: "transparent"
ClippingWrapperRectangle {
radius: 5
implicitHeight: parent.height - 20
implicitWidth: parent.width
ColumnLayout {
spacing: 2
Button {
x: (parent.width - width) / 2
implicitWidth: parent.width - 10
implicitHeight: parent.height / 4 - parent.spacing
}
Button {
x: (parent.width - width) / 2
implicitWidth: parent.width - 10
implicitHeight: parent.height / 4 - parent.spacing
}
Button {
x: (parent.width - width) / 2
implicitWidth: parent.width - 10
implicitHeight: parent.height / 4 - parent.spacing
}
Button {
x: (parent.width - width) / 2
implicitWidth: parent.width - 10
implicitHeight: parent.height / 4 - parent.spacing
}
}
}
}
}