LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 08-27-2010, 01:56 AM   #1
BeaverusIV
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Arch Linux 2010.05
Posts: 129

Rep: Reputation: 18
[Awesome] How do I get the menu to use aliases?


I currently have:

Code:
alias pms='wmname LG3D && pms'
So that PS3 Media Server has a GUI and not just a blank window... this works if run from terminal but not when typed in my menu... how can I get Awesome to use the alias? Using:

Code:
{ "PS3 Media Server", "wmname LG3D && pms" }
doesn't work.
 
Old 08-27-2010, 07:26 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
Aliases are a feature of your shell, and are usually only loaded for interactive shells at that.

I don't know anything about awesome, but if its command launcher behaves like most of the others, it likely handles the commands internally on its own rather than invoking a shell to do it. There's probably some kind of "run in shell" option, but I'll bet even that gets invoked non-interactively.

So unless it has some sort of built-in aliasing system of its own, probably your only option is to create a special menu item or script with your commands in it and launch that.
 
1 members found this post helpful.
Old 08-28-2010, 01:42 AM   #3
BeaverusIV
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Arch Linux 2010.05
Posts: 129

Original Poster
Rep: Reputation: 18
I found the solution; use 'awful.util.spawn_with_shell.

So:
Code:
{ "PS3 Media Server", function () awful.util.spawn_with_shell("wmname LG3D && pms") end }
 
  


Reply

Tags
alias, awesome


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ifplugd > Awesome WM 3.4.5-1 widget using awesome-client Biowaste Linux - General 3 07-09-2010 08:37 AM
aliases issue using /etc/aliases lensem Linux - Software 3 04-14-2009 01:48 PM
wrap lines at 80 for long aliases in .aliases.csh jhwilliams Linux - Software 0 07-26-2007 08:49 AM
sendmail and NIS databases (aliases, mail.aliases) - what kind of databases? cotton213 Linux - Software 0 03-14-2006 06:57 PM


All times are GMT -5. The time now is 05:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration