Skip to content

Commit

Permalink
Use PW
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimiblock committed May 14, 2024
1 parent 66b4702 commit 03631ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@

[![Go](https://github.com/Kimiblock/snotify/actions/workflows/go.yml/badge.svg)](https://github.com/Kimiblock/snotify/actions/workflows/go.yml)

Notifications, with sound.
Audible Notifications.

# Packages

[AUR](https://aur.archlinux.org/packages/snotify-git)
[AUR](https://aur.archlinux.org/packages/snotify)

[AUR (Git)](https://aur.archlinux.org/packages/snotify-git)

# Usage

Requires Pipewire sound server.

Install the AUR package, then enable **user** service `snotify.service`.

# Credits
Expand Down
2 changes: 1 addition & 1 deletion snotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func playSoundOnNewLine() {
}

func playSound() {
soundCmd := exec.Command("mpv", "--audio-client-name=snotify", "--no-video", "--no-terminal", "--no-audio-display", "--no-config", "--really-quiet", "--volume=80", "/opt/snotify/message.ogg")
soundCmd := exec.Command("pw-play", "/opt/snotify/message.ogg")
if err := soundCmd.Start(); err != nil {
fmt.Println("Error playing sound:", err)
return
Expand Down
3 changes: 2 additions & 1 deletion snotify.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[Unit]
Description=Snotify user daemon
Description=Audible Notifications
After=dbus.service
Requires=pipewire.service

[Service]
ExecStart=/usr/bin/snotify
Expand Down

0 comments on commit 03631ef

Please sign in to comment.