Environment:
Ubuntu 24.04.2 LTS
xdotool version 3.20160805.1
LibreOffice Writer 24.2.7.2
Goal
I want to schedule LibreOffice writer to key CTRL+S then CTRL+Q to save then quit a file on a shared workstation. It's necessary to ensure notes are passed from night shift to day shift as a restart is scheduled every morning for stability which closes the file without saving.
Problem:
I'm using xdotool to try to accomplish this. I am a very basic user so I don't understand a lot of the functionalities of the terminal but from what I can understand I need a window id from libreoffice to focus the window I want it to key.
I tried using an example line
xdotool search --class libreoffice
to get a window id for libreoffice but it returns nothing I've tried a few other options for xdotool search but it either returns nothing or the help menu. I've also tried
xdotool getwindowname
xdotool getwindowpid
xdotool getwindowfocus
The first two return no windows in the stack even if I specify [window=%@] and the third gives me a window id that I can't match to any window
Ubuntu 24.04.2 LTS
xdotool version 3.20160805.1
LibreOffice Writer 24.2.7.2
Goal
I want to schedule LibreOffice writer to key CTRL+S then CTRL+Q to save then quit a file on a shared workstation. It's necessary to ensure notes are passed from night shift to day shift as a restart is scheduled every morning for stability which closes the file without saving.
Problem:
I'm using xdotool to try to accomplish this. I am a very basic user so I don't understand a lot of the functionalities of the terminal but from what I can understand I need a window id from libreoffice to focus the window I want it to key.
I tried using an example line
xdotool search --class libreoffice
to get a window id for libreoffice but it returns nothing I've tried a few other options for xdotool search but it either returns nothing or the help menu. I've also tried
xdotool getwindowname
xdotool getwindowpid
xdotool getwindowfocus
The first two return no windows in the stack even if I specify [window=%@] and the third gives me a window id that I can't match to any window

