Skip to content

Commit b0a1fc6

Browse files
committed
Place the ripping status window of the automatic disc ripper to the center top.
1 parent 4703128 commit b0a1fc6

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ RUN \
6161
sed \
6262
# For the init script.
6363
findutils \
64+
# For the automatic disc ripper.
65+
xdpyinfo \
6466
# For optical drive detection.
6567
lsscsi \
6668
# For the eject command.

rootfs/opt/makemkv/bin/autodiscripper

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ start_yad() {
7373
--width=384 \
7474
--title "Automatic Disc Ripper" \
7575
--window-icon /opt/novnc/images/icons/master_icon.png \
76+
--posx=$(expr $(xdpyinfo | awk -F'[ x]+' '/dimensions:/{print $3}') / 2 - 384 / 2) \
77+
--posy=5 \
7678
--borders 10 \
7779
--text "Ripping disc ($2) from drive $1..." \
7880
--no-buttons \

0 commit comments

Comments
 (0)