SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-07-17 22:33:42

safetycopy
urban legend
From: The Chatsubo
Registered: 2010-04-03
Posts: 1,311

dwm + SLiM Confusion [solved]

#!/bin/sh

case $1 in
openbox)
    exec openbox-session
    ;;
dwm)
    exec /home/safetycopy/.config/dwm/start
    ;;
esac

Last edited by safetycopy (2012-07-19 00:27:26)

Offline

Be excellent to each other!

#2 2012-07-17 22:46:38

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: dwm + SLiM Confusion [solved]

#!/bin/sh

eval `dbus-launch --sh-syntax --exit-with-session`
exec ck-launch-session /home/safetycopy/.config/dwm/start

Last edited by pidsley (2012-07-17 22:54:44)

Offline

#3 2012-07-17 22:53:51

safetycopy
urban legend
From: The Chatsubo
Registered: 2010-04-03
Posts: 1,311

Re: dwm + SLiM Confusion [solved]

Offline

#4 2012-07-17 23:03:08

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: dwm + SLiM Confusion [solved]

I just put both (or more) lines in .xinitrc and comment out the one I don't want:

#!/bin/sh

eval `dbus-launch --sh-syntax --exit-with-session`
exec ck-launch-session /home/safetycopy/.config/dwm/start
#exec ck-launch-session openbox-session

Then when I want to change, I log out of X, edit .xinitrc, and startx again. I like simple solutions.

Offline

#5 2012-07-17 23:18:15

safetycopy
urban legend
From: The Chatsubo
Registered: 2010-04-03
Posts: 1,311

Re: dwm + SLiM Confusion [solved]

Well, like I said, that's an option (although editing a file just to switch sessions seems like a bit of a nuisance) but it's bugging me that I can't figure out how to do this with SLiM - I thought I'd figured it out but I guess I'm still doing something (other than SLiM) wrong...

Offline

#6 2012-07-18 04:38:05

m5
#! CrunchBanger
From: 200 years ago.
Registered: 2011-12-08
Posts: 221

Re: dwm + SLiM Confusion [solved]

Last edited by m5 (2012-07-18 04:39:21)


Keep digging.
Linux beginner.

Offline

#7 2012-07-18 10:03:11

El_Belgicano
#! CrunchBanger
Registered: 2011-05-23
Posts: 147

Re: dwm + SLiM Confusion [solved]

if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]
then
    while true
    do
        read -n 1 -p 'Which wm to load? (openbox/dwm): '
        echo ''
        case $REPLY in
            [openbox]) echo "openbox-session" > ~/.wmtostart & exec startx ;;
            [dwm]) echo "dwm-session" > ~/.wmtostart & exec startx ;;
            *) break ;;
        esac
    done
fi

Offline

#8 2012-07-18 11:16:30

skbierm
#! Member
From: Germany
Registered: 2012-07-17
Posts: 89

Re: dwm + SLiM Confusion [solved]

safetycopy,

did you first try to start dwm from runlevel 3? (sudo init 3 from a tty outside of X - you're Xorg will then shutdown). If not, give it a try to see, if you're dwm is working ... otherwise you might hunt for the wrong bug :\

Just a guess ...

Offline

#9 2012-07-18 11:40:52

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: dwm + SLiM Confusion [solved]

Runlevels 2 to 5 are identical in Debian.

Offline

#10 2012-07-18 12:35:07

skbierm
#! Member
From: Germany
Registered: 2012-07-17
Posts: 89

Re: dwm + SLiM Confusion [solved]

Thanks for the correction, el_koraco.
I just started Crunchbang yesterday, so my runlevel knowledge is worth nothing anymore on Debian. What command is then used to stop Xorg from working?

Offline

#11 2012-07-18 12:40:40

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: dwm + SLiM Confusion [solved]

sudo service <display manager> stop
openbox --exit
Ctrl Alt Backspace
Crtl Q

IT depends on the given desktop or window manager.

Offline

#12 2012-07-18 12:42:53

skbierm
#! Member
From: Germany
Registered: 2012-07-17
Posts: 89

Re: dwm + SLiM Confusion [solved]

Yep, just did it already trying by

sudo /etc/init.d/slim stop for shutting down and sudo service slim start for firing up, so both commands are equivalent, more or less.

Offline

#13 2012-07-18 13:07:06

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: dwm + SLiM Confusion [solved]

Does it work the way you want if you change your .xsession entry to:

dwm)
    nitrogen --restore &
    exec dwm
    ;;

As I recall, that is what I had to do - but to .xinitrc

Last edited by PackRat (2012-07-18 13:07:54)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#14 2012-07-18 23:28:34

thevdude
#! Junkie
From: Pittsburgh, PA
Registered: 2011-09-01
Posts: 469

Re: dwm + SLiM Confusion [solved]

dwm)
    nitrogen --restore &
    exec dwm
    ;;

Offline

#15 2012-07-19 00:03:18

safetycopy
urban legend
From: The Chatsubo
Registered: 2010-04-03
Posts: 1,311

Re: dwm + SLiM Confusion [solved]

Offline

#16 2012-07-19 00:26:33

safetycopy
urban legend
From: The Chatsubo
Registered: 2010-04-03
Posts: 1,311

Re: dwm + SLiM Confusion [solved]

login_cmd           exec /bin/sh - ~/.xinitrc %session
sessions            openbox,spectrwm,dwm

Offline

#17 2012-07-19 03:10:01

rstrcogburn
CrunchRanger
From: NM - The Land of Enchantment
Registered: 2010-06-12
Posts: 1,950
Website

Re: dwm + SLiM Confusion [solved]

@thevdude  I thought you're a wmfscratcher?

Last edited by rstrcogburn (2012-07-19 03:13:18)


Pack em in snow!

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo