Hello,

I'm using screen_notify=true but want it to be disabled for a
particular program (klipper). I've tried to hack up a script to
accomplish this:

function kos.klipper_started_hook(win)
 if "Klipper"==win:get_ident().class then
   ioncore.get_hook("clientwin_mapped_hook"):remove(kos.klipper_started_hook)
   WRegion.set_activity(win,unset)
   WRegion.set_activity(WRegion.rootwin_of(win),unset)
   ioncore.set{screen_notify=true}
 end
end

function kos.run_klipper()
 ioncore.set{screen_notify=false}
 ioncore.get_hook("clientwin_mapped_hook"):add(kos.klipper_started_hook)
 os.execute("klipper")
end

It works but only partially. Klipper starts on workspace named 'float'
and no notification appears. As soon as it is started and
screen_notify is turned back on by the hook and I run some other
program which creates a window, say, on workspace 'xyz', I get an
activity notification: "act: xyz,float", which doesn't go away until I
switch to both 'xyz' _and_ 'float', which I don't want to do.

Where's my mistake?

Thanks

--
/KoS

Reply via email to