Clean up jwmrc
This commit is contained in:
parent
e13cafd32b
commit
78de4cbf93
@ -8,7 +8,7 @@
|
|||||||
# check for syntax errors
|
# check for syntax errors
|
||||||
# set -n
|
# set -n
|
||||||
|
|
||||||
VER=2.0.96
|
VER=2.0.97
|
||||||
|
|
||||||
# default values {
|
# default values {
|
||||||
|
|
||||||
@ -24,7 +24,6 @@ ERR=/tmp/errlog # stderr log used internally by errshow()
|
|||||||
DBG=/tmp/debuglog # debug log file when passed -d
|
DBG=/tmp/debuglog # debug log file when passed -d
|
||||||
RUN=/run/archiso/bootmnt/arch/boot # path for live system /boot
|
RUN=/run/archiso/bootmnt/arch/boot # path for live system /boot
|
||||||
VM="$(dmesg | grep -i hypervisor)" # system running in a virtual machine
|
VM="$(dmesg | grep -i hypervisor)" # system running in a virtual machine
|
||||||
TEARFREE="" # whether to install xorg configs and nvidia drivers
|
|
||||||
EXMNTS="" # extra partitions that were mounted, used to verify mountpoint and show user
|
EXMNTS="" # extra partitions that were mounted, used to verify mountpoint and show user
|
||||||
FORMATTED="" # partitions that have been formatted, allows skipping the format step
|
FORMATTED="" # partitions that have been formatted, allows skipping the format step
|
||||||
USER_CMD="" # optional command(s) entered by the user to run in the chroot
|
USER_CMD="" # optional command(s) entered by the user to run in the chroot
|
||||||
@ -1350,8 +1349,8 @@ install_user()
|
|||||||
install_suckless "/home/$NEWUSER" chroot
|
install_suckless "/home/$NEWUSER" chroot
|
||||||
[[ $INSTALL_WMS == 'dwm' ]] && rm -rf "$MNT/home/$NEWUSER/.config/xfce4"
|
[[ $INSTALL_WMS == 'dwm' ]] && rm -rf "$MNT/home/$NEWUSER/.config/xfce4"
|
||||||
fi
|
fi
|
||||||
[[ $INSTALL_WMS == *jwm* ]] && cp -rf "$MNT/etc/system.jwmrc" "$MNT/home/$NEWUSER/.jwmrc"
|
[[ $INSTALL_WMS == *jwm* ]] && sed '7,14d; s/xlock -mode blank/i3-lock-fancy -p/g; s/root:1/rofi_run/g' "$MNT/etc/system.jwmrc" > "$MNT/home/$NEWUSER/.jwmrc"
|
||||||
[[ $INSTALL_WMS != *bspwm* && $INSTALL_WMS != *openbox* ]] && rm -rf "$MNT/home/$NEWUSER/.config/"{jgmenu,tint2}
|
[[ $INSTALL_WMS =~ (bspwm|openbox) ]] || rm -rf "$MNT/home/$NEWUSER/.config/"{jgmenu,tint2}
|
||||||
[[ $USER_PKGS != *geany* ]] && rm -rf "$MNT/home/$NEWUSER/.config/geany"
|
[[ $USER_PKGS != *geany* ]] && rm -rf "$MNT/home/$NEWUSER/.config/geany"
|
||||||
[[ $MYSHELL != 'bash' ]] && rm -rf "$MNT/home/$NEWUSER/.bash"*
|
[[ $MYSHELL != 'bash' ]] && rm -rf "$MNT/home/$NEWUSER/.bash"*
|
||||||
[[ $MYSHELL != 'zsh' ]] && rm -rf "$MNT/home/$NEWUSER/.z"*
|
[[ $MYSHELL != 'zsh' ]] && rm -rf "$MNT/home/$NEWUSER/.z"*
|
||||||
@ -1423,7 +1422,7 @@ install_packages()
|
|||||||
rmpkg+="zsh "
|
rmpkg+="zsh "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $INSTALL_WMS =~ (openbox|bspwm|i3-gaps|fluxbox) ]]; then
|
if [[ $INSTALL_WMS =~ (openbox|bspwm|i3-gaps|fluxbox|jwm) ]]; then
|
||||||
inpkg+="$WM_BASE_PKGS "
|
inpkg+="$WM_BASE_PKGS "
|
||||||
elif [[ $INSTALL_WMS == 'dwm' ]]; then # dwm only needs a very limited package set
|
elif [[ $INSTALL_WMS == 'dwm' ]]; then # dwm only needs a very limited package set
|
||||||
inpkg+="nitrogen polkit-gnome gnome-keyring dunst "
|
inpkg+="nitrogen polkit-gnome gnome-keyring dunst "
|
||||||
|
Reference in New Issue
Block a user