feat: completion for optimus-manager

This commit is contained in:
NextAlone 2022-04-25 15:20:34 +08:00 committed by Johannes Altmanninger
parent 9a2b0dc275
commit 867d69258d

View file

@ -0,0 +1,13 @@
complete -c optimus-manager -f
complete -c optimus-manager -l switch -d 'Set the GPU mode to MODE. You need to log out then log in to apply the change' -xa 'integrated nvidia hybrid'
complete -c optimus-manager -l temp-config -d 'Set a path to a temporary configuration file to use for the next reboot ONLY' -r
complete -c optimus-manager -s h -l help -d 'show this help message and exit'
complete -c optimus-manager -s v -l version -d 'Print version and exit'
complete -c optimus-manager -l status -d 'Print current status of optimus-manager'
complete -c optimus-manager -l print-mode -d 'Print the GPU mode that your current desktop session is running on'
complete -c optimus-manager -l print-next-mode -d 'Print the GPU mode that will be used the next time you log into your session'
complete -c optimus-manager -l print-startup -d 'Print the GPU mode that will be used on startup'
complete -c optimus-manager -l unset-temp-config -d 'Undo --temp-config (unset temp config path)'
complete -c optimus-manager -l no-confirm -d 'Do not ask for confirmation and skip all warnings when switching GPUs'
complete -c optimus-manager -l cleanup -d 'Remove auto-generated configuration files left over by the daemon'