From 867d69258dcfac6cd0df36d0e856f3fa96e19254 Mon Sep 17 00:00:00 2001 From: NextAlone <12210746+NextAlone@users.noreply.github.com> Date: Mon, 25 Apr 2022 15:20:34 +0800 Subject: [PATCH] feat: completion for optimus-manager --- share/completions/optimus-manager.fish | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 share/completions/optimus-manager.fish diff --git a/share/completions/optimus-manager.fish b/share/completions/optimus-manager.fish new file mode 100644 index 000000000..582c45543 --- /dev/null +++ b/share/completions/optimus-manager.fish @@ -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' +