代码之家  ›  专栏  ›  技术社区  ›  Elliott Slaughter

Linux中如何编程反转屏幕颜色

  •  8
  • Elliott Slaughter  · 技术社区  · 15 年前

    如果我想编写一个简单的程序,在运行时反转屏幕颜色,我应该研究哪个API?

    [1] https://help.ubuntu.com/community/KeyboardShortcuts#Desktop%20Effects%20enabled%20shortcuts

    1 回复  |  直到 15 年前
        1
  •  11
  •   mtvec    15 年前

    xcalib 做你想做的事。

    例如,用于反转屏幕颜色的简单bash脚本如下所示:

    #!/bin/bash
    xcalib -invert -alter