我有这个脚本:
#!/bin/bash
if [[ $(nvidia-settings -q '[gpu:0]/DigitalVibrance[DFP-1]' | grep 'Attribute.*1023\.') ]]
then
nvidia-settings -a '[gpu:0]/DigitalVibrance[DFP-1]=0' > /dev/null
echo "Vibrance Disabled"
else
nvidia-settings -a '[gpu:0]/DigitalVibrance[DFP-1]=1023' > /dev/null
echo "Vibrance Enabled"
fi
我如何为该脚本设置热键?