Open mrneilypops opened 2 years ago
@mrneilypops Does it work if you add your script in ~/.xinitrc
anc launch your session using the xinitrc entry in Ly?
No that does not work. Here is my ~/.xinitrc file;
`#!/bin/sh
[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources
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
xset +fp /usr/share/fonts/local xset fp rehash xset -dpms & xset s off & urxvtd -q -o -f &
mpd & nitrogen --restore &
picom & slstatus &
exec dwm ` These options work;
Here is my slstatus config.h;
`/ See LICENSE file for copyright and license details. /
/ interval between updates (in ms) / const unsigned int interval = 1000;
/ text to show if no value can be retrieved / static const char unknown_str[] = "n/a";
/ maximum output string length /
/*
uname -r
NULLAll other commands in ~/.xinitrc load OK. It is just slstatus that does not load via ly but does load with startx. I only have the xinitrc option on the ly login screen. Thanks.
I am making progress... My slstatus calls an mpd script but ly complains of an error on line 11. `#!/bin/sh #######
#######
space=echo " "
timeout=0.2
while true do
mpc | sed -n '1,1p'
@ mpc volume | sed -e 's#volume: ##'
echo `mpc --format \[%title%]\ | head -n 1`
sleep $timeout
done`
If I comment out this script then slstatus loads with ly login. However, I do not know what is wrong with the mpd script to stop slstatus loading...
Check if your LANG and PATH are set correctly when logging in via ly it could be them.
I'm also having this problem, where did you find the line to comment out that made it work again? I'm on gentoo.
If I log in with ly my slstatus script does not start. If I login with startx my slstatus script starts OK. I have tried setting a delay on slstatus-makes no difference. Any tips most welcome. I am using Arch linux.