|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Execute a command during login
I'm in process of selecting a window manager for one of my old desktops. I came across wm2. It is great. only problem is as it can't be configured I need to find a way to execute a command at login time to set the wallpaper.
Is there a way I can do that? |
|
|||
on my system X starts automatically and I use slim as login manager.
|
|
||||
You can always check how your login manager knows what program to execute (e.g. wm2) and set it at a custom script. This is basically what ~/.xinitrc (X) or ~/.xsession (XDM) is for I think, but it's been a long time since I setup stuff that way...
My system uses GDM and a custom session file defined as executing a init.sh script in my home directory, instead of a window manager directly. Where ~/init.sh serves to execute a few programs in the background (e.g. my wall paper rotator, pidgin&, etc) and finally launches my window manager: blackbox, and being a humble shell script owned by my user, I can edit it later without being root lol. While still working essentially the same way as X.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
execute commands from xinitrc | rex | FreeBSD General | 3 | 22nd October 2008 10:24 PM |
ruby execute commands remotely | Dr_Death_UAE | Programming | 0 | 18th August 2008 11:23 AM |
Cron won't execute a perl script | ivanatora | FreeBSD General | 4 | 17th August 2008 07:53 AM |
How can i login to my FreeBSD ?? | ceramic | FreeBSD Installation and Upgrading | 4 | 28th July 2008 11:56 AM |
How to set up ssh login | cssgalactic | FreeBSD General | 12 | 28th June 2008 06:00 PM |