Xfce Forum

Sub domains

You are not logged in.

#1 2023-08-05 06:45:30

Registered: 2015-06-22
Posts: 24

A couple of modifications to Whisker Menu search actions

I've modified a couple of the search actions in the Whisker Menu, and I thought I'd post them here in case anyone finds them useful.

Man Pages
I'm not always sure of the name of the command I'm searching for. I changed the 'Man Pages' search action to also run the 'apropos' command if the 'man' command fails. If the 'apropos' command runs then the terminal remains interactive so I can subsequently run the appropriate 'man' command.

This goes in the 'Command' section of the 'Man Pages' search action:

exo-open --launch TerminalEmulator bash -c "if man %s; then exit 0; else tput smso; echo -e '\napropos %s:'; tput sgr0; apropos \"%s\"; fi; bash"

Run in Terminal
I couldn't get the original default action command to work. I changed it so it works, the bash session is run in interactive mode so bash aliases are available, and it displays the command that has been run.

This goes in the 'Command' section of the 'Run in Terminal' search action:

exo-open --launch TerminalEmulator bash -i -c "tput smso; echo -e '%s'; tput sgr0; %s; bash"


Board footer

Powered by FluxBB