aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/xrandr.fish
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-06-15 17:30:10 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-06-15 17:30:33 -0700
commitf2b5292bcba352e85d038b3862d540946c520b82 (patch)
treed63a8efcf3871f4ac8a593c855535edb2381451f /share/completions/xrandr.fish
parent3a94f6e8b368c731132a0cf781a4b9cacbf69e30 (diff)
Squashed commit of the following:
commit 33358874f1c275d8b08186e29f24a7889d2b5224 Author: maxfl <gmaxfl@gmail.com> Date: Thu Jun 14 11:01:13 2012 +0400 revert fish_pager commit cee1bc8a66ec3adc9573b76e1aca3131cd32db83 Author: maxfl <gmaxfl@gmail.com> Date: Thu Jun 14 10:57:41 2012 +0400 revert fish_pager.cpp commit 27f3bd39dd9903009503d20a59a9e2ba84add07a Author: maxfl <gmaxfl@gmail.com> Date: Wed Jun 13 17:35:20 2012 +0400 __fish_complete_command now can understand '--arg=option' tokens latexmk completion is updated commit 97b53a4b53de9389675783f3e90f58215d936356 Author: maxfl <gmaxfl@gmail.com> Date: Wed Jun 13 16:46:47 2012 +0400 . completion commit d5b63b9963b0a02a71f564e7392171c5eab005cd Author: maxfl <gmaxfl@gmail.com> Date: Wed Jun 13 16:46:13 2012 +0400 a lot of new completions commit ceab87d99425124aa010c64ed062e27202b850d2 Author: Maxim Gonchar <gonchar@myhost.localdomain> Date: Tue Jun 12 20:19:31 2012 +0400 A lot of new completions. Some small updates and fixes of old functions and completions. commit 950aecd570b51e1b9dc444cc651b282a220e8d94 Author: Maxim Gonchar <gonchar@myhost.localdomain> Date: Tue Jun 12 20:03:44 2012 +0400 step-coloring initial set_color correction
Diffstat (limited to 'share/completions/xrandr.fish')
-rw-r--r--share/completions/xrandr.fish61
1 files changed, 61 insertions, 0 deletions
diff --git a/share/completions/xrandr.fish b/share/completions/xrandr.fish
new file mode 100644
index 00000000..a49fd2b4
--- /dev/null
+++ b/share/completions/xrandr.fish
@@ -0,0 +1,61 @@
+complete -c xrandr -l verbose -d 'Be more verbose'
+complete -c xrandr -l dryrun -d 'Make no changes'
+complete -c xrandr -l nograb -d 'Apply modifications without grabbing the screen'
+complete -c xrandr -o help -d 'Print out a summary of the usage and exit'
+complete -c xrandr -s v -l version -d 'Print out the RandR version reported by the X server and exit'
+complete -c xrandr -s q -l query -d 'Display the current state of the system'
+complete -c xrandr -s d -o display -d 'Select X display to use' -x
+complete -c xrandr -l screen -d 'Select which screen to manipulate' -x
+complete -c xrandr -l q1 -d 'Use RandR version 1.1 protocol'
+complete -c xrandr -l q12 -d 'Use RandR version 1.2 protocol'
+
+set -l ver (xrandr -v | grep RandR | sed 's/^.\+\s\([0-9\.]\+\)$/\1/')
+if not expr match $ver '^[0-9.]*$' >/dev/null
+ set ver 10
+end
+
+# Version 1.1 options
+complete -c xrandr -s s -l size -d 'Set the screen size (index or width x height)' -x
+complete -c xrandr -s r -l rate -l refresh -d 'Set the refresh rate closest to the specified value' -x
+complete -c xrandr -s o -l orientation -d 'Specify the orientation of the screen' -xa 'normal inverted left right'
+complete -c xrandr -s x -d 'Reflect across the X axis'
+complete -c xrandr -s y -d 'Reflect across the Y axis'
+
+if expr $ver '>' 1.1
+ complete -c xrandr -l prop -l properties -d 'Display the contents of properties for each output'
+ complete -c xrandr -l fb -d 'Set screen size' -x
+ complete -c xrandr -l fbmm -d 'Set reported physical screen size' -x
+ complete -c xrandr -l dpi -d 'Set dpi to calculate reported physical screen size'
+ complete -c xrandr -l newmode -d 'Add new mode' -r
+ complete -c xrandr -l rmmode -d 'Removes a mode from the server' -xa '(__fish_print_xrandr_modes)'
+ complete -c xrandr -l addmode -d 'Add a mode to the set of valid modes for an output' -xa '(__fish_print_xrandr_outputs)'
+ complete -c xrandr -l delmode -d 'Remove a mode from the set of valid modes for an output' -xa '(__fish_print_xrandr_outputs)'
+ complete -c xrandr -l output -d 'Selects an output to reconfigure' -xa '(__fish_print_xrandr_outputs)'
+ complete -c xrandr -l auto -d 'Enable connected but disabled outputs'
+ complete -c xrandr -l mode -d 'This selects a mode' -xa '(__fish_print_xrandr_modes)'
+ complete -c xrandr -l preferred -d 'Select the same mode as --auto, but it do not automatically enable or disable the output'
+ complete -c xrandr -l pos -d 'Set output position within the secreen in pixels' -x
+ complete -c xrandr -l rate -d 'Set refresh rate' -x
+ complete -c xrandr -l reflect -d 'Set reflection' -xa 'normal x y xy'
+ complete -c xrandr -l rotate -d 'Set rotation' -xa 'normal left right inverted'
+ complete -c xrandr -l left-of -d 'Set position relative to the output' -xa '(__fish_print_xrandr_outputs)'
+ complete -c xrandr -l right-of -d 'Set position relative to the output' -xa '(__fish_print_xrandr_outputs)'
+ complete -c xrandr -l above -d 'Set position relative to the output' -xa '(__fish_print_xrandr_outputs)'
+ complete -c xrandr -l below -d 'Set position relative to the output' -xa '(__fish_print_xrandr_outputs)'
+ complete -c xrandr -l same-as -d 'Set position relative to the output' -xa '(__fish_print_xrandr_outputs)'
+ complete -c xrandr -l set -d 'Set the property value: --set <prop> <value>' -x
+ complete -c xrandr -l off -d 'Disables the output'
+ complete -c xrandr -l crtc -d 'Set the crtc' -x
+ complete -c xrandr -l gamma -d 'Set gamma correction [red:green:blue]' -x
+ complete -c xrandr -l brightness -d 'Set brightness. Multiplies gamma galues by brightness value'
+end
+
+if expr $ver '>' 1.2
+ complete -c xrandr -l noprimary -d 'Don\'t define a primary output.'
+ complete -c xrandr -l current -d 'Print current screen configuration'
+ complete -c xrandr -l panning -d 'Set panning: widthxheight[+x+y[/track_widthxtrack_height+track_x+track_y[/border_left/border_top/border_right/border_bottom]]]' -x
+ complete -c xrandr -l transform -d 'Set transformation matrix: a,b,c,d,e,f,g,h,i for [ [a,b,c], [d,e,f], [g,h,i] ]' -x
+ complete -c xrandr -l scale -d 'Set scren scale' -x
+ complete -c xrandr -l primary -d 'Set the output as primary'
+end
+