Add overlay and oneshot crosshair

This commit is contained in:
2026-07-05 06:34:45 -07:00
parent f4da4d479e
commit 593fc55b53
6 changed files with 214 additions and 48 deletions

68
Keystrokes.qml Normal file
View File

@@ -0,0 +1,68 @@
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"
}
}