tofu2333 / blog

0 stars 0 forks source link

Arch Gnome 美化 #32

Open tofu2333 opened 12 months ago

tofu2333 commented 12 months ago

让Gnome用起来更加舒适,看起来更加美观...

Gnome扩展加持

Gnome扩展可在https://extensions.gnome.org中获取,以下是部分扩展。

AppIndicator and KStatusNotifierItem Support

扩展效果:应用程序托盘图标 开源地址:https://github.com/ubuntu/gnome-shell-extension-appindicator 扩展地址:https://extensions.gnome.org/extension/615/appindicator-suppor

Blur my Shell

扩展效果:添加模糊效果 开源地址:https://github.com/aunetx/blur-my-shell 扩展地址:https://extensions.gnome.org/extension/3193/blur-my-shell

Rounded Window Corners

扩展效果:使所有应用程序具有圆角 开源地址:https://github.com/yilozt/rounded-window-corners 扩展地址:https://extensions.gnome.org/extension/5237/rounded-window-corners

Coverflow Alt-Tab

扩展效果:更好的 Alt-Tab 功能,能预览应用窗口 开源地址:https://github.com/dmo60/CoverflowAltTab 扩展地址:https://extensions.gnome.org/extension/5237/rounded-window-corners

Dash to Dock

扩展效果:Dock栏 开源地址:https://github.com/micheleg/dash-to-dock/ 扩展地址:https://extensions.gnome.org/extension/307/dash-to-dock

Clipboard Indicator

扩展效果:剪贴板历史记录 开源地址:https://github.com/Tudmotu/gnome-shell-extension-clipboard-indicator 扩展地址:https://extensions.gnome.org/extension/779/clipboard-indicator

no-overview

扩展效果:No overview at start-up 开源地址:https://github.com/fthx/no-overview 扩展地址:https://extensions.gnome.org/extension/4099/no-overview

Caffeine

扩展效果:禁用屏幕保护程序和自动挂起 开源地址:https://github.com/eonpatapon/gnome-shell-extension-caffeine 扩展地址:https://extensions.gnome.org/extension/517/caffeine

Burn My Windows

扩展效果:应用窗口关闭效果 开源地址:https://github.com/Schneegans/Burn-My-Windows 扩展地址:https://extensions.gnome.org/extension/4679/burn-my-windows

Compiz alike magic lamp effect

扩展效果:窗口放大缩小魔灯效果 开源地址:https://github.com/hermes83/compiz-alike-magic-lamp-effect 扩展地址:https://extensions.gnome.org/extension/3740/compiz-alike-magic-lamp-effect

GNOME Fuzzy App Search

扩展效果:支持应用程序模糊搜索 开源地址:https://gitlab.com/czarlie/gnome-fuzzy-app-search 扩展地址:https://extensions.gnome.org/extension/3956/gnome-fuzzy-app-search

Hide Activities Button

扩展效果:移除左上角按钮 开源地址:https://github.com/zeten30/HideActivities 扩展地址:https://extensions.gnome.org/extension/744/hide-activities-button

Input Method Panel

扩展效果:使用 KDE 的 kimpanel 协议的 Gnome-Shell 输入法面板 开源地址:https://github.com/wengxt/gnome-shell-extension-kimpanel 扩展地址:https://extensions.gnome.org/extension/261/kimpanel

Removable Drive Menu

扩展效果:用于访问和卸载可移动设备的状态菜单 开源地址:https://gitlab.gnome.org/GNOME/gnome-shell-extensions 扩展地址:https://extensions.gnome.org/extension/7/removable-drive-menu

Applications Menu

扩展效果:左上角加应用程序菜单 开源地址:https://gitlab.gnome.org/GNOME/gnome-shell-extensions 扩展地址:https://extensions.gnome.org/extension/6/applications-menu

Vitals

扩展效果:计算机的温度、电压、风扇速度、内存使用情况等监视托盘扩展 开源地址:https://github.com/corecoding/Vitals 扩展地址:https://extensions.gnome.org/extension/1460/vitals

Status Area Horizontal Spacing

扩展效果:减小右上角状态区域中图标之间的水平间距 开源地址:https://gitlab.com/p91paul/status-area-horizontal-spacing-gnome-shell-extension 扩展地址:https://extensions.gnome.org/extension/355/status-area-horizontal-spacing

Just Perfection

扩展效果:调整工具以自定义GNOME Shell、更改行为和禁用UI元素 开源地址:https://gitlab.gnome.org/jrahmatzadeh/just-perfection 扩展地址:https://extensions.gnome.org/extension/3843/just-perfection

Places Status Indicator

扩展效果:左上角添加目录位置快捷入口 开源地址:https://gitlab.gnome.org/GNOME/gnome-shell-extensions 扩展地址:https://extensions.gnome.org/extension/8/places-status-indicator

美化终端

使用zshoh-my-zsh进行终端的美化。

首先安装zsh

~ sudo pacman -S zsh

接着安装oh-my-zsh,开源地址:https://github.com/ohmyzsh/ohmyzsh

~ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

安装oh-my-zsh插件。

autojump可以通过简单的命令进入想要目录,或者打开文件管理器。

zsh-syntax-highlighting提供命令高亮现实,比如命令输入错误显示红色,命令输入正确显示绿色。

zsh-autosuggestions提供命令建议,可以根据你执行的Shell命令记录,自动建议补全。

autojump用法是输入 j 目录名 或 j 目录名中的部分字符 就可以直接切换到相应的目录,不用再各种 cd

特别注意:切换的目录必须是之前 cd 访问过的才可直接切换。

~ yay -S autojump
~ git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
~ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

配置~/.zshrc,启用oh-my-zsh插件。

plugins=(
    git
    autojump
    zsh-syntax-highlighting
    zsh-autosuggestions
)

安装powerlevel10k主题依赖的字体:NerdFont

~ yay -S ttf-hack-nerd

安装powerlevel10k主题。

~ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

配置~/.zshrc,启用powerlevel10k主题。

ZSH_THEME="powerlevel10k/powerlevel10k"

执行source ~/.zshrc 生效配置,随后终端将进入到powerlevel10k的配置向导。

配置完成后,如果希望重新配置,执行p10k configure会重新打开配置向导。

Enjoy ! 🙂

参考资料: