-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathxinitrc.example
More file actions
29 lines (24 loc) · 888 Bytes
/
xinitrc.example
File metadata and controls
29 lines (24 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
while true
do
# Clean up previously running apps, gracefully at first then harshly
killall -TERM chromium 2>/dev/null;
killall -TERM matchbox-window-manager 2>/dev/null;
sleep 2;
killall -9 chromium 2>/dev/null;
killall -9 matchbox-window-manager 2>/dev/null;
# Clean out existing profile information
rm -rf /home/pi/.cache;
rm -rf /home/pi/.config;
rm -rf /home/pi/.pki;
# Disable DPMS / Screen blanking
xset -dpms
xset s off
# Start the window manager (remove "-use_cursor no" if you actually want mouse interaction)
matchbox-window-manager -use_titlebar no -use_cursor no &
# Start the browser (See http://peter.sh/experiments/chromium-command-line-switches/)
# for local web clock
midori -e Fullscreen http://localhost/Operations-Clock/
# for central clock
#midori -e Fullscreen https://noaa-swpc.github.io/Operations-Clock
done