我正在运行的Arch Linux与所有最新的更新,并有一个简单有效的程序sct安装,让我调整屏幕色温。它来自https://github.com/faf0/sct。
我使用YAD (另一个对话框)来调整发送到sct的变量,如下所示
#! /bin/bash
VALUE=$(yad --title="Select Colour Temperature" \
--geometry=800x100+280+200 --window-icon="colour_temp.png" \
--scale \
--mark=NIGHT:3000 --mark=MID:5000 --mark=DAY:6500 \
--value="2400" --min-value="2000" --max-value="6500" --step="100")
#--print-partial. This option seems of no help; if run from the command prompt partial values are dumped after the 'Ok' dialog clicked.
./sct/xsct $VALUE这允许我在YAD gui上单击Ok时看到所选色温的结果。
如何使屏幕色温在我移动滑块时动态更新,而不单击确定?
发布于 2019-03-27 18:47:49
到目前为止,使用yad还不可能做到这一点。yad将显示一个对话框并返回。您可以根据自己的需要编写自己的GTK+对话框应用程序。
https://stackoverflow.com/questions/55374852
复制相似问题