Manjaro/Archlinux KDE个人配置记录

一、参考:

https://zhuanlan.zhihu.com/p/460826583

https://blog.csdn.net/qq_46591037/article/details/122538850

https://www.bilibili.com/read/mobile?id=14016623

二、基本配置

1.Manjaro换源

sudo pacman-mirrors -i -c China -m rank

2.arch添加archlinuxcn

#添加国内源

reflector --country China --age 72 --sort rate --protocol https --save /etc/pacman.d/mirrorlist

#添加rechlinuxcn仓库

sudo vim /etc/pacman.conf

#添加

[archlinuxcn]

Include = /etc/pacman.d/archlinuxcn-mirrorlist

vim /etc/pacman.d/archlinuxcn-mirrorlist

#/etc/pacman.d/archlinuxcn-mirrorlist文件里添加

## 清华大学 (北京) (ipv4, ipv6, http, https)

Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch

## 中国科学技术大学 (安徽合肥) (ipv4, ipv6, http, https)

Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch

## 腾讯云 (Global CDN) (ipv4, http, https)

Server = https://mirrors.cloud.tencent.com/archlinuxcn/$arch

## 阿里云 (Global CDN) (ipv4, ipv6, http, https)

Server = https://mirrors.aliyun.com/archlinuxcn/$arch

## 华为云 (Global CDN) (ipv4, http, https)

Server = https://repo.huaweicloud.com/archlinuxcn/$arch

## 哈尔滨工业大学 (黑龙江哈尔滨) (ipv4, ipv6, http, https)

Server = https://mirrors.hit.edu.cn/archlinuxcn/$arch

## 浙江大学 (浙江杭州) (ipv4, http, https)

Server = https://mirrors.zju.edu.cn/archlinuxcn/$arch

## SJTUG 软件源镜像服务 (上海) (ipv4, ipv6, https)

Server = https://mirrors.sjtug.sjtu.edu.cn/archlinux-cn/$arch

## 南京大学 (江苏南京) (ipv4, ipv6, http, https)

Server = https://mirrors.nju.edu.cn/archlinuxcn/$arch

sudo pacman -S archlinuxcn-keyring

3.更新安装常用包

sudo pacman -Syyu

sudo pacman -S yay

yay -S tree base-devel

3.输入法

yay -S fcitx5-im fcitx5-chinese-addons fcitx5-qt fcitx5-gtk

vim ~/.pam_environment

.pam_environment里添加

#前三个就行

GTK_IM_MODULE DEFAULT=fcitx

QT_IM_MODULE  DEFAULT=fcitx

XMODIFIERS    DEFAULT=\@im=fcitx

INPUT_METHOD  DEFAULT=fcitx

SDL_IM_MODULE DEFAULT=fcitx

安装词库

yay -S fcitx5-pinyin-zhwiki

#安装中文维基百科词库

yay -S fcitx5-pinyin-moegirl

#安装二刺螈萌娘百科词库

安装主题

yay -S fcitx5-nord

yay -S fcitx5-material-color

重启然后对输入法进行配置,添加输入法

在全局配置里trigger input method改为为左shift,这样可以直接shift切换上屏


 插件配置

云拼音改为百度

 更改界面字体


 4.clash

yay -S clash-for-windows-bin

系统设置

system setting>>network>>setting里设置

终端设置

vim ~./myshrc

#编辑一个自己的环境,添加

alias setproxy="export ALL_PROXY=socks5://127.0.0.1:7890; echo 'SET PROXY SUCCESS!!!'"

alias unsetproxy="unset ALL_PROXY; echo 'UNSET PROXY SUCCESS!!!'"

#分别在~/.bashrc 和~/.zshrc添加

[[ -f ~/.myshrc ]] && . ~/.myshrc

测试

setproxy

curl -vv http://www.youtube.com/

5.网易云

推荐yesplaymusic

yay -S yesplaymusic

yay -S netease-cloud-music#(网易云官方)

6.WPS

yay -S wps-office-mui-zh-cn wps-office-mime-cn wps-office-cn

#wps主体

yay -S ttf-wps-fonts wps-office-fonts ttf-ms-fonts

#选择安装字体

wps改中文,点那个小A

 7.百度网盘

选择第 2 个基于 electron 的版本,第一个官方版本闪退bug已经持续一年了,依然没人维护

yay -S baidunetdisk

8.微信/tim

yay -S deepin-wine-wechat

yay -S deepin-wine-tim

 安装完出现的问题参考下面两个链接

https://github.com/vufa/deepin-wine-wechat-arch

https://github.com/vufa/deepin-wine-tim-arch

9.腾讯会议

yay -S wemeet

10.设置截图

system setting>>shortcuts搜索spectacle,设置快捷键为Meta+shift+s

打开spectacle软件,在配置中选择 copy image to clipboard,并给accept on click-and-release打勾

安装flameshot

$ sudo pacman -S flameshot

11.virtualbox

# 查看内核版本

$ mhwd-kernel -li

Currently running: 5.15.12-1-MANJARO (linux515)

The following kernels are installed in your system:

   * linux515

# 安装 virtualbox 时注意下面的 515 替换成你的版本

yay -Syu virtualbox linux515-virtualbox-host-modules

# 查看 Virtualbox 版本

$ vboxmanage --version

6.1.30r148432

# 安装拓展包,选择跟 Virtualbox 版本号一致的

$ yay -S virtualbox-ext-oracle

12.vscode

yay -S vscode

13.oh-my-zsh

yay -S oh-my-zsh

下载插件

# 自动补全

sudo git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

# 语法高亮

sudo git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

# zsh-vi-mod

sudo git clone https://github.com/jeffreytse/zsh-vi-mode $ZSH_CUSTOM/plugins/zsh-vi-mode

配置oh-my-zsh

sudo cp /usr/share/oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

#修改~/.zshrc配置文件中oh-my-zsh的安装路径,将$ZSH的路径改为/usr/share/oh-my-zsh

打开 ~/.zshrc 找到 plugins 将它改成下面这样:

plugins=(

    git

    zsh-syntax-highlighting

    zsh-autosuggestions

    zsh-vi-mode

    colored-man-pages

)

打开 ~/.zshrc 文件,修改 ZSH_THEME,更多参考https://github.com/ohmyzsh/ohmyzsh/wiki/Themes

ZSH_THEME="af-magic"

14.octopi

yay -S octopi

15.zathura

yay -S zazathura thura-cb zathura-djvu zathura-pdf-mupdf

vim ~/.config/zathura/zathurarc

#配置文件如下

#以宽度自适应打开

set adjust-open "width"

#字体与字号

set font "Noto Sans CJK SC Regular 12"

#GUI相关,留空可隐藏底部statusbar,hv启用scrollbar

set guioptions "hv"

#只显示文件名,否则显示完整路径

set window-title-basename true

#增强搜索,实时搜索

set incremental-search true

#显示右侧进度条,注意该方法已弃用

#set show-v-scrollbar true

#set show-scrollbars true

#set show-h-scrollbar true

#粘贴版

set selection-clipboard clipboard

#默认高度,像素

set window-height 1000

#默认宽度

set window-width 1700

map - zoom out

map = zoom in

map scroll half-up

map scroll half-down


你可能感兴趣的:(Manjaro/Archlinux KDE个人配置记录)