feat(system): configure nano (-FEDSMAGic/max%_T2) as EDITOR, less -RXF as PAGER, add ed/rlwrap/less, and remove vim
This commit is contained in:
@@ -107,6 +107,8 @@ rm -rf \
|
||||
"$TARGET_ROOTFS/usr/lib/fcitx5/libwaylandim.so" \
|
||||
"$TARGET_ROOTFS/usr/share/fcitx5/addon/wayland.conf" \
|
||||
"$TARGET_ROOTFS/usr/share/fcitx5/addon/waylandim.conf" \
|
||||
"$TARGET_ROOTFS/usr/bin/vim"* \
|
||||
"$TARGET_ROOTFS/usr/share/vim" \
|
||||
"$TARGET_ROOTFS/home/user/.config/fcitx5/conf/waylandim.conf" \
|
||||
"$TARGET_ROOTFS/etc/skel/.config/fcitx5/conf/waylandim.conf" \
|
||||
"$TARGET_ROOTFS/home/user/.config/wob" \
|
||||
|
||||
@@ -63,6 +63,10 @@ configure_common_rootfs() {
|
||||
g++ \
|
||||
musl-dev \
|
||||
make \
|
||||
coreutils \
|
||||
ed \
|
||||
rlwrap \
|
||||
less \
|
||||
nano \
|
||||
janet \
|
||||
janet-dev \
|
||||
@@ -683,44 +687,20 @@ PYEOF
|
||||
for target_home in "$ROOTFS/etc/skel" "$ROOTFS/home/user"; do
|
||||
mkdir -p \
|
||||
"$target_home/.config/sxmo/hooks" \
|
||||
"$target_home/.config/wofi" \
|
||||
"$target_home/.config/foot" \
|
||||
"$target_home/.config/wob" \
|
||||
"$target_home/.config/fontconfig/conf.d"
|
||||
cp "$ROOTFS/usr/share/sxmo/appcfg/profile_template" "$target_home/.config/sxmo/profile"
|
||||
if ! grep -q "SXMO_MENU=wofi" "$target_home/.config/sxmo/profile"; then
|
||||
cat >> "$target_home/.config/sxmo/profile" <<'EOF'
|
||||
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
export WLR_RENDERER=pixman
|
||||
export WLR_NO_HARDWARE_CURSORS=1
|
||||
export SXMO_DISABLE_LEDS=1
|
||||
export SXMO_NO_VIRTUAL_KEYBOARD=1
|
||||
export NO_AT_BRIDGE=1
|
||||
export GTK_A11Y=none
|
||||
export GTK_USE_PORTAL=0
|
||||
export GTK_IM_MODULE=fcitx
|
||||
export QT_IM_MODULE=fcitx
|
||||
export XMODIFIERS=@im=fcitx
|
||||
export SXMO_MENU=wofi
|
||||
export SXMO_BEMENU_PORTRAIT_LINES=11
|
||||
export SXMO_BEMENU_LANDSCAPE_LINES=8
|
||||
export BEMENU_OPTS='--fn "Sxmo 11.5" -H 24 -B 2 --hp 4 -s --no-overlap --fixed-height --scrollbar none --cw 2 --bdr "#005577" --tb "#383838" --tf "#aaaaaa" --fb "#383838" --ff "#ffffff" --cb "#ffffff" --cf "#383838" --nb "#1c1c1c" --nf "#ffffff" --ab "#1c1c1c" --af "#ffffff" --hb "#005577" --hf "#ffffff" -w -i'
|
||||
EOF
|
||||
fi
|
||||
cp "$ROOTFS/usr/share/sxmo/appcfg/sway_template" "$target_home/.config/sxmo/sway"
|
||||
cp "$ROOTFS/usr/share/sxmo/appcfg/xinit_template" "$target_home/.config/sxmo/xinit"
|
||||
cp "$ROOTFS/usr/share/sxmo/appcfg/conky.conf" "$target_home/.config/sxmo/conky.conf"
|
||||
cp "$ROOTFS/usr/share/sxmo/appcfg/wofi.config" "$target_home/.config/wofi/config"
|
||||
cp "$ROOTFS/usr/share/sxmo/appcfg/wofi.css" "$target_home/.config/wofi/style.css"
|
||||
cp "$ROOTFS/usr/share/sxmo/appcfg/foot.ini" "$target_home/.config/foot/foot.ini"
|
||||
cp "$ROOTFS/usr/share/sxmo/appcfg/wob.ini" "$target_home/.config/wob/wob.ini"
|
||||
cp "$ROOTFS/usr/share/sxmo/appcfg/bonsai_tree.json" "$target_home/.config/sxmo/bonsai_tree.json"
|
||||
cp "$ROOTFS/usr/share/sxmo/appcfg/Xresources" "$target_home/.Xresources"
|
||||
cp "$ROOTFS/usr/share/sxmo/appcfg/fontconfig.conf" "$target_home/.config/fontconfig/conf.d/50-sxmo.conf"
|
||||
cp "$ROOTFS/usr/share/sxmo/default_hooks/sxmo_hook_inputhandler.sh" "$target_home/.config/sxmo/hooks/sxmo_hook_inputhandler.sh"
|
||||
chmod 755 "$target_home/.config/sxmo/hooks/sxmo_hook_inputhandler.sh"
|
||||
chmod 755 "$target_home/.config/sxmo/hooks/sxmo_hook_inputhandler.sh" "$target_home/.config/sxmo/xinit" "$target_home/.config/sxmo/profile"
|
||||
done
|
||||
fi
|
||||
|
||||
sed -i "/^P:sxmo-utils-common$/,/^$/ s/ vim//" "$ROOTFS/lib/apk/db/installed" 2>/dev/null || true
|
||||
apk --root "$ROOTFS" --arch armv7 del --no-scripts vim vim-common nftables-vim protobuf-vim 2>/dev/null || true
|
||||
|
||||
if [ -x /bananarchy/scripts/apply-bananarchy-overlay.sh ]; then
|
||||
/bananarchy/scripts/apply-bananarchy-overlay.sh "$ROOTFS" nokia-argon
|
||||
depmod -b "$ROOTFS" 6.12.1-msm8916
|
||||
|
||||
Reference in New Issue
Block a user