教程之家 > 操作系统 > Linux > 正文

ubuntu indicator位置调整

2014-02-27 10:47  教程之家  媛媛  
字号:T|T

添加了网络上传下载流量显示后,随着数字大小的变化导致很多在此indicator之前的图标就一直随之而变动,看着十分难受,askubuntu后解决方法如下。

一、indicator icon位置调整

mkdir -p ~/.local/share/indicators/application/

sudo cp /usr/share/indicator-application/ordering-override.keyfile ~/.local/share/indicators/application/

vim ~/.local/share/indicators/application/ordering-override.keyfile

[Ordering Index Overrides]

nm-applet=1

gnome-power-manager=2

Fcitx=3

dropbox-client-2400=8

dropbox-client-2400=8

indicator-sensors=5

My-Weather-Indicator=6

Shutter=7

二、Dropbox位置调整

将以下脚本添加到开机自启动程序中

#!/bin/bash

dropbox start -i

sleep 1

b=`pidof dropbox`

c=`echo $b | cut -d‘ ’ -f1`

c1=`echo $b | cut -d‘ ’ -f2`

d=“dropbox-client-$c=8”

d1=“dropbox-client-$c1=8”

filename=~/.local/share/indicators/application/ordering-override.keyfile

count=0

while read LINE

do

let count++

if [[ $LINE == *dropbox* ]];then

c=$LINE

e=$count

e1=$(($e + 1))

break

fi

done 《 $filename

sed -i “$e s/.*/$d/” $filename

sed -i “$e1 s/.*/$d1/” $filename

点击加载更多