You are not logged in.
is it possible to make the panel look like the panel in the picture in xfce 4.18?
Last edited by dotw (2023-12-12 06:19:32)
Offline
Almost anything is possible with Xfce
Without mentioning specifically what you are interested in, it is a combination of icon theme and plugins. The ones on the right with the icon and text look like the xfce4-genmon-plugin. At that page in the "Example Scripts" section, there are links to external pages that contain genmon scripts to accomplish similar outputs.
Perhaps there is more info from the location where you found that screenshot?
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Greetings!
Although this can get a bit messy, several xfce panels can get "stacked" in the same general position (even atop each other). For example, along the screen's bottom edge, your "launchers panel" can have larger buttons lined up from left-to-middle, and your "system-tray panel" can have smaller icons lined up from right-to-middle; then centered on the screen's top edge, your "windows-button panel" can be centered and auto-expand to both edges as more apps get opened -- it is amazing just how configurable the whole system is, imho ...
Cheers, m4a
Linux Mint 21.3 -- xfce 4.18 ... Apple iMAC -- Lenovo, Dell, HP Desktops and Laptops -- Family & Community Support
Offline
Almost anything is possible with Xfce
Without mentioning specifically what you are interested in, it is a combination of icon theme and plugins. The ones on the right with the icon and text look like the xfce4-genmon-plugin. At that page in the "Example Scripts" section, there are links to external pages that contain genmon scripts to accomplish similar outputs.
Perhaps there is more info from the location where you found that screenshot?
how can i make the panel show the percentage of volume in text beside the icon?
Offline
Assuming pulseaudio, you can use a script like this:
#!/bin/bash
# get the current volume
VOLUME=$(pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,')
# set the proper icon
if [ $VOLUME -eq 0 ]; then
ICON="audio-volume-muted-symbolic"
elif [ $VOLUME -le 30 ]; then
ICON="audio-volume-low-symbolic"
elif [ $VOLUME -le 70 ]; then
ICON="audio-volume-medium-symbolic"
else
ICON="audio-volume-high-symbolic"
fi
# do the genmon
echo "<icon>$ICON</icon>"
echo "<txt> $VOLUME% </txt>"
echo "<tool>Current volume: $VOLUME</tool>"
exit 0
Make the script executable. Add the genmon plugin to the panel and set it's properties to:
- Command = path/to/this/script
- Label = unchecked
- Period = 1s
- Font = your choice
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
it worked but clicking on that icon does not do anything, i have to click on the pulseaudio icon like before
Offline
it worked but clicking on that icon does not do anything, i have to click on the pulseaudio icon like before
What exactly do you want to happen when you click on the icon? A volume slider might be tough to do, but to open pavucontrol, use this instead:
#!/bin/bash
# get the current volume
VOLUME=$(pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,')
# set the proper icon
if [ $VOLUME -eq 0 ]; then
ICON="audio-volume-muted-symbolic"
elif [ $VOLUME -le 30 ]; then
ICON="audio-volume-low-symbolic"
elif [ $VOLUME -le 70 ]; then
ICON="audio-volume-medium-symbolic"
else
ICON="audio-volume-high-symbolic"
fi
# do the genmon
echo "<icon>$ICON</icon>"
echo "<txt> $VOLUME% </txt>"
echo "<iconlick>pavucontrol</iconclick>"
echo "<tool>Current volume: $VOLUME</tool>"
exit 0
Or alternatively, you could put a genmon plugin next to the pulseaudio plugin - the pulseaudio plugin gives you the click functionality, the genmon plugin the value:
#!/bin/bash
# get the current volume
VOLUME=$(pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,')
# set the proper icon
if [ $VOLUME -eq 0 ]; then
ICON="audio-volume-muted-symbolic"
elif [ $VOLUME -le 30 ]; then
ICON="audio-volume-low-symbolic"
elif [ $VOLUME -le 70 ]; then
ICON="audio-volume-medium-symbolic"
else
ICON="audio-volume-high-symbolic"
fi
# do the genmon
echo "<txt> $VOLUME% </txt>"
echo "<tool>Current volume: $VOLUME</tool>"
exit 0
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 548.13 KiB (Peak: 548.98 KiB) ]