Fix flash before terminal spawns

This commit is contained in:
outfoxxed 2024-03-20 04:17:27 -07:00
parent 8364a3b9b9
commit eeb47e9dc1
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
4 changed files with 55 additions and 11 deletions

View file

@ -51,14 +51,18 @@ ShellRoot {
property real width;
property real height;
command: ["hyprctl", "dispatch", "exec", `[float;; noanim; move ${x} ${y}; size ${width} ${height}] alacritty`]
command: [
"hyprctl",
"dispatch",
"exec",
`[float;; noanim; move ${x} ${y}; size ${width} ${height}] alacritty --class AlacrittyTermselect`
]
}
Connections {
target: ShellIpc
function onTermSelectChanged() {
if (ShellIpc.termSelect) {
selectionLayer.selectionArea.startSelection();
} else {
@ -66,6 +70,16 @@ ShellRoot {
}
}
}
Connections {
target: HyprlandIpc
function onWindowOpened(_, _, klass, _) {
if (klass == "AlacrittyTermselect") {
selectionLayer.selectionArea.selecting = false
}
}
}
}
SelectionArea {