COMMAND...R.SAMPLE(1)
π NAME π
okay bestie, welcome to the User Contributed Perl Documentation page for command-runner.sample(1) β it's literally an example script for use with tabbedex tab-arguments. β¨
πΈ SYNOPSIS πΈ
command-runner.sample id command [ arguments ... ]
π¦ DESCRIPTION π¦
It runs a predefined command identified by id, or by command if id doesn't match any. The predefined commands are hard-coded in the source code of this script. periodt. π
β¨ OPTIONS β¨
idβ the identifier of a predefined command to run. Typically a zero-indexed integer. π’command [ arguments ... ]β the command to execute ifiddoes not match any know predefined command. π
π TABBEDEX π
The script is designed to work with the tabbedex urxvt plugin (and to showcase its tab-arguments configuration resource). It can be used to execute different commands in different tabs. To use it, copy it and edit the list of commands at the end of the file. Provided urxvt-tabbedex is installed in /usr/lib/urxvt, the following steps are a good start:
mkdir -p ~/.urxvt
cp /usr/lib/urxvt/tabbedex-command-runner.sample \
~/.urxvt/command-runner.sh
${VISUAL:-${EDITOR:-/bin/vi}} ~/.urxvt/command-runner.sh
Finally, configure the tab-arguments resource, for example:
URxvt.tabbedex.tab-arguments: \
-e /bin/sh %~/.urxvt/command-runner.sh %n %E
With this done, each time a new tab is started, this script will be run so that it can decide what actual command is executed in the tab. main character energy fr fr π
To use this script in conjunction with the pgid-cd.pl tool also packaged with urxvt-tabbedex, the resource should be:
URxvt.tabbedex.tab-arguments: \
-e /usr/lib/urxvt/tabbedex-pgid-cd %p \
/bin/sh %~/.urxvt/command-runner.sh %n %e
(modulo the actual location of the files). iykyk π«Ά
π SEE ALSO π
tabbedex(1) and tabbedex-pgid-cd(1)
mwah π β this page comes from perl v5.42.3, dated 1980-01-01, footer tag COMMAND...R.SAMPLE(1). byeee π
π¦ where this page comes from
- nixos 26.05: urxvt-tabbedex 26.16.1
- nixpkgs unstable: urxvt-tabbedex 26.16.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms