default ~/.Xresources added.

This commit is contained in:
Storm Dragon committed 2026-10-10 17:53:17 -04:00
1 parent 4134a16ecd
commit d41a531b9d
7 files changed
+93

No files matched your search

+1
View File
@@ -48,6 +48,7 @@ If the build is interrupted, run `sudo umount -R /mnt && sudo losetup -D` to be
- **Packages**: Edit the package list inside `pi4/build/build-stormux.sh` (search for `pacman -Su --needed`). Add or remove entries as needed, then rebuild.
- **Package sources**: The build does not fetch or compile packages from the AUR. Packages are installed from the official Arch Linux ARM repositories or the Stormux repository. The finished image includes `yay`, but it is installed as a prebuilt package from the Stormux repository and is not used during the build.
- **First-boot behavior**: Modify `pi4/files/usr/local/bin/configure-stormux` to change the guided setup that runs when the image boots the first time.
- **X resources**: `pi4/files/etc/skel/.Xresources` is installed in the default user's home and `/etc/skel`, so newly created users inherit it too.
Remember to keep permissions sensible (`chmod 755` for scripts, `644` for configs) so rsync copies them correctly.
+2
View File
@@ -603,6 +603,8 @@ install_rhvoice_english_fixes
# Copy skel files to stormux user home (after user rename in chroot)
find ../files/etc/skel/ -mindepth 1 -exec cp -rv "{}" /mnt/home/stormux/ \;
install -Dm644 ../files/etc/skel/.Xresources /mnt/etc/skel/.Xresources
arch-chroot /mnt chown stormux:users /home/stormux/.Xresources
# Copy boot files again to ensure custom config overrides any package changes
cp -rv ../files/boot/* /mnt/boot
+25
View File
@@ -0,0 +1,25 @@
! Start in Unicode
XTerm*utf8: 1
UXTerm*utf8: 1
! Use white-on-black colors
XTerm.vt100.reverseVideo: true
UXTerm.vt100.reverseVideo: true
! XTerm already has 256 colors support
! We ask it to set the correct $TERM XTerm.termName: xterm-256color
UXTerm.termName: xterm-256color
! Start with maximized window
xterm*maximized: true
! Make Alt key behave like in other terminals
XTerm.vt100.altIsNotMeta: true
UXTerm.vt100.altIsNotMeta: true
XTerm.vt100.metaSendsEscape: true
UXTerm.vt100.metaSendsEscape: true
URxvt.perl-ext-common: "default, -searchable-scrollback"
URxvt.font: xft:terminus:size=16
*VT100.Translations: #override \
<Key>BackSpace: string(0x7F)\n\
<Key>Delete: string("\033[3~")\n\
<Key>Home: string("\033[1~")\n\
<Key>End: string("\033[4~")\n\
Ctrl Shift <Key>V: insert-selection(CLIPBOARD)
*ttyModes: erase ^?
+11
View File
@@ -172,6 +172,17 @@ Edit `packages.x86_64` and add package names (one per line).
Place files in `airootfs/` following the target filesystem structure.
The x86_64 build uses this overlay directly.
### Default X Resources
Keep `airootfs/etc/skel.stormux/.Xresources` and
`airootfs/home/stormux/.Xresources` identical. The home copy supplies the live
user's defaults. During ISO creation, the skeleton copy is placed in
`/etc/skel`; `install-stormux` copies it into the target's `/etc/skel` after
package installation and before creating users. All users created with new
home directories by the installer inherit `~/.Xresources`, regardless of the
selected desktop or partition layout. Users created later with `useradd -m`
inherit it as well. Reused home directories keep their existing files.
## Troubleshooting
### Build fails with GPG errors
@@ -0,0 +1,25 @@
! Start in Unicode
XTerm*utf8: 1
UXTerm*utf8: 1
! Use white-on-black colors
XTerm.vt100.reverseVideo: true
UXTerm.vt100.reverseVideo: true
! XTerm already has 256 colors support
! We ask it to set the correct $TERM XTerm.termName: xterm-256color
UXTerm.termName: xterm-256color
! Start with maximized window
xterm*maximized: true
! Make Alt key behave like in other terminals
XTerm.vt100.altIsNotMeta: true
UXTerm.vt100.altIsNotMeta: true
XTerm.vt100.metaSendsEscape: true
UXTerm.vt100.metaSendsEscape: true
URxvt.perl-ext-common: "default, -searchable-scrollback"
URxvt.font: xft:terminus:size=16
*VT100.Translations: #override \
<Key>BackSpace: string(0x7F)\n\
<Key>Delete: string("\033[3~")\n\
<Key>Home: string("\033[1~")\n\
<Key>End: string("\033[4~")\n\
Ctrl Shift <Key>V: insert-selection(CLIPBOARD)
*ttyModes: erase ^?
+25
View File
@@ -0,0 +1,25 @@
! Start in Unicode
XTerm*utf8: 1
UXTerm*utf8: 1
! Use white-on-black colors
XTerm.vt100.reverseVideo: true
UXTerm.vt100.reverseVideo: true
! XTerm already has 256 colors support
! We ask it to set the correct $TERM XTerm.termName: xterm-256color
UXTerm.termName: xterm-256color
! Start with maximized window
xterm*maximized: true
! Make Alt key behave like in other terminals
XTerm.vt100.altIsNotMeta: true
UXTerm.vt100.altIsNotMeta: true
XTerm.vt100.metaSendsEscape: true
UXTerm.vt100.metaSendsEscape: true
URxvt.perl-ext-common: "default, -searchable-scrollback"
URxvt.font: xft:terminus:size=16
*VT100.Translations: #override \
<Key>BackSpace: string(0x7F)\n\
<Key>Delete: string("\033[3~")\n\
<Key>Home: string("\033[1~")\n\
<Key>End: string("\033[4~")\n\
Ctrl Shift <Key>V: insert-selection(CLIPBOARD)
*ttyModes: erase ^?
@@ -1467,6 +1467,10 @@ install_base_system() {
copy_rhvoice_english_fixes
# Populate the target skeleton before configure_system creates users.
log_info "Installing default X resources"
install -Dm644 /etc/skel/.Xresources "$mountPoint/etc/skel/.Xresources"
# Generate or preserve fstab
if [[ "$useExistingMount" == true ]]; then
if grep -Eq '^[[:space:]]*[^#[:space:]]' "$mountPoint/etc/fstab" 2>/dev/null; then