Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-02-03 00:11:10

simeon9997
Member
Registered: 2025-01-16
Posts: 7
LinuxChrome 132.0

Reduce size of pulse audio and power manager buttons in the panel

I've been trying to figure this out all day and haven't gotten anywhere so I'm coming to you guys. I'll cut to the chase, is there a way to use genmon to launch the "xfce-power-manager-plugin" "pulseaudio-button" apps? I thought of this because it's impossible to make these plugins not be square buttons, I want to make the button a vertical rectangle instead of a square because the spacing isn't uniform with the status bar buttons. I know you can make square buttons for the system tray but even though they're uniform the icons take up a huge amount of space. And reducing the height of the panel makes it harder for me to see.

Offline

#2 2025-02-03 11:26:21

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,717
LinuxFirefox 134.0

Re: Reduce size of pulse audio and power manager buttons in the panel

I want to make the button a vertical rectangle instead of a square because the spacing isn't uniform with the status bar buttons.

You can try adding padding to the left and right. Something like:

#pulseaudio-button {padding-left: 10px; padding-right: 10px;}

...adjust the pixel values to suit.

is there a way to use genmon to launch the "xfce-power-manager-plugin" "pulseaudio-button" apps?

Have a look at these scripts.


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

#3 2025-02-03 11:51:28

simeon9997
Member
Registered: 2025-01-16
Posts: 7
LinuxChrome 132.0

Re: Reduce size of pulse audio and power manager buttons in the panel

ToZ wrote:

I want to make the button a vertical rectangle instead of a square because the spacing isn't uniform with the status bar buttons.

You can try adding padding to the left and right. Something like:

#pulseaudio-button {padding-left: 10px; padding-right: 10px;}

...adjust the pixel values to suit.

is there a way to use genmon to launch the "xfce-power-manager-plugin" "pulseaudio-button" apps?

Have a look at these scripts.

Hi and thanks for replying. Regarding the first point, I've tried that command before, but unfortunately it doesn't shrink the button enough, even at the lowest possible value the button is huge compared to the ones in the status tray. Regarding genmon I've been reading the documentation, if I'm not mistaken I need an image as an icon, and a command to be executed when I click on the icon. So how do I write the command that causes a click on "pulseaudio-button" in the panel?, and also for the power manager.

Offline

#4 2025-02-03 20:36:44

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,717
LinuxFirefox 134.0

Re: Reduce size of pulse audio and power manager buttons in the panel

Hi and thanks for replying. Regarding the first point, I've tried that command before, but unfortunately it doesn't shrink the button enough, even at the lowest possible value the button is huge compared to the ones in the status tray.

Can you post an image? Perhaps the icon size can be shrunk? See: https://forum.xfce.org/viewtopic.php?id=15209.

So how do I write the command that causes a click on "pulseaudio-button" in the panel?, and also for the power manager.

For the power manager plugin, something like:

echo "<img>/path/to/image/file</img><click>xfce4-power-manager-settings</click><tool></tool>"

The Pulseadui plugin doesn't have a specific command to fire up its properties page, but you can start pavucontrol:

echo "<img>/path/to/image/file</img><click>pavucontrol</click><tool></tool>"

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-02-03 22:47:09

k3dAR
Member
From: Czech Republic
Registered: 2022-07-27
Posts: 58
LinuxChrome 132.0

Re: Reduce size of pulse audio and power manager buttons in the panel

ToZ wrote:
echo "<img>/path/to/image/file</img><click>xfce4-power-manager-settings</click><tool></tool>"

BTW: still not same as clicking on applet, but for opening in battery tab:

xfce4-power-manager-settings -d .

or to open with selected specific device, list path with "upower -e" and:

xfce4-power-manager-settings -d /org/freedesktop/UPower/devices/name_from_upower_output

Offline

#6 2025-02-04 13:27:19

simeon9997
Member
Registered: 2025-01-16
Posts: 7
LinuxChrome 132.0

Re: Reduce size of pulse audio and power manager buttons in the panel

k3dAR wrote:
ToZ wrote:
echo "<img>/path/to/image/file</img><click>xfce4-power-manager-settings</click><tool></tool>"

BTW: still not same as clicking on applet, but for opening in battery tab:

xfce4-power-manager-settings -d .

or to open with selected specific device, list path with "upower -e" and:

xfce4-power-manager-settings -d /org/freedesktop/UPower/devices/name_from_upower_output

I understand. The result is not what I was looking for initially but I'm moving forward.. Thanks!. Both of you are telling me that there is no such command that can emulate the click in the panel power manager plugin?.
I'm talking about this:

jHjmZ47.png

If it doesn't exist then I'll settle for "xfce4-power-manager-settings -d ."

Last edited by simeon9997 (2025-02-04 13:28:25)

Offline

#7 2025-02-04 18:17:06

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,717
Windows 10Microsoft Edge 132.0

Re: Reduce size of pulse audio and power manager buttons in the panel

You could use xdotool to move the mouse cursor to a specific location on your screen and then initiate a click event. Something like:

xdotool mousemove 1000 5 click 1

...you'll need to set the actual geometry location on your screen to the actual location of power-manager or puluseaudio plugins.


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

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 9 queries executed - Memory usage: 558.97 KiB (Peak: 575.81 KiB) ]