Jump to content

linux: restart 0ad and move window


Recommended Posts

this is maybe helpful for you (works for me). let me know if something wrong. for example the command for kill 0ad ( i dont know )

# for your linux konsole fish alias:
```sh
alias 0adReStartMove="killall main; clear; 0ad >/dev/null 2>&1 & pwd; sleep 1; ~/scripts/moveWindow.sh "
```

```sh
#!/bin/sh
# moveWindow.sh

# 1920,1080

# https://stackoverflow.com/questions/29833717/how-can-i-move-application-windows-using-autokey

WINDOW_ID=$(wmctrl -l | awk '/0 A.D./ {print $1}')
wmctrl -i -r "$WINDOW_ID" -e 0,1908,-27,1922,1089;
echo "gravity,X,Y,width,height"
```

 

 

Edited by seeh
was not large enough
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...