jor*_*ris 11 unity compiz launcher
当我在我的笔记本电脑上工作时,我有时只使用几个程序,因此启动器(“Dodge windows”)的默认智能隐藏设置非常方便。但我也有一些时期必须经常在程序之间切换,然后我发现 Launcher 不会隐藏它非常有用(并且对我的工作流程更好)。
现在,每次我不想切换时,我都必须打开 CCSM 并更改设置(Unity 插件 -> 隐藏启动器),但是如果我可以使用快捷方式会更容易。所以我的问题:
有没有办法创建快捷方式来在 Compiz 的两个设置之间切换(或更改)?
我想到了compiz的命令行界面,但我无法直接找到类似的东西。
你可以跑
gconftool-2 --type int --set "/apps/compiz-1/plugins/unityshell/screen0/options/launcher_hide_mode" 2
Run Code Online (Sandbox Code Playgroud)
将启动器隐藏模式设置为“Dodge Windows”,然后
gconftool-2 --type int --set "/apps/compiz-1/plugins/unityshell/screen0/options/launcher_hide_mode" 0
Run Code Online (Sandbox Code Playgroud)
将其设置为永不隐藏。
模式编号为:
您可以通过调用(之前的值必须为 2 或 0)来使其成为一个开关:
gconftool-2 --type int --set "/apps/compiz-1/plugins/unityshell/screen0/options/launcher_hide_mode" $((2 - $(gconftool-2 --get "/apps/compiz-1/plugins/unityshell/screen0/options/launcher_hide_mode")))
Run Code Online (Sandbox Code Playgroud)
然后,您将创建一个新的键绑定(Alt+ F2? gnome-keybinding-properties
),命令为:
/bin/bash -c "gconftool-2 --type int --set "/apps/compiz-1/plugins/unityshell/screen0/options/launcher_hide_mode" $((2 - $(gconftool-2 --get "/apps/compiz-1/plugins/unityshell/screen0/options/launcher_hide_mode")))"
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
5122 次 |
最近记录: |