You are not logged in.

#1 2007-02-22 22:11:45

mazu
Member
From: Poland
Registered: 2007-02-17
Posts: 6

Volume bar (hotkeys, KDE)

Hello,
Is it possible to configure Arch (KDE) to display a nice bar with volume when I press my volume up, down hotkeys (the hotkeys are configured with acerhk module and codes added with xmodmap, KDE now recognise them). I remember I had something like this under ubuntu, but I don't know if it was a part of kde or something 'ubuntu specific'.

mazu

Offline

#2 2007-02-23 10:05:08

funkyou
Member
From: Berlin, DE
Registered: 2006-03-19
Posts: 848
Website

Re: Volume bar (hotkeys, KDE)

As far as i know its not a KDE patch or something, maybe its this one


want a modular and tweaked KDE for arch? try kdemod

Offline

#3 2007-07-22 13:21:38

RazZziel
Member
From: Spain
Registered: 2007-07-13
Posts: 36

Re: Volume bar (hotkeys, KDE)

In theory, if kmilo service is working, it will display the volume bar you want when turning the volume up or down, working together with kmix. Hotkeys package, as far as I know, instead of displaying a qt volume bar like kmilo does, works with xosd library (however, I've not seen it working)

Last edited by RazZziel (2007-07-22 13:24:46)

Offline

#4 2007-07-22 18:58:00

hacosta
Member
From: Mexico
Registered: 2006-10-22
Posts: 423

Re: Volume bar (hotkeys, KDE)

go to kcontrol->regional -> keyboard layout

choose your laptop or desktop, if it's not in the list, take a guess, most have the same assigned keys, try it, if it works, get rido of xmodmap so the events don't do two actions.. ok that's all

Offline

#5 2007-07-22 20:33:14

SiD
Member
From: Germany
Registered: 2006-09-21
Posts: 729

Re: Volume bar (hotkeys, KDE)

this script inc./dec (alsa) volume via amixer and shows a volume-bar via xosd (osd_cat).

#!/bin/bash
case $1 in
+)
       amixer set PCM 2dB+
       ;;
-)
       amixer set PCM 2dB-
       ;;
*)
       exit 
       ;;
esac
VOLUME=`amixer get PCM | sed -ne '/Front Left/s/.*\[\(.*\)%\].*/\1/p'`
osd_cat --font -*-terminus-*-*-*-*-*-*-*-*-*-*-*-* --colour=Green --shadow 1 \
--pos bottom --align center --offset 80 --delay=1 -b percentage -P $VOLUME -T Volume

I use xbindkeys to run the script if I press  the vol. up or down keys on my keyboard.

This is the part for the volume keys of my .xbindkeysrc file (I saved the script as volume-xosd)

# PCM Volume up (Fn + up_arrow)
"/usr/local/bin/volume-xosd +"
  c:176 + m:0x0

# PCM Volume down (Fn + down_arrow)
"/usr/local/bin/volume-xosd -"
  c:174 + m:0x0

Offline

Board footer

Powered by FluxBB