I'm playing with dwm right now, it works the same way as scrotwm so it feels familiar.
Also, since there's no system tray, I need to use a third party app like trayer right?
I know openbox has an autostart.sh, but how can I autostart applications in dwm/scrotwm?
Sorry, I know this isn't support, and I know I'm nub.
Thanks
I'm officially addicted to dwm. I love it.
I've installed a crunchbang lite system, and removed all the openbox stuff, it comes preinstalled with dwm, so I removed it and then downloaded the source, customized the config file and compiled. Works great!
How are you starting dwm? Via xinitrc and startx or a login manager (... or some other way)? If via xinitrc there are a couple of possibilities, both amounting to being almost the same.
The first is just add the programs you want autostarted before the exec dwm line, such as:The second is to move all that into a script to keep xinitrc looking nice, so you don't need to comment a bunch of stuff if you change window managers. So .xinitrc would look like:Code:# Wallpaper eval `cat $HOME/.fehbg` & pidgin & exec dwmThen you need to write a script called (in the case of the above) ~/scripts/startdwm:Code:exec $HOME/scripts/startdwmOnce you have written the script, make it executable and you're good to go:Code:#!/bin/bash eval `cat $HOME/.fehbg` & pidgin & exec dwmNote that if you have not installed dwm as I mentioned in an earlier post (I think), where I have written exec dwm, it would need to be exec /path/to/dwm.Code:chmod +x ~/scripts/startdwm
If you use a login manager... I'm not sure as I've not used one in a while. I should imagine the same basic idea would apply. Possibly you have to make a new .desktop file, and where the command /usr/bin/dwm would go, just point it to the script.
Desktop: Phenom 955 BE | GA-MA790XT-UD4P | 8GB TG Elite 1600 | BFG GTX 275
Conky Screenshots | Last.fm | New to Ubuntu?
I recommend you to use for a while and then change to another tiling. In my case i started to use awesome, then change to dwm, and i'm trying xmonad. I think this is the way you can form an opinion yourself.
Btw, to customize dwm: http://ubuntuforums.org/showthread.php?t=642808
I am using a login manager, gdm. Upon compiling dwm for the first time, I did create a .desktop file for dwm and it works fine. If I'm using a login manager, will .xinitrc not work? I've done a little bit of digging but I can't find anything.
Thanks for the thread, I've already been reading it. The thread's a bit dated, but helpful nonetheless.
Create a script, like so
Now edit the .desktop file you created, and point to the script at Exec=Code:#!/bin/bash # Add whatever you want to autostart here (don't forget the & after each program) trayer & nitrogen --restore & super-cool-awesome-autostart-this & # THE BELOW LINE MUST BE LAST exec dwm
Last edited by RiceMonster; January 24th, 2010 at 07:03 PM.
Best thread everCode:while true; do echo -n "RiceMonster "; done
Bookmarks