XMonad + Synergy - change window border state when the pointer leaves the computer

خرید بک لینک

My current XMonad setup happily highlights the currently focused window with a nice green border.

import XMonad.Layout.NoBorders
...
defaults = defaultConfig {
    focusFollowsMouse  = True,
    borderWidth        = 4,
    normalBorderColor  = "grey",
    focusedBorderColor = "green", ...
...
myLayout = avoidStruts $ smartBorders ( ...

However, when the mouse moves off one of the multiple screens onto a neighbouring computer XMonad doesn't react - I'd like it to mark the window as unfocused, because all input now goes to a different machine.

Can anyone please suggest a mechanism I can use for this?

I don't know how to get the name of the 'currently selected computer' from Synergy, but let's assume it is possible (I can always modify the source for Synergy) - an approach for changing the focus in XMonad is what I would like most.

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: xmonad synergy, نویسنده: استخدام کار بازدید: 407 تاريخ: چهارشنبه 20 مرداد 1395 ساعت: 8:08

صفحه بندی