home/loginuser/.xinitrc hinzugefügt
This commit is contained in:
49
home/loginuser/.xinitrc
Normal file
49
home/loginuser/.xinitrc
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user