i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
i3lock-bash (2797B)
   1 #!/usr/bin/env bash
   2 # bash completion for i3lock-color
   3 
   4 _i3lock() {
   5      local cur="${COMP_WORDS[COMP_CWORD]}"
   6     local last="${COMP_WORDS[COMP_CWORD - 1]}"
   7   local -a options=(
   8   "--version -v"
   9   "--nofork -n"
  10   "--beep -b"
  11   "--no-unlock-indicator -u"
  12   "--image -i"
  13   "--raw"
  14   "--color -c"
  15   "--tiling -t"
  16   "--centered -C"
  17   "--fill -F"
  18   "--max -M"
  19   "--scale -L"
  20   "--pointer -p"
  21   "--ignore-empty-password -e"
  22   "--show-failed-attempts"
  23   "--debug"
  24 
  25   # i3lock-color OPTIONS
  26   "--screen -S"
  27   "--blur -B"
  28   "--clock --force-clocl -k"
  29   "--indicator"
  30   "--radius"
  31   "--ring-width"
  32   # Colors
  33   "--inside-color"
  34   "--ring-color"
  35   "--insidever-color"
  36   "--ringver-color"
  37   "--insidewrong-color"
  38   "--ringwrong-color"
  39   "--line-color"
  40   "--line-uses-inside"
  41   "--line-uses-ring"
  42   "--keyhl-color"
  43   "--bshl-color"
  44   "--separator-color"
  45   "--verif-color"
  46   "--wrong-color"
  47   "--modif-color"
  48   "--layout-color"
  49   "--time-color"
  50   "--date-color"
  51   "--greeter-color"
  52   # Text
  53   "--time-str"
  54   "--date-str"
  55   "--verif-text"
  56   "--wrong-text"
  57   "--keylayout"
  58   "--noinput-text"
  59   "--lock-text"
  60   "--lockfailed-text"
  61   "--greeter-text"
  62   "--no-modkey-text"
  63   # Align
  64   "--time-align --date-align --layout-align --verif-align --wrong-algin --modif-align --greeter-align"
  65   # Outline
  66   "--timeoutlinecolor --dateoutlinecolor --layoutoutlinecolor --verifoutlinecolor --wrongoutlinecolor --modifoutline-color --greeteroutlinecolor"
  67   # Fonts
  68   "--time-font --date-font --layout-font --verif-font --wrong-font --greeter-font"
  69   # Size
  70   "--timesize --datesize --layoutsize --verifsize --wrongsize --greetersize"
  71   # Outline width
  72   "--timeoutlinewidth --dateoutlinewidth --layoutoutlinewidth --verifoutlinewidth --wrongoutlinewidth --modifieroutline-width --greeteroutlinewidth"
  73   # Position
  74   "--ind-pos"
  75   "--time-pos"
  76   "--date-pos"
  77   "--greeter-pos"
  78   # Media keys
  79   "--pass-media-keys"
  80   "--pass-screen-keys"
  81   "--pass-power-keys"
  82   "--pass-volume-keys"
  83   "--custom-key-commands"
  84   "--cmd-brightness-up"
  85   "--cmd-brightness-down"
  86   "--cmd-media-play"
  87   "--cmd-media-pause"
  88   "--cmd-media-stop"
  89   "--cmd-media-next"
  90   "--cmd-media-prev"
  91   "--cmd-audio-mute"
  92   "--cmd-volume-up"
  93   "--cmd-volume-down"
  94   "--cmd-mic-mute"
  95   "--cmd-power-down"
  96   "--cmd-power-off"
  97   "--cmd-power-sleep"
  98   # Bar mode
  99   "--bar-indicator"
 100   "--bar-direction"
 101   "--bar-orientation"
 102   "--bar-step"
 103   "--bar-max-height"
 104   "--bar-base-width"
 105   "--bar-color"
 106   "--bar-periodic-step"
 107   "--bar-pos"
 108   "--bar-count"
 109   "--bar-total-width"
 110   # Extra configs
 111   "--redraw-thread"
 112   "--refresh-rate"
 113   "--composite"
 114   "--no-verify"
 115   "--slideshow-interval"
 116   "--slideshow-random-selection"
 117 )
 118   local args=""
 119   for i in "${options[@]}"; do
 120     args+="$i "
 121   done
 122   COMPREPLY=( $(compgen -W "${args}" -- ${cur}) )
 123 
 124 }
 125 
 126 complete -F _i3lock i3lock