This is an old revision of the document!
xfce4-generic-slider
Introduction
Xfce4-generic-slider is a tool to help Xfce users deal with a variable which they wish to both GET and SET. The getting side is similar to what xfce4-genmon-plugin does except the command's numerical output is represented visually in a slider. Dragging the slider is then used to set the value through calls to a second command.
Screenshots
Installation
To clone the source tree and build the package, you will need the Xfce development libraries:
% git clone https://gitlab.xfce.org/panel-plugins/xfce4-generic-slider.git % cd xfce4-generic-slider % ./autogen.sh % make % make install
Be sure to specify an installation prefix / DESTDIR
so that it goes to the right place.
Configuration
Once xfce4-generic-slider
is running in your panel, you can change the color of the slider and set whether a label appears beside it. To actually use it, you need to setup three references to the variable you're interested in. Here's an example of how to make a slider for the volume:
Adjust this command: amixer set PCM %v Denominator for adjusting: 255 Synchronize with this command: amixer get PCM | tail -1 | awk '{print $4}' Denominator for synchronizing: 255 Label for slider: PCM: %v Denominator for label: 255
When the slider is dragged to a certain fraction, this fraction times 255 will be passed to amixer set
. When another application changes the volume, the slider will call amixer get
to determine what the returned number is as a fraction of 255. Note that the right denominator can differ depending on the sound card.
Latest Release
- xfce4-generic-slider 1.1.0 released (2025/05/19 17:52)xfce4-generic-slider 1.1.0 is now available for download from https://archive.xfce.org/src/panel-plugins/xfce4-generic-slider/1.1/xfce4-generic-slider-1.1.0.tar.xz https://archive.xfce.org/src/panel-plugins/xfce4-generic-slider/1.1/xfce4-generic-slider-1.1.0.tar.xz?sha1 https://archive.xfce.org/src/panel-plugins/xfce4-generic-slider/1.1/xfce4-generic-slider-1.1.0.tar.xz?sha256 What is xfce4-generic-slider? ============================= Xfce4-generic-slider is a tool to help Xfce users deal with a variable which they wish to both GET and SET. The getting side is similar to what xfce4-genmon-plugin does except the command's numerical output is represented visually in a slider. Dragging the slider is then used to set the value through calls to a second command. Website: https://docs.xfce.org/panel-plugins/xfce4-generic-slider/start Release notes for 1.1.0 ======================= Meson has been added as a build system in this release, and the associated archive has been generated by 'meson dist'. Although autotools has been retained for the time being and can still be used via 'autogen.sh', meson is now the preferred build system, and autotools will be removed in a future release. - Update README after switchover to meson - autotools-build: Explicitly require glib, gtk3 - meson-build: Use shared_module() - I18n: Update po/LINGUAS list - Add about dialog - Add meson build - autotools-build: Explicitly require libxfce4util - Translation Updates: Estonian, Slovak