You are not logged in.

#1 2012-07-03 22:41:24

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

[SOLVED]dwm-personalized Lightdm stuck in loop

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=XSession

I have kept this simple to figure out the problem.

/usr/bin/dwm-personalized

#!/bin/zsh
exec dwm

Also, 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

#2 2012-07-03 23:00:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED]dwm-personalized Lightdm stuck in loop

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

#3 2012-07-03 23:30:14

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: [SOLVED]dwm-personalized Lightdm stuck in loop

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
done

Offline

#4 2012-07-04 01:21:40

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: [SOLVED]dwm-personalized Lightdm stuck in loop

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
done

Last edited by donniezazen (2012-07-04 01:22:20)

Offline

#5 2012-07-04 01:24:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]dwm-personalized Lightdm stuck in loop

You are starting dwm in a loop... quitting just reloads it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2012-07-04 08:04:15

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: [SOLVED]dwm-personalized Lightdm stuck in loop

@jasonwryan Thanks, I changed

while true; do
	dwm || exit
done

to

exec dwm

everything fixed.

Offline

Board footer

Powered by FluxBB