You are not logged in.
Pages: 1
Brand new Arch user and I LOVE IT!
one question:
I have Arch and LXDE and left out init so that I log into Desktop by hand (I would like to run machine as server without GUI at times) and wrote simple script to start GUI from command line.
how would I go about adding compiz to script so that when I exec it LXDE and Compiz all loads together?
here's what I got so far, (any added compiz lines don't end up running):
#! /bin/bash
xinit /usr/bin/startlxde
Thanks in Advance
Last edited by SORE-LOSER (2011-08-30 00:57:07)
Offline
Hi, I set up the following:
ewaller@odin:~ 1001 %cat .xinitrc
DEFAULT_SESSION=openbox
xset b off
setxkbmap -option ctrl:nocaps
case $WM in
kde)
ck-launch-session dbus-launch startkde
;;
compiz)
~/bin/compiz&
ck-launch-session dbus-launch compiz ccp
;;
lxde)
~/bin/lxde&
ck-launch-session dbus-launch startlxde
;;
*)
~/bin/openbox&
ck-launch-session dbus-launch $DEFAULT_SESSION
;;
esac
ewaller@odin:~ 1002 %cat bin/xfce4
#!/bin/bash
sleep 5
conky&
tilda&
fusion-icon&
ewaller@odin:~ 1003 %
I start sessions using, for example:
WM=xfce4 startx
The .xinitrc will execute the script ~/bin/xfce4 in the background, and will then start xfce4.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Actually, it won't -- I took xfce4 out of .xinitrc -- but you should get the idea
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Another approach, from within LXDE: https://wiki.archlinux.org/index.php/LX … w_Managers
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Thanks to both of you for your help...
@Ewaller, "WM=xfce4 startx" is started from terminal? I looked through your output and noticed that it was your xinitrc, and I didn't add any of my GUI stuff to my xinitrc, so that I could run without desktop... I just wanted to run a script that would start all of it together from init 3. Would your xinitrc work as a script?
@fsckd, I see what you pointed out and will try that at the next available opportunity,
Offline
@Ewaller, "WM=xfce4 startx" is started from terminal? I looked through your output and noticed that it was your xinitrc, and I didn't add any of my GUI stuff to my xinitrc, so that I could run without desktop... I just wanted to run a script that would start all of it together from init 3. Would your xinitrc work as a script,
Yes, the .xinitrc will work as a script, but not stand alone.. As a matter of fact, it is a script, but it is one that is started as a X session is started. It won't be invoked otherwise.
You could re-write your script as such:
#! /bin/bash
path/to/a/custom/script &
xinit /usr/bin/startlxde
And then have the file path/to/a/custom/script look something like:
#!/bin/bash
sleep 3
fusion-icon&
Question: Does compiz work with LXDE? I know it does not work with Openbox.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
SORE-LOSER,
Could you please edit your first post and change your title and use a more descriptive (to your problem) title. Helps others in searching for threads when they are in a similar situation.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
@Ewaller I see what your saying: -X- INIT RC! (X's init)
I'll try that out
Offline
@fsckd: It worked like a charm! Now when I log in Compiz starts with LXDE
@Ewaller: No, Compiz replaces Openbox.
Than you both for the help
Offline
How about you start a fusion-icon session and load what you need from LXDE in your .xinitrc?
Offline
Pages: 1