My dmenu doesn't recognise aliases. I've found a solution but I can't seem to figure out what he is trying to say.
Asked
Active
Viewed 3,204 times
1 Answers
4
dmenu
as such does not recognize aliases, files, desktop files, etc. It only works with what you feed to it. Could be "Yes", "No", "Maybe". Could be a list of email addresses. Could be a list of programs. dmenu comes installed with a scriptdmenu_path
, which is actually a script.Execute
cat $(which dmenu_run)
to see the one-liner they use. Separated by the pipe symbols, you see the three steps:- Generate a list to standard output;
- Pipe that list to dmenu, which shows the list as choices. dmenu spits out the choice you made to standard output, and
- something is done with the output. For 1., a second script
dmenu_path
is called that creates the list: usecat $(which dmenu_path)
to study that script.
Aliases are not intended to use in scripts. Try making a bash script: the script will not find your alias. See here for a plethora of options on how you can use what you defined in an alias in a script.