#!/bin/zsh
for PREFERRED_TERMINAL in \
alacritty \
kitty \
;
do
command -v $PREFERRED_TERMINAL &</dev/null \
&& export TERMINAL="$(which $PREFERRED_TERMINAL)" \
&& break
done
for PREFERRED_BROWSER in \
google-chrome-stable \
google-chrome \
command -v $PREFERRED_BROWSER & >/dev/null \
&& export BROWSER="$(which $PREFERRED_BROWSER)" \
for XINITRC in $(find /etc/X11/xinit/xinitrc.d); do source "$XINITRC"; done
[ -f "$HOME/.config/X11/xmodmap" ] \
&& xmodmap "$HOME/.config/X11/xmodmap"
[ -f "$HOME/.config/X11/xkeymap" ] \
&& xkbcomp "$HOME/.config/X11/xkeymap" ${DISPLAY}
unset PREFERRED_TERMINAL PREFERRED_BROWSER XINITRC