Any way to capture keyboard/mouse in an extension ?

There is a feature I really miss in gnome-shell for work : being able
to make a window transparent : really nice to compare stuff.
Setting the opacity of a window is rather simple, but binding a
key/mouse combination is not.
i tried the following :
function change_opacity(actor,event) {
  return true;

function bind_scroll (display, window) {
  log("bind : "+window.get_title())
  return true;

function main() {
  let display = global.screen.get_display();

At the moment, I don't even try to play with a modifier, but the piece
of code above does not detect scrolling.
What's weird is that scroll event is a know signal for metawindows.

Do I have any chance to succeed ?

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