You are not logged in.
Hey,
I'm trying to launch volnoti & xscreensaver with awesome wm and all I can get is awesome alone.
xinit.rc
exec awesome
exec volnoti &
exec xscreensaver -nosplash &
I boot, login, type startx. Awesome launches, nothing else. I can launch the other two fine by manually typing the command
Ive also tried
exec volnoti
volnoti
volnoti &
and tried in .xprofile
I'm not really sure how to debug where I'm going wrong
Please help
p.s.
which awesome
/usr/bin/awesome
which volnoti
/usr/bin/volnoti
Last edited by Das Michael (2017-04-30 11:59:54)
Offline
My .xinitrc is working for me. Maybe this is not the most elegant .xinitrc, but it does its duty. I guess nothing gets executed after the first exec line...
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
#appended to autostart Xfce4
xscreensaver & # start screen locker
xbacklight -set 100 # default brightness
exec startxfce4 # autostart Xfce4
https://wiki.archlinux.org/index.php/Xinit#xinitrc
Remember that lines following a command using exec would be ignored.
Last edited by Lemongrass (2017-04-29 14:52:29)
Offline
"exec" will stop the script at that line. The rest of the script will not run. You can read documentation about this by doing "help exec" on a bash command line.
Only use exec to start your window manager. The other programs that you want to start, do that without exec and with a "&" at the end of their line to make them start in the background.
Offline
Only use exec to start your window manager. The other programs that you want to start, do that without exec and with a "&" at the end of their line to make them start in the background.
This will only work if the exec line is the last line among the commands you want to run.
Note that you can also launch your window manager without exec. If you read up on what exec does (replace the current process), you will understand why it can be more elegant to run the last command with exec—but it is not mandatory.
Offline
Wow, now there is a lesson in reading. I was on that wiki page a few lines up.
Thanks for the advice, all working now.
Offline
The expectation is that you will read the wiki before posting here; that means actually reading, not skimming.
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline