Re: [dwm] autostart

From: Richard Pöttler <richard.poettler_AT_gmail.com>
Date: Mon, 8 Sep 2008 11:49:48 +0200

On Mon, Sep 8, 2008 at 11:30 AM, bill lam <cbill.lam_AT_gmail.com> wrote:
> On Mon, 08 Sep 2008, =?ISO-8859-1?Q?Richard_P=F6ttler_ wrote:
>
>> On Mon, Sep 8, 2008 at 10:44 AM, bill lam <cbill.lam_AT_gmail.com> wrote:
>> > I use slim to start dwm or other wm. I want to know to autostart a
>> > particular script for dwn only.
>> >
>> > Thanks in advance.
>>
>> Just place the command in front of the dwm command in the dwm branch
>> of your case block in the .xinitrc.
>>
>> You also want to have a look at:
>> http://www.google.at/search?q=.xinitrc+dwm+slim&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:de:official&client=firefox-a
>>
>
> Did you use slim login manager?

Yes, I do.

> 1. slim does not need ~/.xinitrc

I am not sure, whether it doesn't need one. Maybe you have altered
your login_cmd variable in your slim.conf.

> 2. how to ensure the script is only run for dwn session but not other
> wm?

You could do it like it is written in the Arch linux wiki. Or put
something like:

case $1 in
dwm)
  <1337 command here>
  dwm
  ;;
<other wm>)
  <launch other wm>
  ;;
...
esac

into your .xinitrc (I haven't tried it out, because i am on a windows
maching and not able to access my computer at home)
you could also search http://www.dotfiles.org for examples.

> Put it in the other way, does dwm have any autostart script?

Pure dwm does not.

bye
richi
Received on Mon Sep 08 2008 - 09:49:48 UTC

This archive was generated by hypermail 2.2.0 : Mon Sep 08 2008 - 10:00:05 UTC