big-bag-skylark/dreymar-xtools/key-xev.sh

24 lines
657 B
Bash
Executable File

#!/bin/sh
# =====================================================
# === XEV.sh for DreymaR's XKB modifications ===
# === by Øystein Bech "DreymaR" Gadmar, 2014 ===
# =====================================================
#
# Shell script to run a keypress-specific XEV
#
# Usage: 'sh [scriptpath]' or
# allow executing file then run in a term window
#
# Happy xkb-hacking!
#---------- init --------------------------------------
SETXKB='setxkbmap -print -v 7'
#---------- main --------------------------------------
echo "*** Running $XEV: ***"
xev | sed -ne '/^KeyPress/,/^$/p'
echo "\n*** Press <ENTER> to finish: ***"
read dummy