polachok / echinus

echinus is a lightweight and easily configurable tiling window manager
http://plhk.ru/
MIT License
66 stars 8 forks source link

Start-up Files or Commands #10

Closed xgeek-cub closed 10 years ago

xgeek-cub commented 10 years ago

I want to start a couple of command when echinus starts and I want it to be echinus specific (i.e I can't use places and methods that are being pick up by other WMs). Is it possible? How?

polachok commented 10 years ago

You can put something like this in your ~/.xsession file and just change WM=... line when you want to switch to a different WM. I've been using a script like this for long time.

 #!/bin/sh
 WM=echinus # cwm
 if [ "$WM" = "echinus" ]; then
   ... # echinus specific commands
 else
   ... # stuff for other wms
 fi
 exec $WM
xgeek-cub commented 10 years ago

Thanks; First; I just change the binary in the ~/xinitrc like ck-launch-session dbus-launch --sh-syntax --exit-with-session echinus; is this way still works. For ... one command per a line? with exec or not?