pub / sguard

Suspend Guard for the PhoneShell "Phosh"
git clone https://src.jayvii.de/pub/sguard.git
Home | Log | Files | Exports | Refs | README | RSS

commit 69108c6c4c3be004affbcf45808feb58dca519fc
parent 37606ec63bce7c0dd8eaaa098b87674a6e20dfd2
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat, 29 Jun 2024 21:29:13 +0200

feat: re-format readme

Diffstat:
MREADME.md | 14++++++++------
DREADME.md.license | 2--
2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md @@ -25,10 +25,10 @@ phosh. ## Wouldn't it be better to check mpris for the current player state? -Indeed, that would be a _cleaner_ approach, and the [script did exactly that for -a while](https://src.jayvii.de/pub/pinephone-scripts/commit/ea05e205a1315464bb9ebda0ad86493eb844e395.html). -However, it turns out that phosh handles MediaPlayer/mpris events in an odd way, -such that it does not report any playing state, when the screen is locked. +Indeed, that would be a _cleaner_ approach, and the script did exactly that +for a while. However, it turns out that phosh handles MediaPlayer/mpris events +in an odd way, such that it does not report any playing state, when the screen +is locked. Additionally, some applications do not support mpris and would therefore be unable to trigger the suspend-inhibit. @@ -36,7 +36,8 @@ unable to trigger the suspend-inhibit. ## Use sguard Just download this source directory, and run the Makefile: -``` + +```bash git clone https://src.jayvii.de/pub/pinephone-scripts.git cd pinephone-scripts/sguard make install @@ -45,7 +46,8 @@ make install This will place `sguard.sh` into `~/.local/bin/sguard.sh` and place the systemd-service file under your user's directory. You can enable & start sguard with: -``` + +```bash systemctl --user enable sguard --now ``` diff --git a/README.md.license b/README.md.license @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: 2021 JayVii -SPDX-License-Identifier: GPL-3.0-or-later