sergio@sergio-desktop:~$ xev | sed -n 's/^.*state \([0-9].*\), keycode *\([0-9]\+\) *\(.*\), .*$/keycode \2 = \3, state = \1/p' keycode 180 = (keysym 0x1008ff18, XF86HomePage), state = 0x0 keycode 180 = (keysym 0x1008ff18, XF86HomePage), state = 0x0
P.S.:Another strange thing if that it printed it twice.
sergio@ sergio- desktop: ~$ xev | sed -n 's/^.*state \([0-9].*\), keycode *\([0-9]\+\) *\(.*\), .*$/keycode \2 = \3, state = \1/p'
keycode 180 = (keysym 0x1008ff18, XF86HomePage), state = 0x0
keycode 180 = (keysym 0x1008ff18, XF86HomePage), state = 0x0
P.S.:Another strange thing if that it printed it twice.