ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RP] ratpoison 1.4.0-beta2


From: Martin Samuelsson
Subject: Re: [RP] ratpoison 1.4.0-beta2
Date: Tue, 1 Mar 2005 20:02:48 +0100
User-agent: Mutt/1.5.6+20040907i

On Mon, Feb 28, 2005 at 01:56:41PM -0500, Joshua Neuheisel wrote:
> The problem has to do with the fact that "exec" is now silently prefixed to
> all shell commands.  One way around this is to perform the following:
> C-t ! bash -c '( LANG=C xterm )'

I remember reading something about that exec thing, and even tried
something almost like the row above which didn't work.

Typing it with the exact correct syntax works though. (:

Thanks heaps!!!

Now all my fancy aliases work as they are supposed to again.


For example this one that takes care of both NAS forwarding and
considers wheater being inside of the NATed network or not.

alias lura terminal-latin1 -e ssh -X -R 7999:127.0.0.1:8000 address@hidden([ 
"$(~/bin/iswhere.sh)" = "ch.lugn.nu" ] && echo lura.ch.lugn.nu || echo 
laga.lugn.nu))'

it requires something like this one to be set first of course

alias terminal-latin1 exec bash -c '(LC_ALL=sv_SE.ISO-8859-1 urxvt -tn xterm



While I'm at it I might as well quote this from my .ratpoisonrc also

definekey top C-Up   exec ratpoison -c "exec /home/cos/bin/incrxvt" -c "echo 
Bigger (`xrdb -query|grep URxvt.font|sed 's/.*\(size=[0-9]*\).*/\1/'`)"
definekey top C-Down exec ratpoison -c "exec /home/cos/bin/decrxvt" -c "echo 
Smaller (`xrdb -query|grep URxvt.font|sed 's/.*\(size=[0-9]*\).*/\1/'`)"

and those lines requires your JNPatch and scripts like the following:

leka% cat bin/incrxvt  
#!/bin/sh
echo "URxvt.font: xft:Monospace:autohint=true:size="$[ `xrdb -query|grep 
"URxvt.font"|sed 's/.*size=\([0-9]*\).*/\1/'` +1 ]",xft:Kochi 
Gothic,xft:Code2000"|xrdb -merge
printf '\e]50;%s\007' "`xrdb -query|grep URxvt.font|cut -d\      -f2-9`"
ratpoison --command "set font `xrdb -query|grep "URxvt.font"|sed 
's/URxvt\.font:[^M]*\([^,]*\).*/\1/'`" 
echo "set guifont=Monospace\ `xrdb -query|grep URxvt.font|sed 
's/.*size=\([0-9]*\).*/\1/'`" > /dev/shm/gvimfont
--
/Martin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]