如何判断我使用Unity的工作空间?
Ubuntu的长期用户在这里努力使用Unity ….
我正在运行Unity 2D,可以单击工作区启动器图标切换到不同的工作区。 但是,如果我只是走到一个系统,我怎么能通过查看我所在的工作区来判断?
更改工作区时,启动器图标是否应该更改? 我可以安装一个指示器小程序吗? 我习惯了顶部面板中间的旧Gnome工作区切换器!
13.04
此function现在内置于13.04及更高版本中 – 启动器工作区图标显示您当前所在的工作区:
12.10和之前
10.04 / 10.10 / 11.04 / 11.10
为此,首先安装PPA:
sudo add-apt-repository ppa:geod/ppa-geod
更新并安装:
sudo apt-get update sudo apt-get install indicator-workspaces
12.04起
PPA作者没有12.04及更高版本的预制备软件包。 但是,您可以下载11.10中使用的相同deb-package并安装它。
下载v0.6.2.2 deb软件包
安装先决条件:
sudo apt-get install python-wnck
怎么开始
最后,如果安装尚未添加,请将indicator-workspaces
添加到启动应用程序(在Dash中搜索):
Ubunutu 14.10 (根据fossfreedom的回答,抱歉,我需要更多代表发表评论)
-
sudo apt-get install python-wnck
-
sudo apt-get install python-appindicator
-
wget http://ppa.launchpad.net/geod/ppa-geod/ubuntu/pool/main/i/indicator-workspaces/indicator-workspaces_0.6.2.2_all.deb
-
sudo dpkg -i ./indicator-workspaces_0.6.2.2_all.deb
-
indicator-workspaces & disown
- (加上启动作为上面提到的fossfreedom提及)
如果您从http://ppa.launchpad.net/geod/ppa-geod/ubuntu/pool/main/i/indicator-workspaces/下载最新版本,请确保在synaptic中获取所需的wnck libs / bindings或者软件中心。 否则此指标将无效。
Ubuntu的Unity桌面使用视口,而不是工作空间,这是一个基于坐标的系统。
要了解当前视口,您可以将以下命令集绑定(或将它们放入脚本并将其绑定)到键盘快捷键:
xprop -root -notype _NET_DESKTOP_VIEWPORT | awk -F '=' '{ print "Current Viewport:"$2 }' | xargs -I {} notify-send {}
这样,您可以调用屏幕上的通知来报告您当前在网格中的位置。
就个人而言,因为我花了99%的时间在firefox和终端之间,所有这些命令,设置成我的.bashrc
一个函数
get_viewport() { xprop -root -notype _NET_DESKTOP_VIEWPORT | \ awk -F '=' '{ print "Current Viewport:"$2 }' | \ xargs -I {} notify-send {} }