Raspberry Pi – Auto Dashboard (just notes)

Raspberry Pi

Autostart

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@point-rpi

@xset s noblank
@xset s off
@xset -dpms
@chromium-browser --noerrdialogs --incognito --login-profile --login-user --pro$


Bash Script

#!/usr/bin/env bash

export DISPLAY=:0

xdotool search --onlyvisible --class "chromium" windowfocus && xdotool key ctrl+Tab

Cron

* * * * * /home/pi/tabrevolver.sh >> /home/pi/tabrevolver.log 2>&1
* * * * * sleep 30; /home/pi/tabrevolver.sh >> /home/pi/tabrevolver.log 2>&1

#!/bin/bash

xdotool search –onlyvisible –class “chromium” windowfocus && xdotool key ctrl+Tab

chmod u+x scriptname
./tab-revolver.sh

./home/pi/tab-revolver.sh

* * * * * /home/pi/tabrevolver.sh >> /home/pi/tabrevolver.log 2>&1
* * * * * sleep 15; /home/pi/tabrevolver.sh >> /home/pi/tabrevolver.log 2>&1
* * * * * sleep 30; /home/pi/tabrevolver.sh >> /home/pi/tabrevolver.log 2>&1
* * * * * sleep 45; /home/pi/tabrevolver.sh >> /home/pi/tabrevolver.log 2>&1

* * * * * /home/pi/tabrevolver.sh >> /home/pi/tabrevolver.log 2>&1

Add a Comment

Your email address will not be published. Required fields are marked *