Advertisement
sxiii

Search window by name and activate it in Linux (focus a window)

Jun 9th, 2022
761
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.19 KB | None | 0 0
  1. # Search for a window by name in Linux and activate it
  2. # Requirements:
  3. # * X-Server
  4. # * Xdotool
  5.  
  6. WINDOWNAME='GlobalProtect Login'
  7. xdotool windowactivate $(xdotool search --name $WINDOWNAME)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement