Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-12-12 06:18:36

dotw
Member
Registered: 2023-08-10
Posts: 7

how can i make the panel look like this?

is it possible to make the panel look like the panel in the picture in xfce 4.18?
panel

Last edited by dotw (2023-12-12 06:19:32)

Offline

#2 2023-12-12 11:31:30

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,992

Re: how can i make the panel look like this?

Almost anything is possible with Xfce smile

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

#3 2023-12-12 16:16:57

mint4all
Member
From: off the map
Registered: 2018-08-21
Posts: 265

Re: how can i make the panel look like this?

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.2 -- xfce 4.18 ... Apple iMAC -- Dell & HP Desktops and Laptops -- Family & Community Support

Offline

#4 2023-12-13 06:39:21

dotw
Member
Registered: 2023-08-10
Posts: 7

Re: how can i make the panel look like this?

ToZ wrote:

Almost anything is possible with Xfce smile

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

#5 2023-12-13 11:06:01

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,992

Re: how can i make the panel look like this?

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

gvol.png


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

#6 2023-12-14 17:00:04

dotw
Member
Registered: 2023-08-10
Posts: 7

Re: how can i make the panel look like this?

it worked but clicking on that icon does not do anything, i have to click on the pulseaudio icon like before

Offline

#7 2023-12-14 17:22:09

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,992

Re: how can i make the panel look like this?

dotw wrote:

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

Board footer

Powered by FluxBB