1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-11-17 17:03:32 +01:00

Check command exists before runnning in .xprofile

This commit is contained in:
Eric Teunis de Boone 2022-03-21 21:59:47 +01:00
parent 76f4f04f2e
commit 89463a215a

View file

@ -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