Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Howto start StumpWM?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Re-JeeP
Apprentice
Apprentice


Joined: 10 Oct 2006
Posts: 294
Location: Sweden

PostPosted: Thu Oct 09, 2008 1:46 pm    Post subject: Howto start StumpWM? Reply with quote

Hi!

Trying to get StumpWM working. Install goes fine. But I cant figure out how to start it. The Wiki suggests one method and output after emerge another. None of them will work! I have even tried to install from source. But then I cannot compile!

Can anyone using StumpWM tell me how they are doing?

Thanks!
_________________
Dig where you stand!
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Thu Oct 09, 2008 7:02 pm    Post subject: Reply with quote

Are you using a graphical login manager or startx from the command line?

If using startx, just create an .xinitrc file in your home directory that contains /usr/bin/stumpwm.

If using a graphical login manager, then create a stumpwm.desktop file in /usr/share/xsessions. Here are the contents of the one for fluxbox that you can use as a template.
Code:
/home/daffy $ cat /usr/share/xsessions/fluxbox.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Fluxbox
Comment=This session logs you into Fluxbox
Exec=startfluxbox
TryExec=startfluxbox
# no icon yet, only the top three are currently used
Icon=
Type=Application

You will need to logout and probably restart your login manager (reboot to be sure) before the new session will be available from the login sessions menu of your login manager.
Back to top
View user's profile Send private message
Re-JeeP
Apprentice
Apprentice


Joined: 10 Oct 2006
Posts: 294
Location: Sweden

PostPosted: Thu Oct 09, 2008 7:39 pm    Post subject: Reply with quote

yabbadabbadont wrote:
Are you using a graphical login manager or startx from the command line?

No graphical login!

yabbadabbadont wrote:
If using startx, just create an .xinitrc file in your home directory that contains /usr/bin/stumpwm.

Well.. That's how you usually do it. But for StumpWM there is no binary!
_________________
Dig where you stand!
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Thu Oct 09, 2008 7:53 pm    Post subject: Reply with quote

There has to be something executable that you run... and it is most likely in /usr/bin (or /usr/local/bin if you installed it outside of portage).
Back to top
View user's profile Send private message
lesss
n00b
n00b


Joined: 09 Oct 2008
Posts: 1

PostPosted: Thu Oct 09, 2008 9:10 pm    Post subject: Reply with quote

Re-JeeP wrote:
yabbadabbadont wrote:
Are you using a graphical login manager or startx from the command line?

No graphical login!

yabbadabbadont wrote:
If using startx, just create an .xinitrc file in your home directory that contains /usr/bin/stumpwm.

Well.. That's how you usually do it. But for StumpWM there is no binary!


Hi.
You can build executable using

Code:

(asdf:oos 'asdf:load-op :stumpwm)
(sb-ext:save-lisp-and-die "stumpwm" :executable t
                          :toplevel #'(lambda () (stumpwm:stumpwm ":0")))


from sbcl.
(Stolen from http://yujianzhang.blogspot.com/2008/07/experiencing-stumpwm.html)
Back to top
View user's profile Send private message
Re-JeeP
Apprentice
Apprentice


Joined: 10 Oct 2006
Posts: 294
Location: Sweden

PostPosted: Fri Oct 10, 2008 10:37 am    Post subject: Reply with quote

lesss wrote:
You can build executable using

Code:

(asdf:oos 'asdf:load-op :stumpwm)
(sb-ext:save-lisp-and-die "stumpwm" :executable t
                          :toplevel #'(lambda () (stumpwm:stumpwm ":0")))


from sbcl.
(Stolen from http://yujianzhang.blogspot.com/2008/07/experiencing-stumpwm.html)

Thanks. That worked!

But man... Really unstable. Crashes constantly! Is there any work on StumpWM in Gentoo? I mean. Should I really have to create the binaries myself? Fells like some work needs to be done here!?
_________________
Dig where you stand!
Back to top
View user's profile Send private message
ashtophet
Guru
Guru


Joined: 08 Aug 2004
Posts: 397

PostPosted: Fri Oct 10, 2008 3:59 pm    Post subject: Reply with quote

Here it seems pretty stable (~x86).
Another way to go:

Code:

% awk '/^[^#]/' ~/.xinitrc                                                             
xbindkeys &
xscreensaver &
xrdb -load ~/.Xdefaults &
urxvtd -q -f -o &
exec /usr/local/bin/stumpwm #customized, read it


Code:

% cat /usr/local/bin/stumpwm
#!/bin/sh
sbcl --load ~/.scripts/stumpwm > /var/log/stumpwmlog 2>&1


Code:

% cat ~/.scripts/stumpwm
(asdf:oos 'asdf:load-op :stumpwm)
(stumpwm:stumpwm)
Back to top
View user's profile Send private message
Re-JeeP
Apprentice
Apprentice


Joined: 10 Oct 2006
Posts: 294
Location: Sweden

PostPosted: Fri Oct 10, 2008 10:04 pm    Post subject: Reply with quote

ashtophet wrote:
Here it seems pretty stable (~x86).

On ~x86 here to... Which ebuild are you running? None of the ones in the tree worked good for me. So I tried this: https://bugs.gentoo.org/show_bug.cgi?id=196982

But then nothing seems to work. Well... It starts. But there's no keybindings defined. For x11-wm/stumpwm-cvs there was lots of them...

ashtophet wrote:
Another way to go:

...

Ahhh.... nice!
_________________
Dig where you stand!
Back to top
View user's profile Send private message
ashtophet
Guru
Guru


Joined: 08 Aug 2004
Posts: 397

PostPosted: Sat Oct 11, 2008 6:46 am    Post subject: Reply with quote

Re-JeeP wrote:
ashtophet wrote:
Here it seems pretty stable (~x86).

On ~x86 here to... Which ebuild are you running? None of the ones in the tree worked good for me. So I tried this: https://bugs.gentoo.org/show_bug.cgi?id=196982

But then nothing seems to work. Well... It starts. But there's no keybindings defined. For x11-wm/stumpwm-cvs there was lots of them...



I'm using the 0.9.2 ebuild from portage official tree. Yes, the two active bugs you'll find at b.g.o. are still unresolved: it doesn't create a binary during installation process and doesn't install man/info pages without 'doc' useflag; stumpwm-cvs doesn't fetch latest git rev (it tries to get an old version from cvs tree).
Regarding lack of keybindings, defaults (forced with no ~/.stumpwmrc) work correctly in my box. I'd try to set a minimal .stumpwmrc changing default prefix binding (C-t) to some other and see if it works.
Back to top
View user's profile Send private message
Re-JeeP
Apprentice
Apprentice


Joined: 10 Oct 2006
Posts: 294
Location: Sweden

PostPosted: Sat Oct 11, 2008 7:46 am    Post subject: Reply with quote

ashtophet wrote:
Re-JeeP wrote:
ashtophet wrote:
Here it seems pretty stable (~x86).

On ~x86 here to... Which ebuild are you running? None of the ones in the tree worked good for me. So I tried this: https://bugs.gentoo.org/show_bug.cgi?id=196982

But then nothing seems to work. Well... It starts. But there's no keybindings defined. For x11-wm/stumpwm-cvs there was lots of them...



I'm using the 0.9.2 ebuild from portage official tree. Yes, the two active bugs you'll find at b.g.o. are still unresolved: it doesn't create a binary during installation process and doesn't install man/info pages without 'doc' useflag; stumpwm-cvs doesn't fetch latest git rev (it tries to get an old version from cvs tree).
Regarding lack of keybindings, defaults (forced with no ~/.stumpwmrc) work correctly in my box. I'd try to set a minimal .stumpwmrc changing default prefix binding (C-t) to some other and see if it works.

I now installed x11-wm/stumpwm-0.92. But it's the same with the keybindings.. I even tried as you said to change the prefix key:
Code:
(in-package :stumpwm)

(set-prefix-key (kbd "C-e"))

_________________
Dig where you stand!
Back to top
View user's profile Send private message
Re-JeeP
Apprentice
Apprentice


Joined: 10 Oct 2006
Posts: 294
Location: Sweden

PostPosted: Sat Oct 11, 2008 8:07 am    Post subject: Reply with quote

Hmm... The keybindings worked when I created a binary, like suggested above.
_________________
Dig where you stand!
Back to top
View user's profile Send private message
Re-JeeP
Apprentice
Apprentice


Joined: 10 Oct 2006
Posts: 294
Location: Sweden

PostPosted: Sat Oct 11, 2008 2:32 pm    Post subject: Reply with quote

But as before. It's not stable at all...

It often crashes with this error:
Code:
Errors from xkbcomp are not fatal to the X server
Synaptics DeviceInit called
SynapticsCtrl called
fatal error encountered in SBCL pid 15312:
maximum interupts nesting depth (32) exceeded

The system is so badly corrupted or confused to continue at the Lisp level.
If the system had been compiled with the SB-LDB feature, we'd drop
into the LDB low-level debugger now. But there's no LDB in this build,
so we can't really do anything but just exit, sorry.


Are you running yours with sbcl or clisp?
_________________
Dig where you stand!
Back to top
View user's profile Send private message
ashtophet
Guru
Guru


Joined: 08 Aug 2004
Posts: 397

PostPosted: Sat Oct 11, 2008 3:35 pm    Post subject: Reply with quote

I'm using, as you can see from startup script, sbcl. I don't get that error.
Back to top
View user's profile Send private message
Re-JeeP
Apprentice
Apprentice


Joined: 10 Oct 2006
Posts: 294
Location: Sweden

PostPosted: Sun Oct 12, 2008 9:36 am    Post subject: Reply with quote

ashtophet wrote:
I'm using, as you can see from startup script, sbcl. I don't get that error.

Ok...

Do you have the fdump command? Because I was trying to run "C-t ; fdump", but couldn't find the command. You know anything about that?
_________________
Dig where you stand!
Back to top
View user's profile Send private message
ashtophet
Guru
Guru


Joined: 08 Aug 2004
Posts: 397

PostPosted: Sun Oct 12, 2008 2:58 pm    Post subject: Reply with quote

Here I don't have fdump command. But I can use dump-screen dump-desktop dump-group...
If you want to debug and use SBCL with a startup script redirected to some file (/var/log/stumpwmlog in my case), maybe that file, along with
(setf *debug-level* 9) could be enough. Check also 11.2 on info page.
Back to top
View user's profile Send private message
Re-JeeP
Apprentice
Apprentice


Joined: 10 Oct 2006
Posts: 294
Location: Sweden

PostPosted: Tue Oct 14, 2008 7:12 am    Post subject: Reply with quote

ashtophet wrote:
Here I don't have fdump command. But I can use dump-screen dump-desktop dump-group...
If you want to debug and use SBCL with a startup script redirected to some file (/var/log/stumpwmlog in my case), maybe that file, along with
(setf *debug-level* 9) could be enough. Check also 11.2 on info page.

Thanks!
_________________
Dig where you stand!
Back to top
View user's profile Send private message
Re-JeeP
Apprentice
Apprentice


Joined: 10 Oct 2006
Posts: 294
Location: Sweden

PostPosted: Wed Oct 15, 2008 1:45 pm    Post subject: Reply with quote

ashtophet, Hi again.

I just wanted to give ju a tip!

I finally got stumpwm running. But I never could make it work any good with the x11-wm/stumpwm ebuild. Instead I used the Gentoo Lisp Overlay and compiled Stumpwm from scratch. Works like a charm! :D
_________________
Dig where you stand!
Back to top
View user's profile Send private message
ashtophet
Guru
Guru


Joined: 08 Aug 2004
Posts: 397

PostPosted: Wed Oct 15, 2008 7:40 pm    Post subject: Reply with quote

Glat to read it, Re-JeeP!

Cheers
Back to top
View user's profile Send private message
Re-JeeP
Apprentice
Apprentice


Joined: 10 Oct 2006
Posts: 294
Location: Sweden

PostPosted: Fri Oct 17, 2008 6:51 am    Post subject: Reply with quote

ashtophet wrote:
Glat to read it, Re-JeeP!

Cheers

:D

Also added how you run from the Git version with the overlay in the wiki
_________________
Dig where you stand!
Back to top
View user's profile Send private message
Segan
n00b
n00b


Joined: 30 Apr 2013
Posts: 10

PostPosted: Mon May 06, 2013 12:57 am    Post subject: Reply with quote

Hey, as you executed stumpwm end?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum