Compiz有一个有用的工具, annotate 。 这个function可以在你的桌面上自由地写入。 但有一个限制,只configuration一种颜色:不能在笔画颜色之间切换。
我想快速地在注释笔画颜色之间切换。
当前的stroke color存储在configuration中:
dh4@GLOW:~$ cat .config/compiz-1/compizconfig/Default.ini [core] s0_active_plugins = core;composite;...; s0_hsize = 4 [annotate] s0_stroke_color = #0000FF
我试图用dconf改变值:
dconf write /org/compiz/profiles/Default/annotate/stroke-color "'#00AAAAAA'"
还有gsettings :
gsettings set \ org.compiz.annotate:/org/compiz/profiles/Default/annotate/ stroke-color '#00AAAAAA'
执行命令上没有错误,但没有效果,既不重新启动compiz 。
我怎样才能改变和应用参数从脚本或命令行compiz没有ccsm gui的XFCE?
你可以做到激活dbus。 然后执行:
dbus-send \ --print-reply \ --type=method_call \ --dest=org.freedesktop.compiz \ /org/freedesktop/compiz/annotate/screen0/stroke_color \ org.freedesktop.compiz.set \ string:"#00ffffff" #<-- new color
#ff0000ff #0000ffff