Giter Club home page Giter Club logo

pa-notify's Introduction

pa-notify

Description

PulseAudio or PipeWire volume notification.

Usage

pa-notify [OPTION…]

Options

Help Options:

  • -h, --help - Show help options

Application Options:

  • -d, --debug - Enable/disable debug information
  • -t, --timeout - Notification timeout in seconds (-1 - default notification timeout, 0 - notification never expires)
  • -u, --urgency - Notification urgency (0 - low, 1 - normal, 2 - critical)

Examples

pa-notify

pa-notify's People

Contributors

flowneee avatar ikrivosheev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

yusi1 aeghn flowneee

pa-notify's Issues

Add CLI option to adjust show time for the notification

This would be very handy, as of current in my opinion the notification stays up too long, it would be handy if there was a CLI option to adjust the notification time.

This is a very handy application, thanks for making this!

`pa-notify` stuck when started as systemd service

I'm trying to run pa-notify as user systemd service on login

[Unit]
Description=PulseAudio or PipeWire volume notification.

[Service]
Environment=G_MESSAGES_DEBUG=all
ExecStart=/usr/bin/pa-notify

[Install]
WantedBy=default.target

But pa-notify get stuck with following log

Dec 13 00:14:46 archlinux systemd[26769]: Started PulseAudio or PipeWire volume notification..
Dec 13 00:14:46 archlinux pa-notify[26779]: Options have been initialized
Dec 13 00:14:46 archlinux pa-notify[26779]: Notify has been initialized
Dec 13 00:14:46 archlinux pa-notify[26779]: pa_mainloop_new
Dec 13 00:14:46 archlinux pa-notify[26779]: pa_mainloop_get_api
Dec 13 00:14:46 archlinux pa-notify[26779]: pa_signal_new SIGINT SIGTERM
Dec 13 00:14:46 archlinux pa-notify[26779]: pa_context_new
Dec 13 00:14:46 archlinux pa-notify[26779]: pa_context_connect
Dec 13 00:14:46 archlinux pa-notify[26779]: pa_context_set_state_callback
Dec 13 00:14:46 archlinux pa-notify[26779]: PulseAudio has been initialized
Dec 13 00:14:46 archlinux pa-notify[26779]: Run loop
Dec 13 00:14:46 archlinux pa-notify[26779]: PulseAudio connection established.
Dec 13 00:14:46 archlinux pa-notify[26779]: New event
Dec 13 00:14:46 archlinux pa-notify[26779]: Sink info
Dec 13 00:14:46 archlinux pa-notify[26779]: SNAP name: (null)
Dec 13 00:14:46 archlinux pa-notify[26779]: SNAP app: (null)
Dec 13 00:14:46 archlinux pa-notify[26779]: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)

I also tried to add After/Requires on pipewire and pipewire-pulse services, as well as add TimeoutStartSec, but nothing works. If I start it manually from console (either as $ pa-notify or $ systemctl --user start pa-notify) it works.

UPD:

I noticed that it unstuck after some time

Dec 13 00:14:46 archlinux pa-notify[26779]: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
Dec 13 00:15:11 archlinux pa-notify[26779]: Sink info
Dec 13 00:15:11 archlinux pa-notify[26779]: New event

Icons not found

I noticed that notifications, sent by pa-notify, doesn't have any icons. I use dunst. I dug a little and noticed that all installed themes (Adwaita - default for dunst, Arc, elementary) - all have *-symbolic icons only (ie audio-volume-low-symbolic). I checked with another program (xfce4-power-manager) - it also send -symbolic icons. I was unable to understand how really should icons work, but it could be helpful to add some CLI option to use (basically append) -symbolic icons instead of usual (as far as i understood they are legacy now).

Also I think urgency could be configurable as well.

If all this makes sense to you, i'll submit PR

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.