You are not logged in.
I am logging through TTY and using startx to open PEKWM. You can use both .xinitrc and PekWM's start file for starting programs. But which one to use?
My current setup is:
Xinitrc:
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
xrdb -merge ~/.Xresources # update x resources db
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) # for gnome-keyring
export SSH_AUTH_SOCK # for gnome-keyring
setxkbmap -option caps:escape # assign caps-lock to escape
syndaemon -t -k -i 2 -d # disable touchpad 2 seconds while typing
xbindkeys &
exec pekwmPekWM's start file:
tint2 &
nm-applet &
cbatticon &
volti &
volnoti &Last edited by Paingiver (2015-02-01 22:56:38)
Offline
Doesn't really matter, I'd just keep them in one place.
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
I would use .xinitrc because PekWM's start file is re-run if you use the "restart" option in the PekWM menu -- you will then have multiple instances of the startup programs running.
Jin, Jîyan, Azadî
Offline
I use Openbox. If it's generic for X then I put it in "~/.xinitrc" (xset, xrandr, setxkbmap, xsetroot, autocutsel...) and if it's specific to Openbox then I put it in "~/.config/openbox/autostart" (setting wallpaper, conky, thunar and urxvt daemons...).
Offline
I would use .xinitrc because PekWM's start file is re-run if you use the "restart" option in the PekWM menu -- you will then have multiple instances of the startup programs running.
Good point.. in i3 you have to use "exec_always" instead of "exec" for this so I wrongly assumed similar behaviour in PekWM.
Anyway, apps in .xinitrc may also be re-run (if not killed properly on logout), so I have this little function:
run() { pgrep >/dev/null "$1" || "$@" & }(adapted from here)
edit: horrible, horrible typos.
Last edited by Alad (2015-02-04 09:06:22)
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
Doesn't really matter, I'd just keep them in one place.
I put the ones in PekWM start file to .Xinitrc and now they are not starting.
Offline
I put the ones in PekWM start file to .Xinitrc and now they are not starting.
Post your ~/.xinitrc -- I'm guessing you've put them after the `exec pekwm` bit...
https://wiki.archlinux.org/index.php/Xinitrc
Jin, Jîyan, Azadî
Offline
If you share that file with us we might actually be able to help (you've been around these forums long enough to know how to post). My first guess would be that you've put them after the exec line. This will not work.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thanks guys. Yes it was after exec line. I've naively thought some programs like tint2 must run after the window manager starts. Now the .xinitrc is:
xrdb -merge ~/.Xresources # update x resources db
# Following 2 lines is to use gnome-keyring
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
setxkbmap -option caps:escape # assign caps-lock to escape
syndaemon -t -k -i 2 -d # disable touchpad 2 seconds while typing
xbindkeys &
tint2 &
nm-applet &
cbatticon &
volti &
volnoti &
exec pekwmLast edited by Paingiver (2015-02-02 16:02:30)
Offline