fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Jason Naderdogfood string split -ff66285d7a

master
1.1 KiB21 linesraw
1function __fish_xprop_list_properties
2    # TODO search commandline for a target window ("-root" or "-name foo")
3    xprop -root | string split -f1 '('
4end
5
6complete -c xprop -o help -d "Display help and exit"
7complete -c xprop -o grammar -d "Display grammar and exit"
8complete -c xprop -o id -x -d "Select window by id"
9complete -c xprop -o name -d "Select window by name"
10complete -c xprop -o font -x -d "Display font properties"
11complete -c xprop -o root -d "Select root window"
12complete -c xprop -o display -d "Specify X server"
13complete -c xprop -o len -x -d "Maximum display length"
14complete -c xprop -o notype -d "Do not show property type"
15complete -c xprop -o fs -r -d "Set format file"
16complete -c xprop -o frame -d "Select a window by clicking on its frame"
17complete -c xprop -o remove -d "Remove property" -x -a "( __fish_xprop_list_properties)"
18complete -c xprop -o set -d "Set property" -x -a " (__fish_xprop_list_properties)"
19complete -c xprop -o spy -d "Examine property updates forever"
20complete -c xprop -o f -d "Set format"
21complete -c xprop -d Property -x -a "( __fish_xprop_list_properties)"