This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Mute button

Tags: None
(comma "," separated)
Zenith
Karma
0

Mute button

Tue Mar 08, 2005 11:39 pm
I might be blind or something or have a really poor memory, but I seem to recall that there used to be a \"mute\" functionality, and that I was able to bind this to a key?

If not, take this as a feature request :cheer:
User avatar
Alanceil
Registered Member
Posts
160
Karma
0
OS

Re:Mute button

Tue Mar 08, 2005 11:46 pm
it is a dcop call, bind \"dcop amarok player mute\" to a key, that\'s it ~
lord_rel
Karma
0

Re:Mute button

Fri Mar 11, 2005 3:50 pm
what about a shortcut so a key can be assigned
User avatar
Alanceil
Registered Member
Posts
160
Karma
0
OS

Re:Mute button

Sat Mar 12, 2005 1:31 am
you can use khotkeys for this (can be found in kcontrol>regional settings>khotkeys)
Baktor Silvanti
Karma
0

Re:Mute button

Fri Mar 25, 2005 4:04 am
I used what Alanceil said and made a dcop script. Mine mutes/unmutes the PCM (device index 4 for me), you can easily play with dcop to figure out which device for you. Here is the script. I then bound this script to my KDE menus for a Mute item I made. They key itself I\'ve xmodmap\'d to F24. Here is the script for a mute toggle via dcop:


#!/bin/bash
KMIXRESULT=`dcop kmix Mixer0 mute 4`
if [ ${KMIXRESULT}X = falseX ]; then
/usr/bin/dcop kmix Mixer0 setMute 4 1
else /usr/bin/dcop kmix Mixer0 setMute 4 0;
fi;
unset KMIXRESULT


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], rockscient