feat: implement Linux global hotkey support using X11 and XDG portal backends with integrated media controls.

This commit is contained in:
jahruz67
2026-05-08 16:43:15 -07:00
parent f71d6ccd1d
commit 53637c6083
15 changed files with 845 additions and 243 deletions
+3 -1
View File
@@ -3,6 +3,8 @@ package linux
import (
"os/exec"
"strings"
"wis-free-v3/internal/logger"
)
@@ -13,7 +15,7 @@ func IsPlaying() bool {
if err != nil {
return false
}
return string(out) == "Playing\n"
return strings.EqualFold(strings.TrimSpace(string(out)), "playing")
}
// TogglePlayPause sends the play-pause command via playerctl