DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 22nd October 2008
rex rex is offline
Real Name: Nikhil Rathod
Shell Scout
 
Join Date: May 2008
Location: Chicago
Posts: 114
Default execute commands from xinitrc

I was playing with different wm and came across flwm which is based on wm2. As it do not provide any configuration, I was wondering is there a way to execute commands from my xinitrc. Commands such as for setting desktop backgrounds, starting conky and xscreensaver.

I tried
Code:
exec /usr/local/bin/feh --bg-scale /usr/home/user/Pictures/wall.jpg
exec /usr/local/bin/conky
Reply With Quote
  #2   (View Single Post)  
Old 22nd October 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

yes
here's mine (as an example, i use fvwm, and some things needs to be run from .xinitrc)
Code:
xsetroot -solid black &
xmodmap ~/.fvwm/appconf/xmodmaprc &
exec fvwm
& is needed to continue executing script....
and last line starts fvwm, there you don't use &
Reply With Quote
  #3   (View Single Post)  
Old 22nd October 2008
rex rex is offline
Real Name: Nikhil Rathod
Shell Scout
 
Join Date: May 2008
Location: Chicago
Posts: 114
Default

hmmmm..........

ya I tried '&' too. but didn't worked, but now its working.
I thought we need to start wm first then need to execute the rest of the commands. Which don't seems to be the case.

Thanks
Reply With Quote
  #4   (View Single Post)  
Old 22nd October 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

it's just a shell script, so you can do basically anything you can in sh.


my own system works off an initialization script, amounting to psetbg& pidgin& gkrellm& ... blackbox
__________________
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''.
Reply With Quote
Reply

Tags
xinitrc

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No DRI + GLX commands? Hrr4 FreeBSD General 5 21st September 2008 10:05 AM
Execute a command during login rex FreeBSD General 4 12th September 2008 08:09 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
Cisco IOS commands ?? jb_daefo Off-Topic 7 5th June 2008 01:53 AM


All times are GMT. The time now is 08:11 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick