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 -m644 qml/* "${pkgdir}/usr/share/quickshell/${pkgname}/"
|
||||
|
||||
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 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
|
||||
@@ -10,23 +10,22 @@ Install from the AUR:
|
||||
paru -S quick-visor
|
||||
```
|
||||
|
||||
Start the resident Quickshell instance once per session:
|
||||
Launch the display layout window:
|
||||
|
||||
```conf
|
||||
exec-once = quick-visor
|
||||
```sh
|
||||
quick-visor
|
||||
```
|
||||
|
||||
Bind a key to toggle the overlay:
|
||||
Optionally bind a key to launch it:
|
||||
|
||||
```conf
|
||||
bind = SUPER, M, exec, quick-visor-toggle
|
||||
bind = SUPER, D, exec, quick-visor
|
||||
```
|
||||
|
||||
For local development, run directly from the clone:
|
||||
|
||||
```sh
|
||||
quickshell -n -p qml/shell.qml
|
||||
quickshell ipc -p qml/shell.qml call quick-visor toggle
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
#!/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 "$@"
|
||||
|
||||
@@ -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 {
|
||||
id: root
|
||||
|
||||
property bool visible: false
|
||||
property bool visible: true
|
||||
property int selectedIndex: 0
|
||||
property var monitors: []
|
||||
property var arrangedPositions: ({})
|
||||
@@ -24,6 +24,7 @@ QtObject {
|
||||
|
||||
function close() {
|
||||
visible = false;
|
||||
Qt.callLater(Qt.quit);
|
||||
}
|
||||
|
||||
function toggle() {
|
||||
|
||||
@@ -1,15 +1,6 @@
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
|
||||
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 {}
|
||||
|
||||
Variants {
|
||||
|
||||
Reference in New Issue
Block a user