/usr/share/anyremote/cfg-data/Server-mode/wmctrl.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 | %
% anyremote configuration file for wmctrl - http://www.sweb.cz/tripie/utils/wmctrl/ (Server-mode)
%
% STATUS stable
% XTEST no
% SOUND no
% ENV no
GuiAppName=WmCtrl
GuiAppType=Application
GuiAppBinary=true
GuiAppDesc=The wmctrl program is a UNIX/Linux command line tool to interact with an EWMH/NetWM compatible X Window Manager.
GuiAppProtocols=Server
[Protocol]=Server
(Init)=\
Include($(CfgDir)/Utils/aliases-server.cfg);\
Exec(P=`which wmctrl|grep wmctrl|grep -v no|grep -v edit|grep -v anyremote|wc -l|tr -d " "`;if [ "x$P" = "x0" ]; then $(CfgDir)/Utils/message.sh "ERROR: wmctrl is not installed"; fi);
(Connect)=\
Set(parameter,debug,on);\
Set(title,WmCtrl);\
Set(list,replace,WmCtrl,---);\
Macro(WMCTRL_MENU);
Cancel=\
Make(exit);
GET_WIN_ID=Make(var,winid,echo $(Param)|cut -d " " -f 1);
WMCTRL_MENU=Set(menu,replace,Desktops,Windows,Disconnect);
* *=Set(text,replace,Help,Use menu to choose window or desktop operations);
Back=Set(text,close);\
Set(list,clear);\
Macro(WMCTRL_MENU);
Push($$)=Macro(Desktops($$));
Desktops($$)=ExecAndSet(list,replace,Desktops,wmctrl -d|tr -s " "|cut -d ":" -f 1,4|cut -d " " -f 1,6,7|sed 's/$/,/');\
Set(menu,replace,Show);
Windows($$)=ExecAndSet(list,replace,Windows,wmctrl -l|sed 's/$/,/');\
Set(menu,replace,Activate,Fullscreen,Above,Below,Close);
Show($$)=Make(var,switchto,echo $(Param)|cut -d " " -f 1);\
Exec(wmctrl -s $(switchto));
Activate($$)=Macro(GET_WIN_ID);\
Exec(wmctrl -i -a $(winid));
Fullscreen($$)=Macro(GET_WIN_ID);\
Exec(wmctrl -i -r $(winid) -b toggle,fullscreen);
Above($$)=Macro(GET_WIN_ID);\
Exec(wmctrl -i -r $(winid) -b toggle,above);
Below($$)=Macro(GET_WIN_ID);\
Exec(wmctrl -i -r $(winid) -b toggle,below);
Close($$)=Macro(GET_WIN_ID);\
Exec(wmctrl -i -c $(winid));
Back($$)=Set(list,replace,WmCtrl,---);\
Macro(WMCTRL_MENU);
Disconnect($$)=Set(disconnect);
[End]
|