Replace ssh-a alias with ssh_a function ...

Update default .xinitrc in provision_linux
This commit is contained in:
mitchell 2021-06-08 15:36:14 -04:00
parent 5ecb8c98c2
commit 0c54457655
3 changed files with 46 additions and 2 deletions

View file

@ -131,7 +131,41 @@ function provision_desktop_env -d 'Install base desktop utilities and configure
or return $status
log 'Setting xinitrc'
echo 'exec bspwm' >~/.xinitrc
echo '#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec bspwm' >~/.xinitrc
log 'Installing arc-gruvbox theme'
mkdir -p ~/.themes