diff --git a/README.md b/README.md index 0cbfc3a..9e1801a 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/cmd/after-lock/after-lock.go b/cmd/after-lock/after-lock.go index 0162e90..ae237c1 100644 --- a/cmd/after-lock/after-lock.go +++ b/cmd/after-lock/after-lock.go @@ -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" diff --git a/go.mod b/go.mod index 33fcada..c87bb21 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module after-lock +module kdelsd go 1.15 diff --git a/lockfile/lockfile_test.go b/lockfile/lockfile_test.go index 5a73274..491f29a 100644 --- a/lockfile/lockfile_test.go +++ b/lockfile/lockfile_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "after-lock/lockfile" + "kdelsd/lockfile" )