Ubuntu 桌面美化

Ubuntu美化

环境

Ubuntu版本:Ubuntu 22.04.4LTS

Gnome版本:42.9

效果展示

  1. 打开关闭动画
    打开关闭动画

  2. 桌面预览
    Desktop

开始

  1. 更新镜像源

    sudo apt-get update
    
  2. 安装工具
    安装应用程序:tweaks(优化),扩展程序

    sudo apt-get install gnome-tweaks
    sudo apt-get install gnome-shell-extensions
    

    安装浏览器扩展gnome-shell-integration。图标是一个脚丫
    ‘gnome-shell-integration‘

  3. 安装拓展工具
    在该网页https://extensions.gnome.org/中安装工具,会自动安装到之前安装的拓展程序中。
    需要的插件User Themes, Net Speed

  4. 下载主题
    推荐网站:https://www.gnome-look.org/
    推荐主题:Orchis gtk theme。该主题github地址https://github.com/vinceliuice/Orchis-theme
    拉取主题源代码git clone https://github.com/vinceliuice/Orchis-theme.git

  5. 安装主题
    进入主题目录.执行安装脚本

    cd Orchis-theme
    ./install --tweaks macos
    
  6. Dock设置
    进入设置->外观->Dock 参考设置如图
    Dock设置

    设置 配置Dock行为
    配置Dock行为

  7. 扩展设置
    在所有程序中搜索tweaks或者搜索优化。打开软件
    外观,参考设置
    apperance

    窗口标题栏,参考设置
    窗口标题栏

    顶栏,参考设置
    top

  8. 窗口展示与隐藏动画
    gnome插件官网中搜索Compiz alike magic lamp effect插件并点击安装。
    UbuntuDock默认只能点击展开,不能点击隐藏窗口,可在命令行执行如下命令开启点击隐藏:

    gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
    

恢复

大部分主题卸载方法会在其github中给出,或者运行./install -h查看。比较常见的是直接运行

./install --remove
./install --uninstall

当桌面被搞的乱七八糟,可以运行dconf reset -f /org/gnome/。此命令可能导致输入法无法使用,需要设置里重新设置输入法。
可能还有一些比较固执的主题效果无法还原,运行下面的指令:

sudo aptitude reinstall `dpkg -S /usr/share/icons | cut -d: -f1 | sed 's/,//g'`
sudo aptitude reinstall `dpkg -S /etc/X11/cursors | cut -d: -f1 | sed 's/,//g'`
posted @ 2024-03-02 17:05  wow-  阅读(135)  评论(0编辑  收藏  举报