如何让反色应用程序在我登录时自动启动?

如何让反色应用程序在我登录时自动启动?

super当我输入+时,应用程序的颜色会反转m。我不知道它的名字是什么,我怎样才能让它在我登录时自动启动?

答案1

您正在使用的应用程序名为compiz。可以通过安装 compiz 配置设置管理器 来轻松调整设置sudo apt-get install compizconfig-settings-manager,在系统->首选项中找到它,尽管这无法实现您想要的功能。反转颜色的插件名为Negative(在 ccsm 的可访问性部分)。以下描述了一种在启动时自动调用插件的可能方法:http://ubuntuforums.org/showpost.php?p=9351609&postcount=8(虽然看起来有点复杂)

(来自评论)这应该可以做到:

dbus-send --type=method_call --dest=org.freedesktop.compiz /org/freedesktop/compiz/neg/allscreens/screen_toggle_key org.freedesktop.compiz.activate string:'root' int32:$(xwininfo -root | grep id: | awk '{ print $4 }')

相关内容