相关疑难解决方法(0)

当我最大化浏览器时,如何通过脚本自动隐藏启动器?

我试图控制 Ubuntu 14.4.1 Launcher 的行为。我希望它在每次我有像 firefox maxmaized 这样的浏览器窗口时自动隐藏。我找到了这个解决方案:

#!/bin/bash

## Change value of "hide" to the command which worked for you to hide the panel
hide='gsettings set com.canonical.Unity2d.Launcher hide-mode 1;'

## Change value of "show" to the command which worked for you to show the panel when it was hidden
show='gsettings set com.canonical.Unity2d.Launcher hide-mode 0;'

## Look for the grep value, add a new browser or application name followed by "\|" eg: 'firefox\|google\|chromium'
while [ 1 ]
 do z=$(wmctrl -l …
Run Code Online (Sandbox Code Playgroud)

scripts window-manager unity launcher window

6
推荐指数
1
解决办法
1424
查看次数

标签 统计

launcher ×1

scripts ×1

unity ×1

window ×1

window-manager ×1