From 0014130901e934ada5529d9cf915301bfb835316 Mon Sep 17 00:00:00 2001 From: alientim Date: Tue, 15 Oct 2024 10:49:48 +0200 Subject: [PATCH] =?UTF-8?q?home/loginuser/.xinitrc=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/loginuser/.xinitrc | 49 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 home/loginuser/.xinitrc diff --git a/home/loginuser/.xinitrc b/home/loginuser/.xinitrc new file mode 100644 index 0000000..ff7746a --- /dev/null +++ b/home/loginuser/.xinitrc @@ -0,0 +1,49 @@ +#!/usr/bin/env sh +#Read DHCP +sudo dhclient eth0 + +#SET-Vars +RES=$(sudo fbset -s | grep -w "mode" | cut -d'"' -f 2 | sed -r 's/[x]+/,/g') +WBS=$(sudo cat /var/lib/dhcp/* | grep "option url" | tail -1 | awk '{print substr($3,2,length($3)-3)}') +SCREEN=$(sudo cat /var/lib/dhcp/* | grep "option screen" | tail -1 | awk '{print substr($3,2,length($3)-3)}') + +#Displayconfig +if [ -z "$SCREEN" ] +then + xset -dpms + xset s noblank + xset s off +else + xset s $SCREEN +fi + +#NO-Var fallback site +if [ -z "$WBS" ] +then + WBS=https://www.wis.gmbh/ +fi + +#Start Chromium +chromium-browser $WBS \ + --window-size=$RES \ + --window-position=0,0 \ + --start-fullscreen \ + --kiosk \ + --noerrdialogs \ + --disable-translate \ + --no-first-run \ + --fast \ + --fast-start \ + --disable-infobars \ + --disable-features=TranslateUI,PasswordManager,Autofill \ + --disk-cache-dir=/dev/null \ + --overscroll-history-navigation=0 \ + --disable-pinch \ + --disable-save-password-bubble \ + --password-store=basic \ + --disable-autofill \ + --disable-password-manager-reauthentication \ + --disable-password-manager \ + --user-data-dir=/tmp/chromium-profile + +exit \ No newline at end of file