File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- v1.0.10
1+ v1.0.11
Original file line number Diff line number Diff line change 1- # Set screen resolution to 1920x1080 on both HDMI ports (for Raspberry Pi)
2- xrandr --output HDMI-1 --mode 1920x1080 &
3- xrandr --output HDMI-2 --mode 1920x1080 &
4- # Set gradient background
5- feh --bg-scale ~/.config/thinOS/backgrounds/gradient.png &
1+ # Openbox autostart (thinOS)
2+ #
3+ # Notes:
4+ # - Apply display layout first (without backgrounding), then reload X resources.
5+ # - If only HDMI-1 is connected, explicitly turn HDMI-2 off to avoid a larger
6+ # virtual framebuffer / overlapping desktop regions.
7+
8+ # Give X a moment to bring outputs up (especially on Raspberry Pi)
9+ ( sleep 1 \
10+ && if xrandr | grep -q "^HDMI-2 connected"; then \
11+ xrandr --output HDMI-1 --mode 1920x1080 --primary --pos 0x0 --rotate normal \
12+ --output HDMI-2 --mode 1920x1080 --pos 1920x0 --rotate normal \
13+ --fb 3840x1080; \
14+ else \
15+ xrandr --output HDMI-1 --mode 1920x1080 --primary --pos 0x0 --rotate normal \
16+ --output HDMI-2 --off \
17+ --fb 1920x1080; \
18+ fi \
19+ && xrdb -merge "$HOME/.Xdefaults" \
20+ ) &
21+
22+ # Set gradient background (after layout)
23+ ( sleep 2 && feh --bg-scale "$HOME/.config/thinOS/backgrounds/gradient.png" ) &
24+
625# Autostart PyRDPConnect in full-screen mode
726python3 /usr/share/PyRDPConnect/src/main.py &
27+
828# Start devmon for automount (with notifications)
929( sleep 2 && /usr/local/bin/thinos-devmon ) &
You can’t perform that action at this time.
0 commit comments