我只能找到该旧仪表板的答案,该仪表板实际上具有某种设置按钮。
我正在寻找一种组织喜欢的程序以方便访问的方法,例如Windows中的“开始”按钮。可以保留诸如Firefox和Excel之类的程序的地方。我想做到这一点而不会使我的屏幕过于混乱,并且对隐私敏感的外部包持开放态度,但更喜欢简约风格。
感谢大伙们!
要将多个应用程序合并到启动器的一个图标中,可以使用QLE Quicklist Editor
免责声明:我是该应用程序的作者。(我相信)11.04刚刚发布时就开发了第一个版本,但是最新版本在16.04上仍然可以正常工作。当前正在重写它,但是很慢,因为它仍然可以在当前的Ubuntu版本中正常工作
安装QLE快速列表编辑器:
sudo add-apt-repository ppa:vlijm/qle
sudo apt-get update
sudo apt-get install qle
例如,我将一些应用程序添加到固定的Bluefish
图标中:
打开快速列表编辑器:
单击大+图标,其中带有小+橙色图标。在弹出列表中,选择“添加应用程序快捷方式”。
在列表框中,选择您的应用程序,然后按 Add
完毕。您的应用程序已添加到图标:
对要添加到图标的每个应用程序重复此操作。
Make sure your application (in this case Bluefish) is not running when you edit the icon, else you will have to log out/in for the changes to be applied.
Use the indicator below to make your favorite applications easily accessible With the setup below, you can have your applications under an icon in the panel:
#!/usr/bin/env python3
import subprocess
import os
import signal
import gi
gi.require_version('Gtk', '3.0')
gi.require_version('AppIndicator3', '0.1')
from gi.repository import Gtk, AppIndicator3
currpath = os.path.dirname(os.path.realpath(__file__))
class Indicator():
def __init__(self):
self.app = 'update_setting'
iconpath = currpath+"/icon.png"
self.indicator = AppIndicator3.Indicator.new(
self.app, iconpath,
AppIndicator3.IndicatorCategory.SYSTEM_SERVICES)
self.indicator.set_status(AppIndicator3.IndicatorStatus.ACTIVE)
self.indicator.set_menu(self.create_menu())
def getscripts(self):
apps = [l.strip().split("|") for l in open(currpath+"/applist").readlines()\
if not l == "\n"]
for l in apps:
menuitem = Gtk.MenuItem(l[0])
menuitem.connect("activate", self.run_script, l[1])
self.menu.append(menuitem)
def create_menu(self):
self.menu = Gtk.Menu()
self.getscripts()
# quit
item_quit = Gtk.MenuItem('Quit')
sep = Gtk.SeparatorMenuItem()
self.menu.append(sep)
item_quit.connect('activate', self.stop)
self.menu.append(item_quit)
self.menu.show_all()
return self.menu
def run_script(self, widget, script):
subprocess.Popen(["/bin/bash", "-c", script])
def stop(self, source):
Gtk.main_quit()
Indicator()
signal.signal(signal.SIGINT, signal.SIG_DFL)
Gtk.main()
list_applications.py
in the folder you created.icon.png
in one and the same folder as the script.现在,在同一个文件夹中再次创建一个文件(名称正确)applist
(无扩展名)。现在为每个应用程序添加一行,其中包含您要用于该应用程序的名称以及运行该命令的命令。使用定界符,|
例如:
使用以下命令测试脚本:
python3 /path/to/list_applications.py
如果一切正常,请将其添加到“启动应用程序”:Dash>“启动应用程序”>“添加”。添加命令:
/bin/bash -c "sleep 10 && python3 /path/to/list_applications.py"
如果将应用程序添加到列表中或从列表中删除,则需要重新启动脚本。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句