On 2004-09-29 00:14:02 +0200, Konstantin Kletschke wrote:

> I made:
>
> add_to_hook("screen_workspace_switched",
>
>     function(screen, region)
>
>         local name = region:name()
>         exec("echo " .. name .. " | osd_cat -s 3 -u white -c rgb:0A/C2/00 -f 
> '-*-verdana-bold-r-normal-*-72-*' -p middle -A center -d 1 &")
>     end
> )
>
> which ist included in ion.lua. But be careful, there is probably a
> bug in it, which blocks the WM longer than necessary. And I suspect
> it frying recent ion2 versions completely but I invetigated it not
> in deep because I use ion3 ATM.

It works fine for me with the latest ion2, at least after changing
"exec" to "os.execute". And you should quote the workspace name so
that the shell doesn't try to evaluate it:

    exec("echo '" .. name .. "' | osd_cat

instead of

    exec("echo " .. name .. " | osd_cat

Until I did that, it didn't show workspaces called foo<1> and
suchlike.

Now there's only one problem left: I use Xinerama, and osd_cat always
prints its stuff on the first monitor. Extremely irritating, if you're
switching workspaces on the _other_ monitor.

-- 
Karl Hasselstr�m, [EMAIL PROTECTED]
      www.treskal.com/kalle

Reply via email to