Re: Reassigning keys to be another key

CyberLeo Kitsana <[email protected]> Tue, 10 Jul 2012 13:53:59 -0500
Newsgroups gmane.comp.window-managers.icewm.user
Message-ID <[email protected]>
On 07/10/2012 01:36 PM, Attila Kinali wrote:
> On Tue, 10 Jul 2012 11:33:16 -0700
> Classic Valve Design <[email protected]> wrote:
> 
>>> further fix:
>>> [...]
>>>
>>> icewm &
>>> sleep 5
>>> xmodmap ~/.Xmodmap
>>
>> There can be nothing after icewm in the .xsession, otherwise it will
>> halt icewm to execute the next line.
>> (Debian install note from when I started using Ice waaaay back in Woody)
> 
> Hmm? That sounds fishy! icewm (or any other wm for that matter) is
> a normal X11 client. You can start it however you like and run stuff
> afterwards. What yo have to take care is, that the .xinitrc/.xsession
> may not exit. If it does, the x server exits as well. That's why i put
> an "fg" at the end. I move icewm back to the foreground and ensures that
> the script does not exit until icewm exits.

I ran into a related issue: certain applets will crash or not show up at
all if launched before IceWM's applet container has started. I just
wrapped them in a subshell with a sleep at the top, and it's worked
perfectly fine since:

----8<----
...
( # Session applets - start after IceWm
  sleep 2
  conky &
  nm-applet &
  padevchooser &
  gnome-power-manager &
  gnome-obex-server &
) | logger -st "XDM-${USER}" &

# No exec here, so shell can reap zombie children
ck-launch-session icewm-session
...
----8<----

It might also be possible to do things within the icewm-session startup
script (~/.icewm/startup) as well, but I haven't tested that.

-- 
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
<[email protected]>

Furry Peace! - http://wwww.fur.com/peace/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/