options.ggo 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. package "slop"
  2. version "v@slop_VERSION_MAJOR@.@slop_VERSION_MINOR@.@slop_VERSION_PATCH@"
  3. usage "slop [options]"
  4. description "slop (Select Operation) is an application that queries for a selection from the user and prints the region to stdout."
  5. versiontext "Copyright (C) 2014 Dalton Nell, Slop Contributors (https://github.com/naelstrof/slop/graphs/contributors)"
  6. text "Options"
  7. option "xdisplay" - "Sets the x display."
  8. string
  9. typestr="hostname:number.screen_number"
  10. optional
  11. option "nokeyboard" - "Disables the ability to cancel selections with the keyboard."
  12. flag
  13. off
  14. option "bordersize" b "Set the selection rectangle's thickness. Does nothing when --highlight is enabled."
  15. int
  16. default="5"
  17. optional
  18. option "padding" p "Set the padding size of the selection. Can be negative."
  19. int
  20. default="0"
  21. optional
  22. option "tolerance" t "How far in pixels the mouse can move after clicking and still be detected as a normal click instead of a click and drag. Setting this to 0 will disable window selections."
  23. int
  24. default="2"
  25. optional
  26. option "gracetime" g "Set the amount of time before slop will check for keyboard cancellations in seconds."
  27. string
  28. typestr="FLOAT"
  29. default="0.4"
  30. optional
  31. option "color" c "Set the selection rectangle's color. Supports RGB or RGBA values."
  32. string
  33. typestr="FLOAT,FLOAT,FLOAT,FLOAT"
  34. default="0.5,0.5,0.5,1"
  35. optional
  36. option "nodecorations" n "Attempt to select child windows in order to avoid window decorations."
  37. flag
  38. off
  39. option "min" - "Set the minimum output of width or height values. This is useful to avoid outputting 0. Setting min and max to the same value disables drag selections."
  40. int
  41. default="0"
  42. optional
  43. option "max" - "Set the maximum output of width or height values. Setting min and max to the same value disables drag selections."
  44. int
  45. default="0"
  46. optional
  47. option "highlight" l "Instead of outlining selections, slop highlights it. This is only useful when --color is set to a transparent color."
  48. flag
  49. off
  50. option "opengl" - "Enable hardware acceleration. Only works with modern systems that are also running a compositor."
  51. flag
  52. off
  53. option "magnify" - "Display a magnifying glass when --opengl is also enabled."
  54. flag
  55. off
  56. option "magstrength" - "Sets how many times the magnification window size is multiplied."
  57. float
  58. default="4"
  59. optional
  60. option "magpixels" - "Sets how many pixels are displayed in the magnification. The less pixels the bigger the magnification."
  61. int
  62. default="64"
  63. optional
  64. option "theme" - "Sets the theme of the selection, using textures from ~/.config/slop/ or /usr/share/."
  65. string
  66. default="none"
  67. optional
  68. option "shader" - "Sets the shader to load and use from ~/.config/slop/ or /usr/share/."
  69. string
  70. default="simple"
  71. optional
  72. option "format" f "Set the output format string. Format specifiers are %x, %y, %w, %h, %i, %g, and %c."
  73. string
  74. default="REPLACEME"
  75. optional
  76. text "\nExamples\n"
  77. text " $ # Gray, thick, transparent border for maximum visiblity.\n"
  78. text " $ slop -b 20 -c 0.5,0.5,0.5,0.8\n"
  79. text "\n"
  80. text " $ # Remove window decorations.\n"
  81. text " $ slop --nodecorations\n"
  82. text "\n"
  83. text " $ # Disable window selections. Useful for selecting individual pixels.\n"
  84. text " $ slop -t 0\n"
  85. text "\n"
  86. text " $ # Classic Windows XP selection.\n"
  87. text " $ slop -l -c 0.3,0.4,0.6,0.4\n"
  88. text "\n"
  89. text " $ # Wiggle wiggle!\n"
  90. text " $ slop --opengl --shader wiggle\n"
  91. text "\n"
  92. text " $ # Edgy textures or something.\n"
  93. text " $ slop --opengl --theme gothic\n"
  94. text "\n"
  95. text " $ # Change output format to use safer parsing\n"
  96. text " $ slopoutput=$(slop -f \"%x %y %w %h\")\n"
  97. text " $ X=$(echo $slopoutput | awk '{print $1}')\n"
  98. text " $ Y=$(echo $slopoutput | awk '{print $2}')\n"
  99. text " $ W=$(echo $slopoutput | awk '{print $3}')\n"
  100. text " $ H=$(echo $slopoutput | awk '{print $4}')\n"
  101. text "\nTips\n"
  102. text " * You can use the arrow keys to move the starting point of a drag-selection, just in case you missed it by a few pixels.\n"
  103. text " * If you don't like a selection: you can cancel it by right-clicking regardless of which options are enabled or disabled for slop.\n"
  104. text " * If slop doesn't seem to select a window accurately, the problem could be because of decorations getting in the way. Try enabling the --nodecorations flag.\n"