You are not logged in.

#1 2010-01-08 01:00:18

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

wmii gurus: how do I autostart applications within wmii ?

I am a new user of the wmii tiling window manager. I want to autostart an application in its own view as a floating window, after wmii has loaded (not using .xinitrc). I gather this should go somewhere in ~/.wmii-3.5/wmiirc but am unsure what section of the config file this action needs to be in.


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#2 2010-01-08 12:54:32

muunleit
Member
From: Germany
Registered: 2008-02-23
Posts: 234

Re: wmii gurus: how do I autostart applications within wmii ?

To start something from within the wmiirc, it should be after "# Misc" (line 205 here) with "&" behind to fork it.
But why don't you start it from .xinitrc? Maybe with

 ( sleep 4 && program_name ) &

To make it floating, you need to edit the "# Tagging rules" (line 28 here)

 /program_name.*/ -> ~

"The mind can make a heaven out of hell or a hell out of heaven" -- John Milton

Offline

#3 2010-07-21 02:23:07

setokaiba1308
Member
Registered: 2010-02-10
Posts: 4

Re: wmii gurus: how do I autostart applications within wmii ?

mmm right now I just started to use wmii, but still don't know where to write the code to make the application start.
if I want to make pidgin autostart from the wmiirc, what should I write?

my #Misc part

# Misc
progsfile="$(wmiir namespace)/.proglist"
action status &
wi_proglist $PATH >$progsfile &

Offline

#4 2010-07-21 19:23:57

tjwoosta
Member
Registered: 2008-12-18
Posts: 453

Re: wmii gurus: how do I autostart applications within wmii ?

# Misc
progsfile="$(wmiir namespace)/.proglist"
action status &
wi_proglist $PATH >$progsfile &

# Autostart
pidgin &

If you want to take it to the next level and start pidgin on a specific tag you could do something like this

# Autostart
wmiir xwrite /ctl view "4";pidgin &

this would switch to tag 4 then start pidgin.

Last edited by tjwoosta (2010-07-21 19:31:17)

Offline

Board footer

Powered by FluxBB