wmctrl: moving a fullscreen window

2019-08-02 13:36发布

A small shell script should fix my ghosting-screen problem. I'm trying to move each window just 1px in a certain direction and in the following second it should do a move in the other direction back.

#!/bin/bash

while read windowId g x y w h deviceId windowTitle; do
    # ignore desktop screen
    if [ "${windowTitle}" != "Desktop" ]; then
        # ...
        # test values (fullscreen: not possible | window-mode: possible)
        `wmctrl -i -r ${windowId} -e 0,200,200,500,500`
        # ...
    fi
done < <(wmctrl -lG)

Is it possible to move a fullscreen window just by 1px in a certain direction? (wmctrl).

Thanks for your help!

0条回答
登录 后发表回答