Add overlay and oneshot crosshair
This commit is contained in:
68
Keystrokes.qml
Normal file
68
Keystrokes.qml
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user