From 89463a215a7d1ad7961ab6e7b75bf31936505204 Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Mon, 21 Mar 2022 21:59:47 +0100 Subject: [PATCH] Check command exists before runnning in .xprofile --- X11/xprofile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/X11/xprofile b/X11/xprofile index 00be695..d1bd5fd 100644 --- a/X11/xprofile +++ b/X11/xprofile @@ -8,10 +8,14 @@ [ -f ~/.Xresources ] && xrdb -merge $HOME/.Xresources # Turn on numlock -numlockx on +if [[ $(command -v numlockx) ]]; then + numlockx on +fi # Caps Lock works as escape key: whoever uses CapsLock? -setxkbmap -option caps:escape +if [[ $(command -v setxkbmap) ]]; then + setxkbmap -option caps:escape +fi # Start redshift if it exists if [[ $(command -v redshift) ]]; then