1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/bash # # Turns on Numlock echo "$1" | grep -q "New" > /dev/null 2>&1 if [ $? -eq 0 ]; then xset led 1 else xset -led 1 fi echo "$1"