mirror of
https://github.com/AlexMacocian/quick-visor.git
synced 2026-07-15 15:09:32 +00:00
Make quick-visor a standalone executable
This commit is contained in:
+1
-2
@@ -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"
|
||||||
|
|||||||
@@ -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
@@ -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 "$@"
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -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() {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user