1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-11-18 01:13:31 +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 [ -f ~/.Xresources ] && xrdb -merge $HOME/.Xresources
# Turn on numlock # Turn on numlock
if [[ $(command -v numlockx) ]]; then
numlockx on numlockx on
fi
# Caps Lock works as escape key: whoever uses CapsLock? # Caps Lock works as escape key: whoever uses CapsLock?
if [[ $(command -v setxkbmap) ]]; then
setxkbmap -option caps:escape setxkbmap -option caps:escape
fi
# Start redshift if it exists # Start redshift if it exists
if [[ $(command -v redshift) ]]; then if [[ $(command -v redshift) ]]; then