Xfce Wiki

Sub domains
 

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.

Back to Top

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.

Back to Top

Latest Release

  • xfce4-generic-slider 1.0.0 released (2023/05/26 19:00)
    xfce4-generic-slider 1.0.0 is now available for download from https://archive.xfce.org/src/panel-plugins/xfce4-generic-slider/1.0/xfce4-generic-slider-1.0.0.tar.bz2 https://archive.xfce.org/src/panel-plugins/xfce4-generic-slider/1.0/xfce4-generic-slider-1.0.0.tar.bz2?sha1 https://archive.xfce.org/src/panel-plugins/xfce4-generic-slider/1.0/xfce4-generic-slider-1.0.0.tar.bz2?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.0.0 ======================= - Keep original svg with exported png also in 128x128 - Update icon name in desktop file - Update configure.ac.in to include icon directories - Add icons and update makefiles - Add app icon - Fix appearance of the context menu directly after adjusting - Fix memory leak - Use glib to prepare adjust command - Fix memory leak - Properly initialize default color in prefs dialog - Improve prefs dialog - Enable translations and translate more strings - Remove explicit GObject calls - Fix crash while parsing - Block menu while configuring - Change whitespace - readme: Fix typo - Remove module.xml - Fix typo in metadata - Fix them in a better way - Fix compiler warnings - Use g_free() instead of free() - build: autogen.sh cleanup - Add basic GitLab pipeline - build: Fix intltool lock file problem during make distcheck - Update copyright year and bug report address - build: Add missing includes - build: Add GLib requirement - build: Fix autotools warnings - Raise the adjustment limits - Give this the right extension - Fill in README - Update color support - Drop support for old panels - Change the packing order - Use GtkGrid instead of GtkTable - Stop using some things - Make it build with GTK3 - Use plugin API 2.0 - Remove 'sample' mentions. - Revamp of the build system - Allow higher denominators - Remove accidental debugging printfs - Rotate label properly in deskbar mode - Fewer compiler warnings - Be much better about using the built-in string functions - Removing deprecated GTK_DIALOG_NO_SEPARATOR - Change the time delay constants - Reject non-numeric characters instead of working around them - Switch to a simple icon that most people should have - Be more careful about freeing empty strings - Remove some errors in how I casted variables - Write an rc file without relying on the save signal - Added empty string safeguards for when the plugin is unconfigured - And they were still reversed after that - Preprocessor directives were reversed - The gui4 headers should be 4util headers - Allow mode changing in xfce4-panel 4.9 - Better default install directory - GSEAL compliance except for the Xfce stuff - Leave the CFLAGS untouched - Link against the right libraries for use with xfce4-panel 4.8 - Fixed zombie process bug - Added module.xml - Initial commit - Translation Updates: Albanian, Bulgarian, Chinese (China), Chinese (Taiwan), Dutch, English (United Kingdom), Finnish, French, German, Hebrew, Indonesian, Interlingue, Italian, Japanese, Lithuanian, Norwegian Bokmål, Polish, Portuguese, Russian, Serbian, Slovak, Slovenian, Swedish, Turkish, Ukrainian

Back to Top


Source code repository

Reporting Bugs


Back to xfce4-panel main page