37 lines
948 B
QML
37 lines
948 B
QML
import "root:/widgets"
|
|
import "root:/services"
|
|
import Quickshell
|
|
|
|
Scope {
|
|
id: root
|
|
|
|
property bool launcherInterrupted
|
|
|
|
CustomShortcut {
|
|
name: "session"
|
|
description: "Toggle session menu"
|
|
onPressed: {
|
|
const visibilities = Visibilities.getForActive();
|
|
visibilities.session = !visibilities.session;
|
|
}
|
|
}
|
|
|
|
CustomShortcut {
|
|
name: "launcher"
|
|
description: "Toggle launcher"
|
|
onPressed: root.launcherInterrupted = false
|
|
onReleased: {
|
|
if (!root.launcherInterrupted) {
|
|
const visibilities = Visibilities.getForActive();
|
|
visibilities.launcher = !visibilities.launcher;
|
|
}
|
|
root.launcherInterrupted = false;
|
|
}
|
|
}
|
|
|
|
CustomShortcut {
|
|
name: "launcherInterrupt"
|
|
description: "Interrupt launcher keybind"
|
|
onPressed: root.launcherInterrupted = true
|
|
}
|
|
}
|