/usr/share/anyremote/cfg-data/AT-mode/kaffeine.cfg is in anyremote-data 6.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | %
% anyremote configuration file for Kaffeine management.
% prerequisites: amixer/pactl utility
% Kaffeine playlist should be already created
%
% STATUS stable
% XTEST no
% SOUND mixer
% ENV no
GuiAppName=Kaffeine
GuiAppBinary=kaffeine
GuiAppRun= A=`dcop 2> /dev/null|grep kaffeine`; if [ "x$A" = "x" ]; then echo NOK; else echo OK; fi
GuiAppIcon=kaffeine.png
GuiAppType=Application
GuiAppProtocols=AT
GuiAppDesc=KDE media player.
[Protocol]=AT
(Init)=\
Include($(CfgDir)/Utils/aliases-at.cfg);\
Macro(SETUP_DEFAULT_MIXER);\
Make(var,TwoWayComm,by_value,false);\
Macro(CHECK_RFCOMM_DEVICE);\
Make(var,kde-version,kaffeine -v|grep KDE|tr -d " "|cut -f 2 -d ":"|cut -f 1 -d ".");
(Connect)=\
Make(mode,kaffeine-kde$(kde-version));
% Kaffeine/KDE D-BUS support is VERY pure
[Mode]=kaffeine-kde4
(EnterMode)=\
Exec(kaffeine)
QUIT=\
Exec(qdbus org.kde.kaffeine /MainApplication org.kde.KApplication.quit;killall kaffeine)
1=Emulate(key,KP_Subtract);
2=Emulate(key,m);
3=Emulate(key,KP_Add);
4=Emulate(key,Left)
5=Emulate(key,space);
6=Emulate(key,Right)
7=Emulate(key,Page_Up)
8=Emulate(key,BackSpace);
9=Emulate(key,Page_Down)
* *=Exec(F="$(TmpDir)/anyrem.hlp";echo "1 - Vol- 2 - Mute 3 - Vol+" > $F;echo "4 - Rew 5 - Play/Pause 6 - FF" >> $F;echo "7 - Prew 8 - Stop 9 - Next" >> $F;echo "* 0 - Fullscreen # - Quit" >> $F);\
Macro(SHOW_HELP);
* #=Exec(P=`pgrep kaffeine`; if [ "x$P" = "x" ]; then kaffeine; else qdbus org.kde.kaffeine /MainApplication org.kde.KApplication.quit;killall kaffeine; fi)
0=Emulate(key,f);
#=Macro(QUIT);
[ModeEnd]
[Mode]=kaffeine-kde3
(EnterMode)=\
Exec(kaffeine)
(Disconnect)=\
Exec(dcop kaffeine KaffeineIface pause);\
Exec($(CfgDir)/Utils/message.sh "Disconnected... Set to pause")
%InCall($$)=\
% Exec(dcop kaffeine KaffeineIface pause);\
% Make(remote,off)
%EndCall($$)=\
% Make(remote,on);\
% Exec(dcop kaffeine KaffeineIface pause)
Answer=\
Make(disconnect);
Cancel=\
Exec(dcop kaffeine KaffeineIface quit);\
Make(exit);
1=Macro(DEFAULT_VOLUME_DOWN)
2=Macro(DEFAULT_TOGGLE_MUTE)
3=Macro(DEFAULT_VOLUME_UP)
4=Exec(dcop kaffeine KaffeineIface posMinus)
5=Exec(dcop kaffeine KaffeineIface play;dcop kaffeine KaffeineIface fullscreen)
6=Exec(dcop kaffeine KaffeineIface posPlus)
7=Exec(dcop kaffeine KaffeineIface previous)
8=Exec(dcop kaffeine KaffeineIface stop;dcop kaffeine KaffeineIface fullscreen)
9=Exec(dcop kaffeine KaffeineIface next)
* *=Exec(F="$(TmpDir)/anyrem.hlp";echo "1 - Vol- 2 - Mute 3 - Vol+" > $F;echo "4 - Rew 5 - Play 6 - FF" >> $F;echo "7 - Prew 8 - Stop 9 - Next" >> $F;echo "* 0 - Pause # - Quit" >> $F);\
Macro(SHOW_HELP);
* #=Exec(P=`dcop|grep kaffeine`; if [ "x$P" = "x" ]; then kaffeine;sleep 2;dcop kaffeine KaffeineIface setNumber 1; else dcop kaffeine KaffeineIface quit; fi)
0=Exec(dcop kaffeine KaffeineIface pause)
#=Exec(dcop kaffeine KaffeineIface quit)
[ModeEnd]
[End]
|