You are not logged in.
Pages: 1
I could not find how to use the red Thinkpad i-dot as capslock indicator (missing on my Thinkpad E555).
So I wrote a little script and think it is useful enough to share.
#!/bin/sh
#/usr/local/bin/led
sleep 1
CAPS=$(xset -q | grep Caps | awk 'BEGIN {FS=":"};{print $3}' | tr -d ' 01'})
echo "0 $CAPS" > /proc/acpi/ibm/ledYou must sudo it and of course make it executeable. I am in the wheel group and have this
%wheel ALL=(ALL) NOPASSWD: /usr/local/bin/ledin /etc/sudoers
Keygrab capslock with command 'sudo led'.
Put 'sudo led' in .xprofile to have the right status after login (can be wrong before).
Offline
Grep is redundant with Awk:
xset -q | awk '/Caps/ {print $4}'Offline
Pages: 1