sxiii icon

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

sxiii | PRO | 06/09/22 08:51:29 AM UTC | 0 ⭐ | 1028 👁️ | Never ⏰ | []
Bash |

190 B

|

None

|

0 👍

/

0 👎

# Search for a window by name in Linux and activate it
# Requirements:
# * X-Server
# * Xdotool
 
WINDOWNAME='GlobalProtect Login'
xdotool windowactivate $(xdotool search --name $WINDOWNAME)

Comments