ubuntu16.04主题美化

Ubuntu 美化,让你拥有不一样的 ubuntu。


描述

最近将个人PC系统换成了Ubuntu16.04,Ubuntu采用的是unity,界面比较好看,但linux还可以更好看,因为它提供了好多扩展工具。

下面我将介绍下常用的主题美化并附上美化过的图片

如果用过mac的同学可能会非常喜欢mac的docky,在linux中也可以安装docky.

安装docky

  • 添加源

sudo add-apt-repository ppa:docky-core/ppa

  • 更新列表

sudo apt-get update

  • 安装docky

sudo apt-get install docky

这里docky就安装完成了。

安装Unity Tweak Tool

第二个就是主题更换,ubuntu默认主题虽然好看,但可以更好看。

调整 Unity 桌面环境,还是推荐使用Unity Tweak Tool,这是一个非常好用的 Unity 图形化管理工具,可以修改工作区数量、热区等。

sudo apt-get install unity-tweak-tool

警告

如果卸载liboffice会导致unity tweak tool不能正常工作。

如果你正在使用Gnome桌面环境,那么你可能需要尝试Gnome Tweak Tool这款软件。你也可以从Ubuntu软件中心和使用以下命令来安装该软件:

sudo apt-get install gnome-tweak-tool

Ubuntu有很多定制的主题,这些主题可以影响应用和窗口的外观。我正在使用的主题是Flatabulous主题+Numix圆形图标。

安装Flatabulous主题

sudo add-apt-repository ppa:noobslab/themes

sudo apt-get update

sudo apt-get install flatabulous-theme

为了使该主题生效,我们需要打开Unity Tweak Tool,选择“外观标题”下的“主题”选项,然后在“已有主题”一栏中选择该主题。

安装Numix主题的图标集

sudo apt-add-repository ppa:numix/ppa

sudo apt-get update

sudo apt-get install numix-icon-theme-circle

为了使该图标集生效,我们需要在Unity Tweak Tool中选择“图标”选项,然后选择该图标集。再一次声明,这个方法对于任何图标集是可行的。

Moka也提供给你的桌面带来多彩的、一致性设计的图标集。

安装conky

Conky是一个轻量级桌面系统监视软件。该软件本身是非常简单的,不过它是可定制的,这样一来它就可以显示很多的有用的信息。

你可以通过在终端输入以下命令来安装Conky:

sudo apt-get install conky conky-all

该工具默认不能通过鼠标移动其位置,需要通过设置X与Y的参数来调整。

你将会需要curl这个软件,你可以通过以下这个命令来安装该软件:

sudo apt-get install curl jq

上面截图中使用的conky主题是Harmattan,它可以以15种不同的样式来显示时间、天气、以及系统进程。

要安装该主题,你可以从deviantART下载zip文件然后解压。将下载的文件中Harmattan-openweathermap/.harmattan-themes/Numix/Comfortable/normal-mode目录下的.conkyrc文件(你可能需要按Ctrl+H来显示这些隐藏文件)复制到你的home文件夹~。

Conky有很多的主题。尝试这些主题,你所需要做的就是用所要使用主题的.conkyrc文件替换在home文件夹的.conkyrc文件。

配置Harmattan主题

(你可能需要按Ctrl+H来显示这些隐藏文件)

  • 安装curl和jq这两个包。

sudo apt-get install curl jq

  • 确认自己装了Droid Sans字体,附件链接中有提供下载。

  • .harmattan-assets移到~目录。

  • .harmattan-themes中找出对应的.conkyrc移到~目录。

  • .harmattan-assets/icons/big-#666/里的icon复制到home目录的.cache目录中

cp -r .harmattan-assets/icons/big-#666/ ~/.cache

  • 修改conkyrc文件中的openweathermap中的API Key
————————————-
template6=”12b2817fbec86915a6e9b4dbbd3d9036″,
–template6=”fa31e4397a672fdb600b0f4dc6dd81fa”,
————————————-
— City ID (因为我在上海,所以用的是上海的city id)
————————————-
template7=”1796236″,

添加开机启动

在Dash中搜索进入Startup Applications即启动应用程序

添加一条conky开机启动的命令: /usr/bin/conky -p 10, 其中“-p 10”表示用户登录10秒后才开始载入conky,否则conky先于桌面启动会一直占据桌面顶层,覆盖所有窗口。

如果第一步和第五步没做会导致conky无法生成天气对应图片,并不断报错说找不到.cache中的某个png文件。

这是主题作者提供的安装方法:

Installation:

Install conky, curl and jq.

On Ubuntu 16.04+, you may need to install conky-all instead of the transitional package conky.
Make sure you have the Droid Sans font installed.

Move the .harmattan-assets folder into your ~ dir.

Each theme is made of a single .conkyrc file which sits at the end of a file path inside the .harmattan-themes folder.

NOTE:
Some files/folders are hidden; unhide them. 🙂
NOTE 2: There is a preview.sh script which will copy the assets and then allow you to interactively play around with the themes.
API Key

Register a private API key on OpenWeatherMap to get weather data.

Place the API key in the template6 variable inside the .conkyrcfile.

City

Find the ID of your city and place it inside the template7 variable inside the .conkyrc file.

Language

By default this conky will use your default locale.

Edit the template9 variable in the .conkyrc file to change the language.

See the list of supported languages

NOTE:
God-mode has some hardcoded text that won’t get translated, but you can edit it manually.
Units

Edit the template8 variable inside the .conkyrc file to change the units.

当然下载后的conkyrc会导致txt区域文字排版很混乱,这里你需要根据自身的情况自行调整,还有需要根据当前网卡调整获取网络状态的conkyrc文件,其实文件很简单,你只要调整voffset距离,但这个要需要慢慢调整,调整这个用了不少时间。

有另外一种方法是脚本安装,但我没试过,脚本在附件链接中有提供下载。

Harmattan Conky Pack is a lightweight system monitor, here’s how to install it in Ubuntu 14.04.

Open a terminal window.

Type in the following commands then hit Enter after each.

sudo apt-get install conky curl

cd && wget -O harmattan.sh http://drive.noobslab.com/data/conky/Harmattan/harmattan.sh

cd && chmod +x harmattan.sh && ./harmattan.sh

You can uninstall it with these commands.
cd && wget -O uninstall-harmattan.sh http://drive.noobslab.com/data/conky/Harmattan/uninstall-harmattan.sh

chmod +x uninstall-harmattan.sh && ./uninstall-harmattan.sh

参考文档:

conky类:

conky函数说明

提供conky-all curl下载安装

Harmattan作者github地址

玩conky是受此启发

附件链接包括conky主题以及conkyrc文件,Droid Sans字体还有安装脚本:

附件链接

效果展示:

conky显示效果

conky显示效果1

上次更新:
贡献者: iEchoxu