From 556deb069fb8bd08fbc36be5c71ec5976670af3e Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Thu, 6 Sep 2018 13:22:15 +0300 Subject: [PATCH] profile: check for existence of numlockx --- rc/profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rc/profile b/rc/profile index 2cfc17c8..180f5403 100644 --- a/rc/profile +++ b/rc/profile @@ -21,7 +21,9 @@ PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS; ulimit -c unlimited # Numlock on at boot -numlockx on +if hash numlockx 2>/dev/null; then + numlockx on +fi # Workaround disappearing cursors, probably no harm in any case export XCURSOR_DISCOVER=1