[SOLVED] Sound volume control app

Everything about X, Gnome, KDE, ... and everything running on it

[SOLVED] Sound volume control app

Postby shogun1234 » 2019-08-17 22:32

Right now I use i3wm as my daily working environment. It's fine for programming task. But it's inconvenience for daily usage, particularly the sound volume control. I use volumeicon for controlling desktop volume through hotkey. Although it works, the downside is its icon display is very small (it can't be adjusted and I do not find enough time patching the code because it's not a language I am familiar) that it's nearly invisible for me. Or when adjusting the volume, no beep sound indicating the current volume level. So my ears frequently get hurt e.g. when I open youtube video, sometimes the broadcast is extremely loud that it's a painful experience.

However when trying to reuse gnome sound volume or similar app, it seems that they all depend on a specific desktop environment. So I do not any app similar to volumeicon. I found some others such as volnoti, but it's not good enough compared to volumeicon (just for me but it doesn't mean others would experience the same). Any others suggestions? Many thanks
Last edited by shogun1234 on 2019-08-24 21:45, edited 1 time in total.
shogun1234
 
Posts: 113
Joined: 2006-07-13 08:04

Re: Sound volume control app

Postby ralph.ronnquist » 2019-08-18 00:40

There is ''alsamixer'' which is run in a terminal, and ''qasmixer'' doing the same in its own window. Maybe one of those will work for you.
User avatar
ralph.ronnquist
 
Posts: 320
Joined: 2015-12-19 01:07
Location: Melbourne, Australia

Re: Sound volume control app

Postby Head_on_a_Stick » 2019-08-18 19:48

shogun1234 wrote:the downside is its icon display is very small

Try using libnotify instead, it's an option in the preferences. Needs to have a notification server running though.
User avatar
Head_on_a_Stick
 
Posts: 10377
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Sound volume control app

Postby None1975 » 2019-08-19 12:28

If you use pulseaudio, you can try pasystray. Pasystray enables control of various PulseAudio server settings from the X11 system tray.
OS: Debian Buster / WM: Awesome
Debian Wiki | DontBreakDebian, My config files in github
User avatar
None1975
 
Posts: 920
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: Sound volume control app

Postby shogun1234 » 2019-08-22 18:11

None1975 wrote:If you use pulseaudio, you can try pasystray. Pasystray enables control of various PulseAudio server settings from the X11 system tray.


When launching with command pasystray --always-notify, then pressing media key the console throws following error.

Code: Select all
(pasystray:2533): pasystray-WARNING **: 20:46:14.032: [notify] unable to show notification: g-dbus-error-quark: Error calling StartServiceByName for org.freedesktop.Notifications: GDBus.Error:org.freedesktop.DBus.Error.FileExists: Unit xfce4-notifyd.service failed to load properly: File exists. (18)


This seems to be because I use dunst. Anyway to use dunst instead of xfce4-notifyd?
Code: Select all
$ systemctl --user list-dependencies default.target
default.target
● ├─dunst.service
● └─basic.target
●   ├─paths.target
●   ├─sockets.target
●   │ ├─dbus.socket
●   │ ├─dirmngr.socket
●   │ ├─gpg-agent-browser.socket
●   │ ├─gpg-agent-extra.socket
●   │ ├─gpg-agent-ssh.socket
●   │ ├─gpg-agent.socket
●   │ └─pulseaudio.socket
●   └─timers.target

shogun1234
 
Posts: 113
Joined: 2006-07-13 08:04

Re: Sound volume control app

Postby shogun1234 » 2019-08-22 18:13

ralph.ronnquist wrote:There is ''alsamixer'' which is run in a terminal, and ''qasmixer'' doing the same in its own window. Maybe one of those will work for you.


I use alsamixer as well. Can alsamixer bind with media key? So pressing hotkey can directly change and get notified w/t opening the terminal? I have this question because I can't find doc that mention about this. Thanks
shogun1234
 
Posts: 113
Joined: 2006-07-13 08:04

Re: Sound volume control app

Postby None1975 » 2019-08-23 13:42

shogun1234 wrote:This seems to be because I use dunst. Anyway to use dunst instead of xfce4-notifyd?

Just remove dunst and use xfce4-notifyd. i3 with this notification daemon works very well.
OS: Debian Buster / WM: Awesome
Debian Wiki | DontBreakDebian, My config files in github
User avatar
None1975
 
Posts: 920
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: Sound volume control app

Postby shogun1234 » 2019-08-23 19:15

None1975 wrote:
shogun1234 wrote:This seems to be because I use dunst. Anyway to use dunst instead of xfce4-notifyd?

Just remove dunst and use xfce4-notifyd. i3 with this notification daemon works very well.




1. Remove dunst
Code: Select all
apt-get purge dunst


2. In i3 config (~/.config/i3/config) switching to use pasystray
Code: Select all
exec_always --no-startup-id pasystray --always-notify


This looks much better, many thanks!

One more question. Is it possible to produce beep sound (a bit like hinting the current sound level) when pressing the hot key?Sometimes I do not pay attention to the notification so this is useful for me as well. Anyway this is a minor issue. Most appreciate it!
shogun1234
 
Posts: 113
Joined: 2006-07-13 08:04


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable