You are not logged in.

#26 2009-02-06 03:01:31

cdwillis
Member
From: /home/usa
Registered: 2008-11-20
Posts: 294

Re: Scrotwm / Spectrwm

I wasn't being negative, just inquisitive. More power to you guys to use this. More developers coding window managers can only mean more knowledge and better software for the community. smile

Offline

#27 2009-02-06 03:43:05

koch
Member
From: Germany
Registered: 2008-01-26
Posts: 369

Re: Scrotwm / Spectrwm

amen smile

Offline

#28 2009-02-06 03:53:18

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Re: Scrotwm / Spectrwm

Any idea how to change the keybindings ? Or is it not possible?


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#29 2009-02-06 15:00:30

strankan
Member
From: Sundsvall - Sweden
Registered: 2006-11-08
Posts: 97

Re: Scrotwm / Spectrwm

The only thing I found I could change was the mod key, and that's through editing the source code.

Offline

#30 2009-02-06 15:13:54

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Re: Scrotwm / Spectrwm

cdwillis wrote:

I'm not trying to be a negative Nancy here (just because I don't care for tiling WMs doesn't mean I don't wish this project luck), but there is already wmii, dwm, awesome, xmonad, stumpwm, Ion3, and ratpoison. What is the advantage to using Scrotwm compared to those? I understand that the configuration file doesn't require programming knowledge, but don't most tiling WM users program as well?

Each one of them has its advantages, but there are disvantages also. Eg:

xmonad is my favorite, but you have to install ghc, which is a big dependency;
awesome is nice, but it has the bad habit of changing the config file too much;
dwm is lightweight and written in C, but is too minimalistic to my tastes.
And the list goes on...


(lambda ())

Offline

#31 2009-02-09 04:21:48

cdwillis
Member
From: /home/usa
Registered: 2008-11-20
Posts: 294

Re: Scrotwm / Spectrwm

I went ahead and added scrotwm to the Comparison of Tiling Window Managers wiki page. Somebody that is actually using it might want to check and make sure all of the information I added is correct.

Offline

#32 2009-02-09 20:49:07

spoik
Member
From: Minneapolis Minnesota
Registered: 2008-09-15
Posts: 5

Re: Scrotwm / Spectrwm

has anyone figured out if there is a way to get rid of the "ERROR: ld.so: object '/usr/X11R6/lib/swmhack.so' from LD_PRELOAD cannot be preloaded: ignored." message?

Offline

#33 2009-02-09 23:59:39

marco_p
Member
Registered: 2009-02-09
Posts: 81

Re: Scrotwm / Spectrwm

I was told that you guys were looking for a fix and I committed that today.  It isn't in the snapshot yet but you can find all the code at: http://www.peereboom.us/scrotwm/ and the linux makefile is in the linux dir.
/marco

Offline

#34 2009-02-10 01:38:21

OpenBSD
Member
Registered: 2009-02-04
Posts: 43

Re: Scrotwm / Spectrwm

Thanks Marco.

You guys are doing great work.  Using scrotwm on OpenBSD and will use it now that this is fixed on my netbook.
Thanks for taking it on.
Will there be a config file option to make the bloody windows key the modkey (I know this is a i386 issue only)?  Changed it in source, but I am a lazy bastard.

Offline

#35 2009-02-10 03:43:55

emu
Member
From: Denmark
Registered: 2008-11-08
Posts: 8

Re: Scrotwm / Spectrwm

This is pretty great, nice defaults...

There is a few keybinds i would like to change, but this is great for a version 0.8.

I will stick with this for a while and see how it is.

edit:
Can someone update the aur whit the fix. i am not sure how to compile it myself *blush*

Last edited by emu (2009-02-10 03:47:17)

Offline

#36 2009-02-10 03:52:00

emu
Member
From: Denmark
Registered: 2008-11-08
Posts: 8

Re: Scrotwm / Spectrwm

maybe we should allso add dmenu as a dependency...

Offline

#37 2009-02-10 05:11:22

marco_p
Member
Registered: 2009-02-09
Posts: 81

Re: Scrotwm / Spectrwm

emu wrote:

This is pretty great, nice defaults...

There is a few keybinds i would like to change, but this is great for a version 0.8.

I will stick with this for a while and see how it is.

edit:
Can someone update the aur whit the fix. i am not sure how to compile it myself *blush*

The modkey diff is floating in mail.  After that makes it in I'll look at making adding the keybindings to the .conf file as well.  I am taking diffs btw ;-)

Oh and I fixed a few little bugs today.  Latest code is always in anoncvs or my website at http://www.peereboom.us/scrotwm/
I have not rolled a new snap yet.

Last edited by marco_p (2009-02-10 05:13:00)

Offline

#38 2009-02-10 10:39:39

strankan
Member
From: Sundsvall - Sweden
Registered: 2006-11-08
Posts: 97

Re: Scrotwm / Spectrwm

Great news, gonna give it another go this weekend. KUTGW!

Offline

#39 2009-02-10 16:07:03

spoik
Member
From: Minneapolis Minnesota
Registered: 2008-09-15
Posts: 5

Re: Scrotwm / Spectrwm

thanks for all the work marco. I'm loving scrotwm already and has become my default. Keep it up.

Offline

#40 2009-02-10 20:47:52

marco_p
Member
Registered: 2009-02-09
Posts: 81

Re: Scrotwm / Spectrwm

Offline

#41 2009-02-10 22:32:48

OpenBSD
Member
Registered: 2009-02-04
Posts: 43

Re: Scrotwm / Spectrwm

Marco,

first thank you for contributing this great wm as well as on this forum.
Just compiled the 0.9 snapshot.  Still getting the swmhack.so error.
Do you have a Linux box to test or running in VB?

Thanks.

Offline

#42 2009-02-11 02:26:08

emu
Member
From: Denmark
Registered: 2008-11-08
Posts: 8

Re: Scrotwm / Spectrwm

I got i to work perfectly by manualy compiling the files, and placed swm_hack.so in the /usr/X11R6/lib/

I know its a dirty workaround, but i works shoothly and i get no more errors.

One thing i would like to see, is a changelog, so we can se what is being modified, changed, etc.

It looks great so far, you have 2 tumbs up from me, for your good work.

Have a nice day.
Anders

Offline

#43 2009-02-11 04:47:57

tam1138
Member
Registered: 2007-09-10
Posts: 238

Re: Scrotwm / Spectrwm

emu wrote:

I got i to work perfectly by manualy compiling the files, and placed swm_hack.so in the /usr/X11R6/lib/

This is, thankfully, not necessary, as the PKGBUILD file in AUR statically compiles swm_hack into scrotwm.  I've added a PKGBUILD and hack to get rid of the preload to AUR:

http://aur.archlinux.org/packages.php?ID=23487

[ edit: i link good ]

[ edit 2: it strikes me that this is just a hack in itself, because the LD_PRELOAD is used when scrotwm forks, and the patch I supplied removes this behavior.  So really all my patch does is stop the errors, it doesn't fix the real problem.  Caveat emptor, but it works for me. wink ]

Last edited by tam1138 (2009-02-11 15:25:49)

Offline

#44 2009-02-12 17:19:07

marco_p
Member
Registered: 2009-02-09
Posts: 81

Re: Scrotwm / Spectrwm

I do not use Linux on a daily basis and the Makefiles were sent to me by folks that claim it works.

To answer the by now mystical swmhack stuff...

That library is there to hook several X functions.  The reason for that is to launch an app in the right workspace.  So if you hit alt-p and luanch firefox and switch workspaces as you wait for it to load it will appear in the workspace it was launched in.  If you statically link it it will not work; it needs the LD_PRELOAD magic for it to do anything.

Offline

#45 2009-02-12 19:44:30

sparchy
Member
From: arizona, usa
Registered: 2007-11-20
Posts: 32

Re: Scrotwm / Spectrwm

marco_p wrote:

I do not use Linux on a daily basis and the Makefiles were sent to me by folks that claim it works.

To answer the by now mystical swmhack stuff...

That library is there to hook several X functions.  The reason for that is to launch an app in the right workspace.  So if you hit alt-p and luanch firefox and switch workspaces as you wait for it to load it will appear in the workspace it was launched in.  If you statically link it it will not work; it needs the LD_PRELOAD magic for it to do anything.

Yep, I've just tried it both ways using the AUR package build with dmenu and compiling it myself with a swmhack.so linked to libswmhack.so.0.0 in /usr/lib.
With the AUR build using dmenu I woud start firefox and I would wait ~1-2 seconds swith to another workspace and firefox would follow me there, with swmhack.so->libswmhack.so.0.0 in /usr/lib/ I get the correct firefox placement, it stays put in the workspace I launched it from.  I needed 'lorder' from 'bsdmainutils' package to compile for libswmhack.so.0.0.  Might need that has a dependency if you decide to remake the package, I used the debian bsdmainutils source pkg since I couldn't find it in AUR or in arch repos.
Also applied this patch to scrotwm.c so it looks for swmhack.so/libswmhack.so in the right directory.

--- scrotwm.c.orig    2009-02-10 13:30:11.000000000 -0700
+++ scrotwm.c    2009-02-11 12:14:23.000000000 -0700
@@ -135,7 +135,7 @@
 #define SWM_MAX_FONT_STEPS    (3)
 
 #ifndef SWM_LIB
-#define SWM_LIB            "/usr/X11R6/lib/swmhack.so"
+#define SWM_LIB            "/usr/lib/swmhack.so"
 #endif
 
 char            **start_argv;

Offline

#46 2009-02-12 20:09:12

tam1138
Member
Registered: 2007-09-10
Posts: 238

Re: Scrotwm / Spectrwm

Dunno how it works on the BSDs, but if you just provide LD_PRELOAD=swmhack.so, Linux will go through the standard system library search paths, which is The Right Way to do it.  Hard-coding a full path is... tacky.

[ Edit: pronouns are bad ]

Last edited by tam1138 (2009-02-12 20:10:14)

Offline

#47 2009-02-12 22:43:56

marco_p
Member
Registered: 2009-02-09
Posts: 81

Re: Scrotwm / Spectrwm

The library on OpenBSD is created like this:
cc -O2 -pipe -g -Wall -Wno-uninitialized -ggdb3 -I/usr/X11R6/include    -c /home/marco/scrotwm/lib/swm_hack.c -o swm_hack.o
building standard swmhack library
ranlib libswmhack.a
cc -O2 -pipe -g -Wall -Wno-uninitialized -ggdb3 -I/usr/X11R6/include    -c -fpic -DPIC /home/marco/scrotwm/lib/swm_hack.c -o swm_hack.so
building shared object swmhack library
ranlib libswmhack_pic.a
building shared swmhack library (version 0.0)
cc -shared -fpic  -o libswmhack.so.0.0  `lorder swm_hack.so|tsort -q`
install -c -s -o root -g bin  -m 555 scrotwm /usr/X11R6/bin/scrotwm
install -c -o root -g bin -m 444 scrotwm.cat1 /usr/X11R6/man/cat1/scrotwm.0

And the lorder does the magical magic that is magical.  I also would like to point out that I am a kernel hacker who decided to write a wm because all the others I tried didn't work well enough for me.  So bleah on linking magic!

And to reply to fixed directories...  If one uses an OS where libraries are always in a fixed location it is a great way to prevent someone hijacking a hacked up version in some random directory.  It is a perspective thing, I write code for OpenBSD and our mantra is security before all else.  You hate it; I like it.

Offline

#48 2009-02-12 23:22:13

tam1138
Member
Registered: 2007-09-10
Posts: 238

Re: Scrotwm / Spectrwm

marco_p wrote:

And to reply to fixed directories...  If one uses an OS where libraries are always in a fixed location it is a great way to prevent someone hijacking a hacked up version in some random directory.  It is a perspective thing, I write code for OpenBSD and our mantra is security before all else.  You hate it; I like it.

Okay, so you're protecting against someone doing one of two things: a) changing the list of directories you search for libs, presumably adding a location to which they have write permissions and can therefore insert a library of their choice; and b) overwriting a library in one of those directories, or putting a similarly-named library in a directory that shows up earlier in the search list.  In either case, they have compromised either the root account or your user account, and you're fucked six ways from Sunday anyway.  Providing a hard-coded library path is a silly security "feature" that does more to stroke the ego of the coder than give any tangible benefit.

Offline

#49 2009-02-12 23:25:54

marco_p
Member
Registered: 2009-02-09
Posts: 81

Re: Scrotwm / Spectrwm

I won't kick this dead horse anymore.  I write the code, I vote.

Offline

#50 2009-02-12 23:34:28

tam1138
Member
Registered: 2007-09-10
Posts: 238

Re: Scrotwm / Spectrwm

Oh certainly, as is your right.  I just don't want other people to get carried away and think it's actually a beneficial practice.

Offline

Board footer

Powered by FluxBB