#!/bin/sh # Configuration for Dell XPS 1330 by okox #In case of having more than one sound card, put -c X in amixer commands, where X is the number of sound card, by default is 0 #The button media direct has been assigned a name 'XF86Video' in xps_keyboard file, you can configure here by this way #"Aplication to launch" #m:0x10 + c:214 # I configured the button to launch amarok in Kde Control Center #keycode 160 run mute script, if sound is unmuted it puts 0 to PCM volume, if muted, puts volum at 70% "mute" m:0x10 + c:160 #keycode 174 -vol "amixer -q set PCM 2-" m:0x10 + c:174 #keycode 176 +vol "amixer -q set PCM 2+" m:0x10 + c:176 #keycode 162 play/pause "dcop amarok player playPause ; dcop kaffeine KaffeineIface pause" m:0x10 + c:162 #keycode 144 prev "dcop amarok player prev ; dcop kaffeine KaffeineIface prev" m:0x10 + c:144 #keycode 153 next "dcop amarok player next ; dcop kaffeine KaffeineIface next" m:0x10 + c:153 #keycode 164 stop "dcop amarok player stop ; dcop kaffeine KaffeineIface stop" m:0x10 + c:164