You are not logged in.

#1 2015-08-29 07:53:24

Median
Member
Registered: 2011-06-03
Posts: 60

Using .bashrc aliases with mod+r in awesome

Anyone that has an idea how to make the aliases listed in .bashrc work when using the run command, mod+r, in awesome? I've tried using "source ~/.bashrc" in .xinitrc before "exec awesome", but to no avail.

Offline

#2 2015-08-29 07:59:11

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,422
Website

Re: Using .bashrc aliases with mod+r in awesome

Does mod+r use dmenu? If yes, you could try this:

https://wiki.archlinux.org/index.php/Dm … ll_aliases


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#3 2015-08-29 08:06:58

Median
Member
Registered: 2011-06-03
Posts: 60

Re: Using .bashrc aliases with mod+r in awesome

Alad wrote:

Does mod+r use dmenu? If yes, you could try this:

https://wiki.archlinux.org/index.php/Dm … ll_aliases

Unfortunately awesome is not using dmenu natively.

Offline

#4 2015-08-29 11:52:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Using .bashrc aliases with mod+r in awesome

based on looking at the code, the mod+r dialog ends up calling g_spawn_async which looks like a wrapper for a fork + exec.  So it cannot handle aliases whether or not they are in the current environment - exec requires a binary filename to execute.

So either 1) use mod+r and enter `bash -lc "your alias"` or some similar construction, or 2) modify awesomeWM to handle the key binding differently.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB