Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-03-04 01:58:10

advice1010
Member
Registered: 2023-02-19
Posts: 116
LinuxChrome 130.0

Is it possible to customize volume notification slider

I was wondering if it was possible to customize the GUI of the xfce4-pulseaudio-plugin volume notification dialog?
I am referring to the notification dialog that shows horizontal volume bar slider.
Wondering if can customize using something like gtk.css file?
For example the horizontal slider on my system has a very narrow height slider which is hard to see.
Also the background color is a dark gray and the blue fill color of the volume slider is dark blue so the color contrast is difficult to see as well.
Does anyone know if it is possible to modify any of these items mentioned above?

Thank You

Offline

#2 2025-03-04 02:09:30

him610
Member
From: Pennsylvania USA
Registered: 2022-02-19
Posts: 27
LinuxChrome 133.0

Re: Is it possible to customize volume notification slider

To change the backgound color:
Settings -> Appearance -> Style - select a non-dark style


Do no harm.
Respect ones neighbors.
Especially old friends.

Offline

#3 2025-03-04 11:53:54

eriefisher
Wanderer
From: ON, Canada
Registered: 2008-10-25
Posts: 672
LinuxFirefox 135.0

Re: Is it possible to customize volume notification slider

There is some adjustments you can make through settings>>notifications>>appearance.


I AM CANADIAN!
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc

Offline

#4 2025-03-05 00:08:29

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,815
LinuxFirefox 135.0

Re: Is it possible to customize volume notification slider

You can also target those elements with css.

For example the horizontal slider on my system has a very narrow height slider which is hard to see.

#pulseaudio-button .popup scale slider { padding: 5px }

Also the background color is a dark gray and the blue fill color of the volume slider is dark blue so the color contrast is difficult to see as well.

#pulseaudio-button .popup scale trough highlight { background-color: red; }

Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2025-03-07 21:53:33

advice1010
Member
Registered: 2023-02-19
Posts: 116
LinuxChrome 130.0

Re: Is it possible to customize volume notification slider

Thank you guys for the responses

Know about theme, do not want to change theme.

Notifications - Appearance settings do not contain any of the adjustments I am looking for

Was hoping this could be achieve in gtk.css
The two items mentioned for css are for the pulseaudio button, which opens up a dialog above the panel icon when the icon "button" is clicked on.  I am speaking of the "Noification" dialog that shows up when volume is adjusted, for example when you mouse scroll on the icon "button" it shows volume meter notification dialog in the same location where all application notifications appear on screen.

I do not think this is possible unfortunately, but if anyone has any other ideas please let me know.
Thank You

Offline

#6 2025-03-07 22:19:10

k3dAR
Member
From: Czech Republic
Registered: 2022-07-27
Posts: 107
LinuxChrome 134.0

Re: Is it possible to customize volume notification slider

advice1010 wrote:

[...] I do not think this is possible unfortunately, but if anyone has any other ideas please let me know.

If you use Xfce 4.20 on Wayland, you can disable pulseaudio-plugin notification, and use 3rd tool avizo which is "highly" customisable ;-)

edit: although on project page is mentioned Sway (and i use it on Xfce@Wayland), it seems work also with Xfce@X11, but with window decoration titlebar :-) and don's see any option switch to disable it...

Last edited by k3dAR (2025-03-07 22:32:15)

Offline

#7 2025-03-08 02:00:00

PackRat
Member
Registered: 2024-09-24
Posts: 23
LinuxFirefox 136.0

Re: Is it possible to customize volume notification slider

advice1010 wrote:

Thank you guys for the responses

Was hoping this could be achieve in gtk.css

That is possible. For an example, look in the /usr/share/themes/ZOMG-PONIES! folder and you will find the xfce-notify-4.0 folder.

That folder contains the gtk.css file for configuring the notification popup. The sections concerning the progress bar will be what you want to edit. If you want a wider progress bar/volume slider edit the progressbar trough.

Once you have the gtk.css file the way you want it, create the xfce-notify-4.0 folder in the theme you want to use and select it from the Notifications setting in the menu.

hFJVRU15_t.png

Last edited by PackRat (2025-03-08 02:03:43)

Offline

#8 2025-03-10 01:02:53

advice1010
Member
Registered: 2023-02-19
Posts: 116
LinuxChrome 130.0

Re: Is it possible to customize volume notification slider

Thank you guys for the responses.
@k3dAR
I am not using Wayland yet but will look into this in the future.

@PackRat
What! I have seen this folder in a couple of theme folders before and never knew what this was for.
I see why you recommended the ZOMG-PONIES theme, it already has a thicker volume fader by default, and also great colors smile
Wow, this is great information thank you so much for sharing this.

------------------------------------------------------------------------------------------
Now have me wondering what else is possible.
Had looked up the following items in the past and never found any information about this, if anyone has any ideas please let me know.

Other Questions If Anyone Is Interested
-Changing position of notification dialogs?
I know there is a drop down for this in Notifications - Appearance but was wondering if users can adjust more specifically, moving dialogs to an exact location?
Especially if the next item about change size is possible.

-Changing size of notification dialogs?
Does anyone know if it is possible to change the height and width of the actual dialog box itself?
or is this a static size that cannot be changed in css for something like this.

-Use different two different dialogs, one for volume and one for all other notifications?
(Probably will not matter if location and size items mentioned above cannot be changed but)
I never liked how volume used the same dialog location/size/settings as other notification dialogs.
For example what if user wanted volume fader to appear in center of screen but notifications to appear in upper right.
I do not think it is possible to get this specific, but does anyone know if it is possible to use two different dialogs, one for volume and one for all other notifications?
Would like to be able to customize the volume dialog differently and maybe change its location.

Thank you to anyone who reads this

Last edited by advice1010 (2025-03-10 01:06:36)

Offline

#9 2025-03-10 01:33:39

k3dAR
Member
From: Czech Republic
Registered: 2022-07-27
Posts: 107
LinuxChrome 134.0

Re: Is it possible to customize volume notification slider

advice1010 wrote:

Thank you guys for the responses.
@k3dAR
I am not using Wayland yet but will look into this in the future.

with avizo is for all your question answer yes ;-) as i write, work in X11 too, but with windows decoration, you can try it ;-)

Offline

#10 2025-03-22 00:51:50

advice1010
Member
Registered: 2023-02-19
Posts: 116
LinuxChrome 130.0

Re: Is it possible to customize volume notification slider

Thank you for the response.
You had mentioned that was only for Wayland, you think it will work on X11?

Ideally I would like to be able to achieve this with a built in solution, such as CSS, if it is possible?
Still interested if anyone knows more about this.
Would think this information would have to be stored somewhere in XFCE, just hope that it is not hard coded.

If it is hard coded I will look more into the recommended "avizo", if it works on X11.
Ahh also it needs to be compiled / not in my repo.

Thank You

Last edited by advice1010 (2025-03-22 00:53:45)

Offline

#11 2025-03-22 18:59:35

k3dAR
Member
From: Czech Republic
Registered: 2022-07-27
Posts: 107
LinuxChrome 134.0

Re: Is it possible to customize volume notification slider

as i write:

k3dAR wrote:

[...] although on project page is mentioned Sway (and i use it on Xfce@Wayland), it seems work also with Xfce@X11, but with window decoration titlebar  [...]

before write it ^ i try in X11 session myself ;-)

anyway i found stock notify with progress can be customized by css in: /usr/share/themes/YourThemeName/xfce-notify-4.0/gtk.css

#XfceNotifyWindow progressbar progress {
    background-color: red;
    min-height: 15px;
}

- don't change whole section in your current css to this ^ , only change or add coresponding line (background-color and min-height)
- if your theme don't have xfce-notify-4.0 subdir, then create it and create gtk.css file or copy from ex. Greybird or Greybird-dark
- also is not good edit theme in /usr/share/theme system path, as change be replaced by future package (with this theme) update,
so make a copy to ~/.local/share/themes/ and edit it here ;-)

EDIT: after you make change in .../xfce-notify-4.0/gtk.css for apply is not need/enough change Settings/Apperance/Style to another and back, but this is need in Settings/Notification/Apperance/Theme

Last edited by k3dAR (2025-03-22 19:05:35)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 8 queries executed - Memory usage: 601.31 KiB (Peak: 618.16 KiB) ]