Skip to content

Commit e727c99

Browse files
authored
Merge pull request #13 from LaswitchTech/dev
General: Version bumped to v1.0.11
2 parents 05202d2 + 7f752b5 commit e727c99

2 files changed

Lines changed: 26 additions & 6 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.0.10
1+
v1.0.11

src/openbox/autostart

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,29 @@
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
726
python3 /usr/share/PyRDPConnect/src/main.py &
27+
828
# Start devmon for automount (with notifications)
929
( sleep 2 && /usr/local/bin/thinos-devmon ) &

0 commit comments

Comments
 (0)