You are not logged in.
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
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
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
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
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
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:
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
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
[ Generated in 0.010 seconds, 9 queries executed - Memory usage: 558.97 KiB (Peak: 575.81 KiB) ]