3 lines
56 B

#!/usr/bin/bash
v=$(xset -q | grep Caps)
echo ${v:7:17}