… | |
… | |
1119 | |
1119 | |
1120 | URxvt.keysym.Shift-Tab: string:echo rm -rf /\n |
1120 | URxvt.keysym.Shift-Tab: string:echo rm -rf /\n |
1121 | |
1121 | |
1122 | This could in theory be used to completely redefine your keymap. |
1122 | This could in theory be used to completely redefine your keymap. |
1123 | |
1123 | |
|
|
1124 | In addition, for actions of this type, you can define a range of |
|
|
1125 | keysyms in one shot by loading the C<keysym-list> perl extension and |
|
|
1126 | providing an I<action> with pattern B<list/PREFIX/MIDDLE/SUFFIX>, where |
|
|
1127 | the delimiter `/' should be a character not used by the strings. |
|
|
1128 | |
|
|
1129 | Its usage can be demonstrated by an example: |
|
|
1130 | |
|
|
1131 | URxvt.keysym.M-C-0x61: list|\033<|abc|> |
|
|
1132 | |
|
|
1133 | The above line is equivalent to the following three lines: |
|
|
1134 | |
|
|
1135 | URxvt.keysym.Meta-Control-0x61: string:\033<a> |
|
|
1136 | URxvt.keysym.Meta-Control-0x62: string:\033<b> |
|
|
1137 | URxvt.keysym.Meta-Control-0x63: string:\033<c> |
|
|
1138 | |
1124 | =item command:STRING |
1139 | =item command:STRING |
1125 | |
1140 | |
1126 | If I<action> takes the form of C<command:STRING>, the specified B<STRING> |
1141 | If I<action> takes the form of C<command:STRING>, the specified B<STRING> |
1127 | is interpreted and executed as @@RXVT_NAME@@'s control sequence (basically |
1142 | is interpreted and executed as @@RXVT_NAME@@'s control sequence (basically |
1128 | the opposite of C<string:> - instead of sending it to the program running |
1143 | the opposite of C<string:> - instead of sending it to the program running |
… | |
… | |
1192 | URxvt.keysym.C-M-c: builtin-string: |
1207 | URxvt.keysym.C-M-c: builtin-string: |
1193 | URxvt.keysym.C-M-v: builtin-string: |
1208 | URxvt.keysym.C-M-v: builtin-string: |
1194 | |
1209 | |
1195 | =item EXTENSION:STRING |
1210 | =item EXTENSION:STRING |
1196 | |
1211 | |
1197 | An action of this form passes the B<STRING> to the @@RXVT_NAME@@perl(3) |
1212 | An action of this form invokes the action B<STRING>, if any, provided |
1198 | extension of the same name. The extension will be loaded automatically if |
1213 | by the @@RXVT_NAME@@perl(3) extension B<EXTENSION>. The extension will |
1199 | necessary. |
1214 | be loaded automatically if necessary. |
1200 | |
1215 | |
1201 | Not all extensions define key actions, but popular extensions that do |
1216 | Not all extensions define actions, but popular extensions that do |
1202 | include the I<selection> and I<matcher> extensions (documented in their |
1217 | include the I<selection> and I<matcher> extensions (documented in their |
1203 | own manpages, @@RXVT_NAME@@-selection(1) and @@RXVT_NAME@@-matcher(1), |
1218 | own manpages, @@RXVT_NAME@@-selection(1) and @@RXVT_NAME@@-matcher(1), |
1204 | respectively). |
1219 | respectively). |
1205 | |
1220 | |
1206 | From the silly examples department, this will rot13-"encrypt" |
1221 | From the silly examples department, this will rot13-"encrypt" |
… | |
… | |
1209 | |
1224 | |
1210 | URxvt.keysym.M-C-c: selection:rot13 |
1225 | URxvt.keysym.M-C-c: selection:rot13 |
1211 | |
1226 | |
1212 | =item perl:STRING *DEPRECATED* |
1227 | =item perl:STRING *DEPRECATED* |
1213 | |
1228 | |
1214 | This is a deprecated way of passing key mappings to perl extensions. It is |
1229 | This is a deprecated way of invoking commands provided by perl |
1215 | still supported, but should not be used anymore. |
1230 | extensions. It is still supported, but should not be used anymore. |
1216 | |
1231 | |
1217 | =back |
1232 | =back |
1218 | |
1233 | |
1219 | =item B<perl-ext-common>: I<string> |
1234 | =item B<perl-ext-common>: I<string> |
1220 | |
1235 | |