File tree 5 files changed +48
-0
lines changed
5 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -454,6 +454,7 @@ bashcomp_DATA = 2to3 \
454
454
wvdial \
455
455
xdg-mime \
456
456
xdg-settings \
457
+ xev \
457
458
xfreerdp \
458
459
xgamma \
459
460
xhost \
Original file line number Diff line number Diff line change
1
+ # xev(1) completion -*- shell-script -*-
2
+
3
+ _comp_cmd_xev ()
4
+ {
5
+ local cur prev words cword
6
+ _init_completion || return
7
+
8
+ case $prev in
9
+ -display | -geometry | -bw | -id | -name)
10
+ return
11
+ ;;
12
+ -bs)
13
+ COMPREPLY=($( compgen -W ' NotUseful WhenMapped Always' -- " $cur " ) )
14
+ return
15
+ ;;
16
+ -event)
17
+ COMPREPLY=($(
18
+ compgen -W '
19
+ keyboard mouse expose visibility structure substructure
20
+ focus property colormap owner_grab_button randr button
21
+ ' -- " $cur "
22
+ ) )
23
+ return
24
+ ;;
25
+ esac
26
+
27
+ if [[ $cur == -* ]]; then
28
+ COMPREPLY=($( compgen -W ' $(_parse_help "$1")' -- " $cur " ) )
29
+ return
30
+ fi
31
+ } &&
32
+ complete -F _comp_cmd_xev xev
33
+
34
+ # ex: filetype=sh
Original file line number Diff line number Diff line change @@ -671,6 +671,7 @@ EXTRA_DIST = \
671
671
test_wvdial.py \
672
672
test_xdg_mime.py \
673
673
test_xdg_settings.py \
674
+ test_xev.py \
674
675
test_xfreerdp.py \
675
676
test_xgamma.py \
676
677
test_xhost.py \
Original file line number Diff line number Diff line change
1
+ import pytest
2
+
3
+
4
+ class TestXev :
5
+ @pytest .mark .complete ("xev " )
6
+ def test_basic (self , completion ):
7
+ assert not completion
8
+
9
+ @pytest .mark .complete ("xev -" , require_cmd = True )
10
+ def test_options (self , completion ):
11
+ assert completion
Original file line number Diff line number Diff line change @@ -420,6 +420,7 @@ wsimport
420
420
wtf
421
421
wvdial
422
422
xdg-settings
423
+ xev
423
424
xfreerdp
424
425
xgamma
425
426
xmllint
You can’t perform that action at this time.
0 commit comments