dotfiles

Clean dotfiles
git clone git://git.dimitrijedobrota.com/dotfiles.git
Log | Files | Refs

commit 87e38bc130e2ce7bbda889bf798d4b8fe636a202
parent 5193984918636719f823a8c9e1b576490dd76953
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 | 16++++++++++++++--
M.xdg/config/bash/bash_profile | 2+-
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'