scrotwm - want to test my port?

Hi,

I've created a port of scrotwm and thought I'd offer it up here before submitting it for addition to the ports tree. Please feel free to test it.

Download the attached file and extract it into /usr/ports/x11-wm. It'll create /usr/ports/x11-wm/scrotwm, which you cd into and run make install.


Regards,
Aragon
 

Attachments

  • scrotwm.tar.gz
    3.1 KB · Views: 236
Something I've noticed with scrotwm is that it seems to not grab any key bindings if it is started up from .xsession prior to any other windows being open. I'm not sure what the deal is, but I've written to its author and will try debug it into submission if I don't hear from him.

In the mean time, if you're starting it up from .xsession, start a backgrounded xterm first, followed by a short sleep (0.2 works for me), and then scrotwm. Your desktop will load up with an xterm already open, and scrotwm key bindings will work 100%.

Example .xsession:
Code:
xterm &
sleep 0.2
scrotwm
 
Daisuke_Aramaki said:
Works fine aragon. Default key bindings work fine as well.
:beer
Thanks for testing, guys!

I'm curious about this strange behaviour I'm experiencing with key bindings. It seems you aren't experiencing it? Are you starting scrotwm from .xsession, and if so, can you share it here? What version of BSD and Xorg are you running?
 
aragon said:
Hi,

I've created a port of scrotwm and thought I'd offer it up here before submitting it for addition to the ports tree. Please feel free to test it.

Download the attached file and extract it into /usr/ports/x11-wm. It'll create /usr/ports/x11-wm/scrotwm, which you cd into and run make install.


Regards,
Aragon

I was just looking for this in ports, and here you have posted it just 2 days ago. Thanks! I'll try it. :)
 
Thanks, looking forward to it, estrabd!

Latest news is that it's in! Should hit your ports directories soon.
 
aragon said:
Thanks for testing, guys!

I'm curious about this strange behaviour I'm experiencing with key bindings. It seems you aren't experiencing it? Are you starting scrotwm from .xsession, and if so, can you share it here? What version of BSD and Xorg are you running?

I run 7.2 stable with the latest Xorg mate. And i use .xinitrc to launch X. so in addition to the mundane startup tasks, i have just exec scrotwm. And all the default keybindings work without any tweaking. Only minor issue so far is the color setup, for some reason some rgb entries never get inherited. But i will look into it in detail tonight.

Hope that helps.

/edit

scrotwm in action on my EEE.

 
Hi There - just wanted to pop in and say thanks for the port - it works a treat!

I have a suggestion though (and I know this may not be in the "spirit" of scrotwm) - can you include a little start script as well like "startscrotwm" (literally with just the launch command inside)? This is just for consistency with the other window managers.

I spent a while fighting with this but the issue ended up being that I launched "xinit scrotwm" rather than "xinit /path/to/scrotwm" *slaps head*. No big deal - just might save someone else the 30 mins I just lost falsely blaming your port :).
 
aragon said:
Sure can. How complex is the script? Paste it here if you can, or email me please.

Sure, here is all I'm using:

Code:
#!/bin/sh

xinit `which scrotwm`

I think scrotwm itself checks if a window manager is already running so the script doesn't need to be smart - just accessible to people who don't change their x setup every day :)
 
Hey. I finally got 'round to updating scrotwm and integrating a start script. Attached is a patch to update your port skeleton. Please let me know if you test it. Seems to work for me here, so I'll be submitting it soon. :)
 

Attachments

  • scrotwm-0.9.22.txt
    2.3 KB · Views: 246
Thanks - it works great on my machine! Note I usually use $(command) when scripting as well but then again I usually use Bash as opposed to plain old Bourne.

The one thing that worries me is that when I use syntax highlighting on vim, it doesn't like the dollar round brackets syntax with the Bourne shebang but it likes them fine if you have a Bash shebang which makes me think there may be some legacy versions of Bourne out there that don't support it (which is why I used backticks instead in my example). I don't know what the FreeBSD de Facto is, but works fine with the version I have!
 
Hi,

First of all, thanks for this port.

I also had some trouble with key bindings, but I managed to fix it by replacing
Code:
xmodmap $HOME/.Xmodmap
exec scrotwm > $HOME/.xsession-errors 2>&1
with
Code:
xterm -e "xmodmap $HOME/.Xmodmap" &
exec scrotwm > $HOME/.xsession-errors 2>&1
in my .xinitrc file.

For information, here is what I have in ~/.Xmodmap (I am using the right-Ctrl key for compose stuff):
Code:
keycode 109 = Multi_key


Now, scrotwm is working as expected. Thank you again! :)
 
Hey, I too have encountered the phenomena of bindings not working in scrotwm. I tried using the same .xsession setup as outlined above, but while this did result in xterm loading, none of the key-bindings were picked up, and when I used the ALT+(key) combination, it produced nonsense output on the terminal instead of causing scrotwm itself to do anything. Are there any other solutions I can try?
 
Did you use aragon's .xsession or my .xinitrc for our own .xsession file ?


On my box, the bindings involving the mouse were working in all cases (with and without the "xterm trick").

I also realized that running:
Code:
 xmodmap $HOME/.Xmodmap
in a terminal was enough to make all the other bindings work afterwards.
 
I encounter this issue too. Unfortunately I have no idea what's causing it, and the developers of scrotwm are unable to reproduce it. The xterm trick has worked for me too. If it's not working for you, try add a 0.5 second sleep statement after launching xterm.
 
@Stilgart: I tried Aragon's .xsession, but I didn't try your .xinitrc in my own .xsession because I wasn't sure what I needed to put in my .xmodmap file -- I use the standard US keyboard layout, so would 'keycode 109 = Multi_key' work for me, or do I need to put something else in there?

@aragon: I tried adding the 0.5 delay as you suggested, but still no dice :(
 
@purgatori: If you don't want any change for the key mapping, just create an empty .Xmodmap file. Hopeful, this will do the trick.


@aragon: Even a 30 seconds delay did not work for me. I really need to run xmodmap in some terminal. Which key do you use as a Mod key for scrotwm ? I am using the "Windows" key here.
 
Also using the winkey. I actually always run xmodmap in my xsession files - have a default set of mappings that I use on all my workstations. I still need to load xterm before scrotwm starts up or its key bindings don't work.
 
Ok, still not working for me :( Here is my .xsession file, so that you guys can tell me what, if anything, I'm doing wrong:

Code:
#!/bin/sh
exec wmii	
#xterm -e "xmodmap $HOME/.Xmodmap" &
#sleep 0.5
#exec scrotwm
#exec lxsession
#exec startkde

Note: of course, when I attempt to run scrotwm instead of wmii or one of the other listed wm/des, I uncomment the scrotwm entry, along with the sleep and xterm commands.
 
I have just realized that the most important part of the trick is to put "xterm" and "exec scrotwm" separated by a "&".

Did you test :
Code:
xterm -e "xmodmap $HOME/.Xmodmap" &
sleep 0.5
exec scrotwm
or
Code:
xterm -e "xmodmap $HOME/.Xmodmap" &
sleep 0.5 [B][color="Red"]&[/color][/B]
exec scrotwm
?

Try the second one if you did not. The first one do not work on my box while the second one do.

By the way, I have changed my .xinitrc. Here is my new (complete) version :
Code:
#!/bin/sh

xmodmap $HOME/.Xmodmap
xrdb -merge $HOME/.Xresources
arora & exec scrotwm > $HOME/.xsession-errors 2>&1

I put arora instead of xterm, this is more useful for me and makes the script less odd. :)
 
Originally, I didn't have the & -- as you can see in my .xsession -- but I tried it with the &, and it still doesn't work :(
 
Back
Top