69 lines
1.5 KiB
QML
69 lines
1.5 KiB
QML
import Quickshell
|
|
import Quickshell.Hyprland
|
|
import Quickshell.Wayland
|
|
import QtQuick
|
|
|
|
Item {
|
|
id: keystrokes
|
|
|
|
PanelWindow {
|
|
anchors {
|
|
bottom: true
|
|
left: true
|
|
}
|
|
margins {
|
|
left: 8
|
|
bottom: 8
|
|
}
|
|
implicitWidth: 208
|
|
implicitHeight: 60
|
|
color: "transparent"
|
|
WlrLayershell.layer: WlrLayer.Overlay
|
|
|
|
Rectangle {
|
|
anchors {
|
|
bottom: parent.bottom
|
|
left: parent.left
|
|
}
|
|
height: 50
|
|
width: 100
|
|
color: apr.pressed ? "white" : "black"
|
|
radius: 12
|
|
Text {
|
|
anchors.centerIn: parent
|
|
color: apr.pressed ? "black" : "white"
|
|
text: "A"
|
|
font.pixelSize: 40
|
|
}
|
|
}
|
|
Rectangle {
|
|
anchors {
|
|
bottom: parent.bottom
|
|
right: parent.right
|
|
}
|
|
height: 50
|
|
width: 100
|
|
color: spr.pressed ? "white" : "black"
|
|
radius: 12
|
|
Text {
|
|
anchors.centerIn: parent
|
|
color: spr.pressed ? "black" : "white"
|
|
text: "S"
|
|
font.pixelSize: 40
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
GlobalShortcut {
|
|
id: apr
|
|
name: "apressed"
|
|
appid: "chlorostroke"
|
|
}
|
|
GlobalShortcut {
|
|
id: spr
|
|
name: "spressed"
|
|
appid: "chlorostroke"
|
|
}
|
|
}
|