freelance solution & software architect π - containers π & linux π§ π - teacher & trainer π @ univ-lille.fr - ποΈ speaker
Published Feb 06, 2021 - Updated Apr 15, 2022
245 words, 1 minutes to read
I played a lot these days with xdotool, to try to automate some stuff for my Elgato Streamdeck.
These are the things I try to do:
Here are some links that I found about xdotool
:
Below are the commands I found useful during my research.
xprop | grep 'CLASS'
Click on the window you want to analyse after that.
More details about classes on this thread: xdotool: what are βclassβ and βclassnameβ for a window?
xdotool getactivewindow
xdotool search --onlyvisible --limit 1 --class "Firefox"
xdotool windowactivate 123456
xdotool search --onlyvisible --limit 1 --class "Firefox" key ctrl+t
ACTIVE_WINDOW=$(xdotool getactivewindow)
FIREFOX_WINDOW=$(xdotool search --onlyvisible --limit 1 --class "Firefox")
xdotool windowactivate $FIREFOX_WINDOW
xdotool key ctrl+s
xdotool windowactivate $ACTIVE_WINDOW
xdotool search --onlyvisible --limit 1 --class "Firefox" windowsize 800 600