Fix flash before terminal spawns
This commit is contained in:
parent
8364a3b9b9
commit
eeb47e9dc1
4 changed files with 55 additions and 11 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue