summaryrefslogtreecommitdiffstats
path: root/completions/xev
diff options
context:
space:
mode:
Diffstat (limited to 'completions/xev')
-rw-r--r--completions/xev31
1 files changed, 31 insertions, 0 deletions
diff --git a/completions/xev b/completions/xev
new file mode 100644
index 0000000..78df177
--- /dev/null
+++ b/completions/xev
@@ -0,0 +1,31 @@
+# xev(1) completion -*- shell-script -*-
+
+_comp_cmd_xev()
+{
+ local cur prev words cword comp_args
+ _comp_initialize -- "$@" || return
+
+ case $prev in
+ -display | -geometry | -bw | -id | -name)
+ return
+ ;;
+ -bs)
+ _comp_compgen -- -W 'NotUseful WhenMapped Always'
+ return
+ ;;
+ -event)
+ _comp_compgen -- -W 'keyboard mouse expose visibility structure
+ substructure focus property colormap owner_grab_button randr
+ button'
+ return
+ ;;
+ esac
+
+ if [[ $cur == -* ]]; then
+ _comp_compgen_help
+ return
+ fi
+} &&
+ complete -F _comp_cmd_xev xev
+
+# ex: filetype=sh