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:
parent
76f4f04f2e
commit
89463a215a
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue