You are not logged in.

#1 2010-01-10 09:34:04

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Restart dwm without logging out [solved]

Hello guys,

I have problems to adapt the solution from the dwm wiki thread on my own .xinitrc.

First the solution from the wiki:

conky | while read line; do
    xsetroot -name "$line"
done | while true; do
# Log stderror to a file 
dwm 2> ~/.dwm.log; done
# No error logging
#dwm > /dev/null; done

As I'm not using Conky and not really familiar with bash syntax I have no idea which part of this loop might be relevant.

Here is my .xinitrc

while true
do
    xsetroot -name  "$(date +"%a, %b %d %R")"
    sleep 1s
done &
xterm &
xterm -e vifm &
xterm -class alsamixer  -e alsamixer &
server &
skype &
firefox &
exec dwm

Thank you in advance for any help. smile

Best regards

Last edited by orschiro (2010-01-11 16:07:52)

Offline

#2 2010-01-10 18:20:42

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Restart dwm without logging out [solved]

My .xinitrc (in part):

exec ck-launch-session ~/scripts/dwm-start

~/scripts/dwm-start:

#!/bin/sh
~/scripts/dwm-status | while true;  do  /usr/bin/dwm > /dev/null; done;

I don't use conky anymore. You can see the dwm-status script in my configs

This allow you to do the mod-shift Q to restart dwm without logging out.

Good luck!
Scott

Last edited by firecat53 (2010-01-10 18:22:13)

Offline

#3 2010-01-11 07:37:30

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Restart dwm without logging out [solved]

Hello firecat53,

I understand how it should work. Thank you. I adapted my .xinitrc to my needs.

#!/bin/sh

while true
do
    xsetroot -name  "$(date +"%a, %b %d %R")"
    sleep 1s
done &
xterm &
xterm -e vifm &
xterm -class alsamixer  -e alsamixer &
server &
skype &
firefox &
while true;  do  /usr/bin/dwm > /dev/null; done;

Offline

#4 2010-01-11 14:56:26

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Restart dwm without logging out [solved]

Glad you got it working smile Don't forget to edit your first post and mark the topic [SOLVED].

Scott

Offline

Board footer

Powered by FluxBB