SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-02-17 06:03:30

kernel
#! Member
Registered: 2010-12-29
Posts: 73

autostarting apps with awesome wm

I know this is two years old.  I'm struggling with making things autostart.  I tried Jnb's method of making a .Xsession file in ~.  I noticed it in the Awesome's wiki as well.  Unfortunately it doesn't work.  I know I'm doing something wrong I just can't figure out what.  Anyone fix this problem?

Offline

Be excellent to each other!

#2 2011-02-17 07:12:01

wlourf
#! CrunchBanger
Registered: 2010-02-13
Posts: 153
Website

Re: autostarting apps with awesome wm

hi

Dis you try this way : https://awesome.naquadah.org/wiki/Autostart#Simple_way

here's the end of my rc.lua :

function run_once(prg,arg_string,screen)
    if not prg then
        do return nil end
    end
    if not arg_string then 
        awful.util.spawn_with_shell("pgrep -f -u $USER -x " .. prg .. " || (" .. prg .. ")",screen)
    else
        awful.util.spawn_with_shell("pgrep -f -u $USER -x " .. prg .. " || (" .. prg .. " " .. arg_string .. ")",screen)
    end
end

run_once("iceweasel",nil,1)
run_once("gedit",nil,1)

Offline

#3 2011-02-17 14:08:11

jmbarnes
#! Junkie
Registered: 2009-05-04
Posts: 250

Re: autostarting apps with awesome wm

I use something very similar to wlourf's run_once code for autostarting apps (dropbox, nm-applet etc.)

If you don't care if the program starts everytime you reload awesome (for instance, running xmodmap) you can do:

os.execute("command to run &")

IRC: PizzaAndWine     Script bits: Incremental Backup | Sleep Timer

Offline

#4 2011-02-17 17:17:01

kernel
#! Member
Registered: 2010-12-29
Posts: 73

Re: autostarting apps with awesome wm

Aye ok.  Looking back at the awesome autostart page I decided to use the

awful.util.spawn_with_shell("COMMAND1")
awful.util.spawn_with_shell("COMMAND2")

and insert my commands in place of the 'COMMAND'.  It works fine.

The Lua language is a little confusing to read and sort out although all in all it's easier to configure that dwm.  I don't know any computer languages. 

Thanks for your help and sorry anon about recycling a two year old thread.  Thanks for the help there.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo