Compare commits

...

2 Commits

Author SHA1 Message Date
4ebf6dd715 Add version and startup message 2024-03-10 03:24:11 +01:00
94c9c76eac Add README 2024-03-10 03:22:57 +01:00
2 changed files with 9 additions and 0 deletions

6
README.md Normal file
View File

@ -0,0 +1,6 @@
# ghettoptt
Janky workaround for mumble ptt on Wayland.
Listens to evdev input, and uses dbus to start and stop talking in mumble

View File

@ -11,6 +11,8 @@ import (
"github.com/holoplot/go-evdev"
)
const Version = "v0.1.1"
func main() {
// Setup logger
h := slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{Level: slog.LevelInfo})
@ -48,6 +50,7 @@ func main() {
}()
// Start listening for PTT key
slog.Info("Starting event listener", "version", Version)
for !done {
ev, err := input.ReadOne()
if err != nil {