urxvt-eval
Section: RXVT-UNICODE (1)
Updated: 2021-01-27
Page Index
NAME
eval - evaluate arbitrary perl code using actions
EXAMPLES
URxvt.keysym.M-c: eval:selection_to_clipboard
URxvt.keysym.M-v: eval:paste_clipboard
URxvt.keysym.M-V: eval:paste_primary
URxvt.keysym.M-Up: eval:scroll_up 1
URxvt.keysym.M-Down: eval:scroll_down 1
URxvt.keysym.M-Home: eval:scroll_to_top
URxvt.keysym.M-End: eval:scroll_to_bottom
DESCRIPTION
Add support for evaluating arbitrary perl code using actions in keysym
resources. If a keysym
action takes the form
"eval:STRING", the
specified
STRING is evaluated as a Perl expression. While the full
urxvt
API is available, the following methods are also provided for
users' convenience, as they implement basic actions:
- scroll_up $count
-
- scroll_up_pages $count
-
- scroll_down $count
-
- scroll_down_pages $count
-
Scroll up or down by $count lines or pages.
- scroll_to_top
-
- scroll_to_bottom
-
Scroll to the top or bottom of the scrollback.
- selection_to_clipboard
-
Copy the selection to the CLIPBOARD.
- paste_primary
-
- paste_clipboard
-
Paste the value of the PRIMARY or CLIPBOARD selection.