From 0fd3a2a04baf941d7b9ce31973193560693e3fb2 Mon Sep 17 00:00:00 2001 From: Jarno Rantanen Date: Sun, 12 Aug 2018 12:50:40 +0300 Subject: [PATCH] Update xsession with browser hiding. --- home/.xsession | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/home/.xsession b/home/.xsession index a18eebe..989f515 100755 --- a/home/.xsession +++ b/home/.xsession @@ -1,8 +1,10 @@ #!/bin/bash +export DISPLAY=:0.0 + # Start cursor at the top-left corner, as opposed to the default of dead-center # (so it doesn't accidentally trigger hover styles on elements on the page) -DISPLAY=:0.0 xdotool mousemove 0 0 +xdotool mousemove 0 0 # Set some useful X preferences xset s off # don't activate screensaver @@ -30,5 +32,11 @@ find .config/chromium/ -name "Last *" | xargs rm # http://peter.sh/experiments/chromium-command-line-switches/ chromium-browser --start-fullscreen --disable-infobars & +# Hide Chromium while it's starting/loading the page +wid=`xdotool search --sync --onlyvisible --class chromium` +xdotool windowunmap $wid +sleep 10 # give the web page time to load +xdotool windowmap $wid + # Finally, switch process to our window manager exec matchbox-window-manager -use_titlebar no