Usando este script:
Instale x11-utils
, precisamos de xwininfo
sudo apt-get install x11-utils
e crie um script com o código abaixo
#!/bin/bash
# resizes the window to full height and 50% width and moves into upper right corner
#define the height in px of the top system-bar:
TOPMARGIN=27
#sum in px of all horizontal borders:
RIGHTMARGIN=10
# get width of screen and height of screen
SCREEN_WIDTH=$(xwininfo -root | awk '=="Width:" {print }')
SCREEN_HEIGHT=$(xwininfo -root | awk '=="Height:" {print }')
# new width and height
W=$(( $SCREEN_WIDTH / 2 - $RIGHTMARGIN ))
H=$(( $SCREEN_HEIGHT - 2 * $TOPMARGIN ))
zenity --entry --ok-label=sure --width=$W --height=$H