mirror of
https://github.com/deunix-educ/sourizz.git
synced 2026-11-25 04:39:43 +01:00
READMEs: explain how to run Sourizz in the background
Sourizz has no separate resident mode: running it with no subcommand is the daemon. Document how to detach it (setsid -f), check and stop it, start it at login with `sourizz autostart enable`, and the Hyprland and sway equivalents, in both languages. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -59,6 +59,19 @@ Prérequis à l'exécution :
|
|||||||
- **Wayland :** un compositeur qui implémente `wlr-layer-shell` — voir le [tableau de compatibilité](#x11-et-wayland).
|
- **Wayland :** un compositeur qui implémente `wlr-layer-shell` — voir le [tableau de compatibilité](#x11-et-wayland).
|
||||||
- **Facultatif :** `pw-play`, `paplay` ou `aplay` pour les sons de clic ; une zone de notification compatible avec le standard StatusNotifierItem (KDE et Xfce le gèrent — testé ; GNOME demande l'extension *AppIndicator*, paquet `gnome-shell-extension-appindicator` sur Debian et Ubuntu — testé sur GNOME 48.7 ; Cinnamon demande le paquet `xapp-sn-watcher`, que Debian ne fait que recommander — testé ; le panneau de MATE ne le gère pas, donc pas d'icône — testé ; ailleurs cela dépend de votre tableau de bord — sans zone de notification, tout fonctionne quand même via la ligne de commande, les raccourcis et la fenêtre de réglages) ; OpenGL pour la fenêtre de réglages.
|
- **Facultatif :** `pw-play`, `paplay` ou `aplay` pour les sons de clic ; une zone de notification compatible avec le standard StatusNotifierItem (KDE et Xfce le gèrent — testé ; GNOME demande l'extension *AppIndicator*, paquet `gnome-shell-extension-appindicator` sur Debian et Ubuntu — testé sur GNOME 48.7 ; Cinnamon demande le paquet `xapp-sn-watcher`, que Debian ne fait que recommander — testé ; le panneau de MATE ne le gère pas, donc pas d'icône — testé ; ailleurs cela dépend de votre tableau de bord — sans zone de notification, tout fonctionne quand même via la ligne de commande, les raccourcis et la fenêtre de réglages) ; OpenGL pour la fenêtre de réglages.
|
||||||
|
|
||||||
|
### Lancement en arrière-plan
|
||||||
|
|
||||||
|
`sourizz` sans sous-commande *est* le démon : il reste attaché au terminal qui l'a lancé et tourne jusqu'à ce que vous l'arrêtiez. Il n'y a pas de mode « résident » à part ; pour le garder actif :
|
||||||
|
|
||||||
|
```sh
|
||||||
|
setsid -f sourizz # détaché du terminal : survit à sa fermeture
|
||||||
|
sourizz status # tourne-t-il ?
|
||||||
|
sourizz quit # l'arrêter
|
||||||
|
sourizz autostart enable # le lancer à chaque ouverture de session (autostart disable pour annuler)
|
||||||
|
```
|
||||||
|
|
||||||
|
`autostart enable` écrit `~/.config/autostart/sourizz.desktop` avec le chemin absolu de l'exécutable. KDE, GNOME, Xfce, Cinnamon et MATE exécutent ces entrées à l'ouverture de session (vérifié sur KDE uniquement). Hyprland et sway ne le font pas par défaut : ajoutez `exec-once = sourizz` à la configuration de Hyprland, ou `exec sourizz` à celle de sway. Lancez le démon depuis l'intérieur de la session graphique (autostart ou configuration du compositeur) pour qu'il hérite de `WAYLAND_DISPLAY` ou de `DISPLAY` ; un service systemd utilisateur ne les reçoit pas toujours, et aucun n'est fourni.
|
||||||
|
|
||||||
## Utilisation
|
## Utilisation
|
||||||
|
|
||||||
**Icône de notification.** Un clic gauche active/désactive tout ; un clic droit ouvre le menu avec chaque effet, le choix des styles, le mode annotation, les réglages et « Quitter ».
|
**Icône de notification.** Un clic gauche active/désactive tout ; un clic droit ouvre le menu avec chaque effet, le choix des styles, le mode annotation, les réglages et « Quitter ».
|
||||||
|
|||||||
@@ -59,6 +59,19 @@ Run-time requirements:
|
|||||||
- **Wayland:** a compositor that implements `wlr-layer-shell` — see the [compatibility table](#x11-and-wayland).
|
- **Wayland:** a compositor that implements `wlr-layer-shell` — see the [compatibility table](#x11-and-wayland).
|
||||||
- **Optional:** `pw-play`, `paplay` or `aplay` for click sounds; a system tray that understands the StatusNotifierItem standard (KDE and Xfce do — tested; GNOME needs the *AppIndicator* extension, packaged as `gnome-shell-extension-appindicator` on Debian and Ubuntu — tested on GNOME 48.7; Cinnamon needs the `xapp-sn-watcher` package, which Debian only recommends — tested; MATE's panel has no support, so no icon — tested; elsewhere it depends on your panel — without a tray everything still works through the command line, hotkeys and the settings window); OpenGL for the settings window.
|
- **Optional:** `pw-play`, `paplay` or `aplay` for click sounds; a system tray that understands the StatusNotifierItem standard (KDE and Xfce do — tested; GNOME needs the *AppIndicator* extension, packaged as `gnome-shell-extension-appindicator` on Debian and Ubuntu — tested on GNOME 48.7; Cinnamon needs the `xapp-sn-watcher` package, which Debian only recommends — tested; MATE's panel has no support, so no icon — tested; elsewhere it depends on your panel — without a tray everything still works through the command line, hotkeys and the settings window); OpenGL for the settings window.
|
||||||
|
|
||||||
|
### Running in the background
|
||||||
|
|
||||||
|
`sourizz` with no subcommand *is* the daemon: it stays attached to the terminal that started it and runs until you stop it. There is no separate "resident" mode, so to keep it around:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
setsid -f sourizz # detached from the terminal: survives closing it
|
||||||
|
sourizz status # is it running?
|
||||||
|
sourizz quit # stop it
|
||||||
|
sourizz autostart enable # start it at every login (autostart disable to undo)
|
||||||
|
```
|
||||||
|
|
||||||
|
`autostart enable` writes `~/.config/autostart/sourizz.desktop` with the absolute path of the executable. KDE, GNOME, Xfce, Cinnamon and MATE run such entries at login (checked on KDE only). Hyprland and sway do not run them by default: put `exec-once = sourizz` in the Hyprland configuration, or `exec sourizz` in sway's. Start the daemon from inside the graphical session (autostart or the compositor's configuration) so that it inherits `WAYLAND_DISPLAY` or `DISPLAY`; a systemd user service does not always receive them, and none is provided.
|
||||||
|
|
||||||
## Using it
|
## Using it
|
||||||
|
|
||||||
**Tray icon.** Left click toggles everything; right click opens the menu with every effect, style pickers, annotation mode, settings and quit.
|
**Tray icon.** Left click toggles everything; right click opens the menu with every effect, style pickers, annotation mode, settings and quit.
|
||||||
|
|||||||
Reference in New Issue
Block a user