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? ## What?
KDE Plasma (as of 5.19.4) lacks the funcionality of hybernating your display after locking your computer. 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). 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). 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. 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 instead. 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 package main
import ( import (
"after-lock/afterlock" "kdelsd/afterlock"
"after-lock/xdg/display" "kdelsd/xdg/display"
"after-lock/xdg/keypressdetector" "kdelsd/xdg/keypressdetector"
"after-lock/xdg/lockscreen" "kdelsd/xdg/lockscreen"
"after-lock/lockfile" "kdelsd/lockfile"
"os" "os"
"runtime/debug" "runtime/debug"
"log" "log"

2
go.mod
View File

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

View File

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