Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

317
Vistas
wmctrl to open window without focus

I am using the command:

wmctrl -a **id of application** -i

This is very close to what I am looking for, however Is there a away I can use wmctrl without bringing focus to the application.

For example if i run the command to bring up a window on my 2nd screen in terminal the focus of the mouse and keyboard stay on terminal.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

xdotool may come in handy in your situation.

  1. You should save your active window's ID to temporary file:

    xdotool getactivewindow > ~/.window_id

  2. Then focus desired window:

    wmctrl -a **id of application** -i

  3. And then restore focus to the previous window:

    xdotool windowfocus $(cat ~/.window_id) xdotool windowactivate $(cat ~/.window_id)

Using xbindkeys, xdotool and wmctrl combined create a very powerful tool-set.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda