dotfilesClean dotfiles |
git clone git://git.dimitrijedobrota.com/dotfiles.git |
Log | Files | Refs | |
commit | 2732b135355ef9ed9232ed0465a067df79d92f84 |
parent | 14cc4f66ec85a04247a095825f3ac9c6cc24073d |
author | Dimitrije Dobrota <mail@dimitrijedobrota.com> |
date | Thu, 21 Sep 2023 18:55:00 +0000 |
XDG check if programs exist, dwm hot reload
Diffstat:M | .xdg/config/X11/xinitrc | | | ++++++++++++++-- |
M | .xdg/config/bash/bash_profile | | | +- |
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/.xdg/config/X11/xinitrc b/.xdg/config/X11/xinitrc
@@ -32,5 +32,17 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
unset f
fi
slstatus 2>&1 >/dev/null &
exec dwm
if command -v slstatus &> /dev/null; then
slstatus 2>&1 >/dev/null &
else
echo "Warning: slstatus does not exist!"
fi
if command -v dwm &> /dev/null; then
while true; do
dwm && continue || break
done
else
echo "Error: dwm does not exist!"
exit 1
fi
diff --git a/.xdg/config/bash/bash_profile b/.xdg/config/bash/bash_profile
@@ -2,7 +2,7 @@
# ${XDG_CONFIG_HOME}/bash/bash_profile
#
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthorit
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
export GVIMINIT='let $MYGVIMRC="$XDG_CONFIG_HOME/vim/gvimrc" | source $MYGVIMRC'