usable
This commit is contained in:
@@ -21,13 +21,32 @@ PanelWindow {
|
||||
bottom: true
|
||||
}
|
||||
|
||||
Lock {
|
||||
id: lock
|
||||
bg_path: "/tmp/nathan/tmp.jpg"
|
||||
//locked: true
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: lt
|
||||
interval: 30000
|
||||
|
||||
running: false
|
||||
|
||||
repeat: false
|
||||
|
||||
onTriggered: lock.locked = false
|
||||
}
|
||||
|
||||
|
||||
Component.onCompleted: {
|
||||
|
||||
Hyprland.dispatch("exec hyprctl keyword monitor " + Hyprland.monitorFor(root.screen).name + ",addreserved," + topEx + "," + botEx + "," + leftEx + "," + rightEx)
|
||||
Hyprland.dispatch("exec hyprctl keyword decoration:rounding " + radius)
|
||||
|
||||
|
||||
for(let toplv = 0; toplv < Hyprland.toplevels.values.length; toplv++) {
|
||||
//console.log(Hyprland.toplevels.values[toplv].title)
|
||||
}
|
||||
}
|
||||
|
||||
property int topEx: topRect.reserve
|
||||
@@ -72,6 +91,18 @@ PanelWindow {
|
||||
BarLeft {
|
||||
id: leftRect
|
||||
window: root
|
||||
|
||||
Button {
|
||||
implicitWidth: 30
|
||||
implicitHeight: 30
|
||||
|
||||
x: leftRect.x + leftRect.width / 2 - width / 2
|
||||
y: 200
|
||||
onClicked: {
|
||||
lock.locked = true
|
||||
lt.running = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BarRight {
|
||||
|
||||
Reference in New Issue
Block a user