Xinqi Bao's Git

fix(x11): use posix file tests in startup
[dotfiles.git] / .xinitrc
index dcb7bb1..c82be98 100644 (file)
--- a/.xinitrc
+++ b/.xinitrc
@@ -5,8 +5,8 @@ xwallpaper --zoom ~/pic/death-stranding_3.png
 setxkbmap -option caps:escape
 
 X_DIR=~/.config/x11
 setxkbmap -option caps:escape
 
 X_DIR=~/.config/x11
-[[ -f $X_DIR/xbindkeysrc ]] && xbindkeys -f $X_DIR/xbindkeysrc
-[[ -f $X_DIR/xresources ]] && xrdb -merge $X_DIR/xresources
+[ -f "${X_DIR}/xbindkeysrc" ] && xbindkeys -f "${X_DIR}/xbindkeysrc"
+[ -f "${X_DIR}/xresources" ] && xrdb -merge "${X_DIR}/xresources"
 
 autostart="xcompmgr slstatus fcitx5"
 for program in $autostart; do
 
 autostart="xcompmgr slstatus fcitx5"
 for program in $autostart; do