Make quick-visor a standalone executable

This commit is contained in:
2026-06-09 13:16:06 +02:00
parent 5c0163e69f
commit 31e78e64c1
7 changed files with 10 additions and 23 deletions
+1 -2
View File
@@ -20,9 +20,8 @@ package() {
install -dm755 "${pkgdir}/usr/share/quickshell/${pkgname}" install -dm755 "${pkgdir}/usr/share/quickshell/${pkgname}"
install -m644 qml/* "${pkgdir}/usr/share/quickshell/${pkgname}/" install -m644 qml/* "${pkgdir}/usr/share/quickshell/${pkgname}/"
install -Dm755 bin/quick-visor "${pkgdir}/usr/bin/quick-visor" install -Dm755 bin/quick-visor "${pkgdir}/usr/bin/quick-visor"
install -Dm755 bin/quick-visor-toggle "${pkgdir}/usr/bin/quick-visor-toggle" install -Dm755 bin/quick-visor "${pkgdir}/usr/bin/quick-visor"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+5 -6
View File
@@ -10,23 +10,22 @@ Install from the AUR:
paru -S quick-visor paru -S quick-visor
``` ```
Start the resident Quickshell instance once per session: Launch the display layout window:
```conf ```sh
exec-once = quick-visor quick-visor
``` ```
Bind a key to toggle the overlay: Optionally bind a key to launch it:
```conf ```conf
bind = SUPER, M, exec, quick-visor-toggle bind = SUPER, D, exec, quick-visor
``` ```
For local development, run directly from the clone: For local development, run directly from the clone:
```sh ```sh
quickshell -n -p qml/shell.qml quickshell -n -p qml/shell.qml
quickshell ipc -p qml/shell.qml call quick-visor toggle
``` ```
## Configuration ## Configuration
+1 -1
View File
@@ -1 +1 @@
0.0.1 0.0.2
+1 -1
View File
@@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
# Launches the quick-visor Quickshell instance. Run once at session start. # Launches the quick-visor display layout window.
exec quickshell -n -p /usr/share/quickshell/quick-visor/shell.qml "$@" exec quickshell -n -p /usr/share/quickshell/quick-visor/shell.qml "$@"
-3
View File
@@ -1,3 +0,0 @@
#!/bin/sh
# Toggle the quick-visor overlay from a compositor keybinding.
exec quickshell ipc -p /usr/share/quickshell/quick-visor/shell.qml call quick-visor toggle
+2 -1
View File
@@ -7,7 +7,7 @@ import Quickshell.Io
QtObject { QtObject {
id: root id: root
property bool visible: false property bool visible: true
property int selectedIndex: 0 property int selectedIndex: 0
property var monitors: [] property var monitors: []
property var arrangedPositions: ({}) property var arrangedPositions: ({})
@@ -24,6 +24,7 @@ QtObject {
function close() { function close() {
visible = false; visible = false;
Qt.callLater(Qt.quit);
} }
function toggle() { function toggle() {
-9
View File
@@ -1,15 +1,6 @@
import Quickshell import Quickshell
import Quickshell.Io
ShellRoot { ShellRoot {
IpcHandler {
target: "quick-visor"
function toggle(): void { VisorService.toggle(); }
function open(): void { VisorService.open(); }
function close(): void { VisorService.close(); }
function refresh(): void { VisorService.refresh(); }
}
Visor {} Visor {}
Variants { Variants {