You are not logged in.

#1 2009-02-03 21:10:51

kljohann
Member
Registered: 2008-05-31
Posts: 19

Knubbler: Scroll-Thingy for percentage selection (~volwheel) [PyGTK]

Knubbler is a GUI used to enter fractions/percentages by scrolling on a progressbar. This is a very convenient thing to do on touchpads. Knubbler was designed to be used in shell scripts or keybindings.

One use-case is as a rather comfortable way to adjust the volume (or something else) when bound to a button, especially when used with 2-finger-scroll on a touchpad.
(something like volwheel without the trayicon and with a larger area to scroll on.)

You can find the it on AUR: knubbler
Or you can browse the source here
(80x15.png)

Screenshots of window-mode (it's fullscreen by default):
knubbellv9.th.jpg shot20090205t14010100kg3.th.jpg

Some things you could use knubbler for:
Set mwfact for awesome:

echo "awful.tag.setmwfact($(knubbler -t 'set mwfact'))" | awesome-client

Use it like this in your awesome.rc (git HEAD version)
awful.util.spawn('echo "awful.tag.setmwfact($(knubbler '..awful.tag.getmwfact()..' -t "set mwfact"))" | awesome-client')

Set ALSA volume:

amixer set LineOut $(amixer get LineOut | knubbler -p -i -t "adjust volume for <b>LineOut</b>")

Set Screen Backlight:

xbacklight -set $(echo `xbacklight | cut -d. -f1`% | knubbler -t "Set Backlight" -p -i | tr -d %)

Your idea here

Last edited by kljohann (2009-03-19 14:12:46)

Offline

#2 2009-02-05 13:40:15

kljohann
Member
Registered: 2008-05-31
Posts: 19

Re: Knubbler: Scroll-Thingy for percentage selection (~volwheel) [PyGTK]

Added the ability to specify a descriptive text using -t:
shot20090205t14010100kg3.th.jpg

knubbel -t "Set volume for <b>LineOut</b>:" -w 300x400

Offline

#3 2009-02-06 04:08:29

wankel
Member
From: Iowa, USA
Registered: 2008-05-30
Posts: 218
Website

Re: Knubbler: Scroll-Thingy for percentage selection (~volwheel) [PyGTK]

really stupid question, how do I use this?

nevermind, got it working. nice work smile

Last edited by wankel (2009-02-06 04:22:21)

Offline

#4 2009-02-12 14:15:24

kljohann
Member
Registered: 2008-05-31
Posts: 19

Re: Knubbler: Scroll-Thingy for percentage selection (~volwheel) [PyGTK]

I just added an option to display a left-to-right progressbar for cases where it makes more sense.
Best used with touchpads because of their ability to scroll horizontally.

$ knubbler -l
or $ knubbler --left-to-right

Offline

#5 2009-02-12 17:38:34

kljohann
Member
Registered: 2008-05-31
Posts: 19

Re: Knubbler: Scroll-Thingy for percentage selection (~volwheel) [PyGTK]

I've added a manpage and the ability to build a PKGBUILD (which I will eventually upload to AUR).
Until this happens you can do sth. like:

$ bzr branch lp:~kljohann/+junk/knubbler
$ cd knubbler
$ ./configure
$ makepkg
$ pacman -U knubbler-*-1-i686.pkg.tar.gz

EDIT: Added to AUR. See first post (which is restructured now and will be updated regularly.)

Last edited by kljohann (2009-02-12 18:25:18)

Offline

#6 2009-02-14 18:22:16

kljohann
Member
Registered: 2008-05-31
Posts: 19

Re: Knubbler: Scroll-Thingy for percentage selection (~volwheel) [PyGTK]

For all those that were unable to run the previous version. I missed to specify the encoding of the file. As of version 13  it's fixed.

Offline

Board footer

Powered by FluxBB