0
私はgnomeウィンドウをbar-lessにするためにこのスクリプトを用意しました。 バーが消えるようにウィンドウを上に移動するだけです。 問題は、すべてのコマンドの後にsleep 0.2を追加しない限り、時にはうまくいきません! 前回の終了後に次のコマンドを強制的に実行する方法はありますか?xdotoolスクリプトを順に実行しています
#!/bin/bash
xdotool key super+Down
xdotool getactivewindow windowsize 104% 114%
xdotool getactivewindow windowmove 0 0
xdotool key alt+F7
xdotool mousemove_relative x -77
xdotool key KP_Enter
xdotool key alt+F8
xdotool mousemove_relative x 77
xdotool key Left
xdotool key Left
xdotool key Left
xdotool key Left
xdotool key KP_Enter
システム間のスリープが必要なのは、システムが直前のコマンドに即座に反応しない可能性があるため、次のコマンドが実行されるまでに期待された状態に移行しなかったためです。また、具体的にはキーストロークについて:http://stackoverflow.com/questions/34092604/xdotool-why-sleep-before-running-commands – dekkard
なぜフルスクリーンに行かないのですか?ヒットF11 – Emilien