You are not logged in.
Hello,
I am using following configurations directly from Arch dwm wiki. After I provide my login and password, it takes me right back to lightdm. I am able to log-in using both regular dwm session and xinitrc.
/usr/share/xsessions/dwm-personalized.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Dwm-personalized
Comment=Dynamic window manager
Exec=dwm-personalized
Icon=dwm
Type=XSessionI have kept this simple to figure out the problem.
/usr/bin/dwm-personalized
#!/bin/zsh
exec dwmAlso, once this is fixed. Will it be possible to link /usr/bin/dwm-personalized to somewhere like ~/.config/autostart/dwm_autostart_programs to easily autostart programs without root user permissions.
Thanks.
Last edited by donniezazen (2012-07-04 08:04:36)
Offline
I'm not really sure how the desktop files are used - I've never used them, but have you tried removing the "exec" from before dwm in your dwm-personalized script?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Removing exec does nothing.
I changed the whole thing to following. It seems Xresources, Feh and Xfce4-power-manager are being started but not the statubar section which is started if I run same script as through xinitrc as suggested by wiki.
cat /usr/bin/dwm-personalized
s file is called by .xinitrc to start some nice apps for dwm
xrdb -merge ~/.Xresources &
xfce4-power-manager &
sh ~/.fehbg &
#set statusbar
while true
do
if acpi -a | grep off-line > /dev/null; then
xsetroot -name "Bat. $(awk 'sub(/,/,"") {print $3, $4}' <(acpi -b)) \
| Vol. $(awk '/dB/ { gsub(/[\[\]]/,""); print $5}' <(amixer get Master)) \
| $(date +"%a, %b %d %R")"
else
xsetroot -name "Vol. $(awk '/dB/ { gsub(/[\[\]]/,""); print $5}' <(amixer get Master)) \
| $(date +"%a, %b %d %R")"
fi
sleep 1s
done &
while true; do
dwm || exit
doneOffline
I am able to log in using the dwm-personalized and as far as I can tell everything in the script works.
I am unable to quit (go to lightdm) dwm using Modkey+Shift+Q. I am not sure if these are related.
#!/bin/bash
xrdb -merge ~/.Xresources &
xfce4-power-manager &
sh ~/.fehbg &
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
#set statusbar
while true
do
if acpi -a | grep off-line > /dev/null; then
xsetroot -name "Bat. $(awk 'sub(/,/,"") {print $3, $4}' <(acpi -b)) \
| Vol. $(awk '/dB/ { gsub(/[\[\]]/,""); print $5}' <(amixer get Master)) \
| $(date +"%a, %b %d %R")"
else
xsetroot -name "Vol. $(awk '/dB/ { gsub(/[\[\]]/,""); print $5}' <(amixer get Master)) \
| $(date +"%a, %b %d %R")"
fi
sleep 1s
done &
while true; do
dwm || exit
doneLast edited by donniezazen (2012-07-04 01:22:20)
Offline
You are starting dwm in a loop... quitting just reloads it.
Offline