Rename package

This commit is contained in:
Kristóf Tóth 2020-09-08 16:24:27 +02:00
parent 9747cfe33b
commit b27bf63162
4 changed files with 11 additions and 9 deletions

View File

@ -1,3 +1,5 @@
# KDE Lockscreen Suspend Display (KDE LSD)
## What?
KDE Plasma (as of 5.19.4) lacks the funcionality of hybernating your display after locking your computer.
@ -8,5 +10,5 @@ This whole started as a simple bash script (`proof-of-concept.sh`) using `qdbus`
However, it had an annoying defect: the screen would hybernate after the timeout no matter what (i.e. the display could turn off while you were typing your password to unlock the machine).
To remedy this defect I've decided to monitor keypresses via `/dev/input` and rewrite the whole thing in golang to provide proper debouncing (i.e. the timeout resets if you start typing).
Beware this is a quick&dirty hack. Instead of calling `qdbus` and `xset` from golang, the proper dbus API should be used.
Instead of registering a go binary to execute once the lockscreen is active (`System Settings -> Notifications -> Application Settings -> Screen Saver`) the whole thing should probably be rewritten in C++ and contributed to KDE instead.
Beware this is a quick&dirty hack. Instead of calling `qdbus` and `xset` from golang, proper dbus bindings should be used.
Instead of registering a go binary to execute once the lockscreen is active (`System Settings -> Notifications -> Application Settings -> Screen Saver`), the whole thing should probably be rewritten in C++ and contributed to KDE.

View File

@ -1,11 +1,11 @@
package main
import (
"after-lock/afterlock"
"after-lock/xdg/display"
"after-lock/xdg/keypressdetector"
"after-lock/xdg/lockscreen"
"after-lock/lockfile"
"kdelsd/afterlock"
"kdelsd/xdg/display"
"kdelsd/xdg/keypressdetector"
"kdelsd/xdg/lockscreen"
"kdelsd/lockfile"
"os"
"runtime/debug"
"log"

2
go.mod
View File

@ -1,3 +1,3 @@
module after-lock
module kdelsd
go 1.15

View File

@ -5,7 +5,7 @@ import (
"os"
"testing"
"after-lock/lockfile"
"kdelsd/lockfile"
)