문제

I am using Ubuntu with the Unity desktop and I would like to write a Ruby script that minimizes all of my Chrome windows and opens my LibreOffice Calc window. I'm sure there is an API for this, but whenever I Google "Ruby Unity API", "Ruby Unity Window Management" or "manage Unity from CLI", I get erroneous results. Could someone please point me in the direction of which Gem I should be using or alternatively what shell commands I should be investigating?

도움이 되었습니까?

해결책

What I should have been Googling is "AutoIt for Linux", where I would have discovered the scripting too called "AutoKey", which includes functions for windows manipulation. I'm going to leave this post up for posterity.

Actually, if you're feeling keen on using the command line, you can actually use wmctrl.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top