File tree Expand file tree Collapse file tree
root/etc/s6-overlay/s6-rc.d/svc-de Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
22
3+ # set the keyboard map by LC if known
34if [ ! -z "${LC_ALL}" ]; then
45 normalized_locale_full=${LC_ALL%%.*}
56 normalized_locale_lower=$(echo "$normalized_locale_full" | tr '[:upper:]' '[:lower:]')
@@ -51,13 +52,17 @@ if [ ! -z "${LC_ALL}" ]; then
5152 XKB_LAYOUT_ARGS="${LOCALE_TO_XKB_MAP[$normalized_locale_lower]}"
5253 fi
5354fi
54-
5555if [ ! -z "$XKB_LAYOUT_ARGS" ]; then
5656 s6-setuidgid abc setxkbmap ${XKB_LAYOUT_ARGS}
5757fi
58-
5958chmod 777 /tmp/selkies*
6059
60+ # set sane resolution before starting apps
61+ s6-setuidgid abc xrandr --newmode "1024x768" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
62+ s6-setuidgid abc xrandr --addmode screen "1024x768"
63+ s6-setuidgid abc xrandr --output screen --mode "1024x768" --dpi 96
64+
65+ # run
6166cd $HOME
6267exec s6-setuidgid abc \
6368 /bin/bash /defaults/startwm.sh
You can’t perform that action at this time.
0 commit comments