Skip to content

Commit 94cb818

Browse files
committed
update init logic and launch landing on init, add thunar and st
1 parent 5ad3f80 commit 94cb818

File tree

11 files changed

+32
-12
lines changed

11 files changed

+32
-12
lines changed

Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@ RUN \
1919
apk add --no-cache \
2020
libreoffice==${LIBREOFFICE_VERSION} \
2121
openjdk8-jre \
22+
st \
23+
thunar \
2224
tint2 && \
2325
echo "**** openbox tweaks ****" && \
2426
sed -i \
2527
's/NLMC/NLIMC/g' \
2628
/etc/xdg/openbox/rc.xml && \
29+
sed -i 's|</applications>| <application title="LibreOffice" type="normal">\n <maximized>yes</maximized>\n </application>\n</applications>|' /etc/xdg/openbox/rc.xml && \
30+
sed -i \
31+
'/Icon=/c Icon=xterm-color_48x48' \
32+
/usr/share/applications/st.desktop && \
2733
echo "**** cleanup ****" && \
2834
rm -rf \
2935
/tmp/*

Dockerfile.aarch64

+6
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@ RUN \
1919
apk add --no-cache \
2020
libreoffice==${LIBREOFFICE_VERSION} \
2121
openjdk8-jre \
22+
st \
23+
thunar \
2224
tint2 && \
2325
echo "**** openbox tweaks ****" && \
2426
sed -i \
2527
's/NLMC/NLIMC/g' \
2628
/etc/xdg/openbox/rc.xml && \
29+
sed -i 's|</applications>| <application title="LibreOffice" type="normal">\n <maximized>yes</maximized>\n </application>\n</applications>|' /etc/xdg/openbox/rc.xml && \
30+
sed -i \
31+
'/Icon=/c Icon=xterm-color_48x48' \
32+
/usr/share/applications/st.desktop && \
2733
echo "**** cleanup ****" && \
2834
rm -rf \
2935
/tmp/*

root/defaults/autostart

+11-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
tint2
1+
#!/bin/bash
2+
3+
# default file copies first run
4+
if [[ ! -f $HOME/.config/tint2/tint2rc ]]; then
5+
mkdir -p $HOME/.config/tint2
6+
cp /defaults/tint2rc /config/.config/tint2/tint2rc
7+
fi
8+
9+
# Start UI
10+
tint2 &
11+
libreoffice

root/defaults/menu.xml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<openbox_menu xmlns="http://openbox.org/3.4/menu">
3+
<menu id="root-menu" label="MENU">
4+
<item label="Terminal" icon="/usr/share/pixmaps/xterm-color_48x48.xpm"><action name="Execute"><command>/usr/bin/st</command></action></item>
5+
<item label="File Manager" icon="/usr/share/icons/hicolor/scalable/apps/org.xfce.thunar.svg"><action name="Execute"><command>/usr/bin/thunar</command></action></item>
6+
</menu>
7+
</openbox_menu>

root/defaults/tint2rc

+2-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ launcher_item_app = /usr/share/applications/libreoffice-impress.desktop
167167
launcher_item_app = /usr/share/applications/libreoffice-draw.desktop
168168
launcher_item_app = /usr/share/applications/libreoffice-math.desktop
169169
launcher_item_app = /usr/share/applications/libreoffice-base.desktop
170-
launcher_item_app = /usr/share/applications/xterm.desktop
170+
launcher_item_app = /usr/share/applications/thunar.desktop
171+
launcher_item_app = /usr/share/applications/st.desktop
171172

172173
#-------------------------------------
173174
# Clock

root/etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-tintcopy

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/init-tintcopy/dependencies.d/init-config

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/init-tintcopy/run

-8
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-tintcopy/type

-1
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-tintcopy/up

-1
This file was deleted.

root/etc/s6-overlay/s6-rc.d/user/contents.d/init-tintcopy

Whitespace-only changes.

0 commit comments

Comments
 (0)