此篇用于记录装Manjaro-KDE的自用配置,方便复制粘贴,有兴趣的朋友可以看看有没有自己需要的东西(自助哦)
>>配置国内镜像源
$sudo pacman-mirrors -i -c China -m rank
>>设置 archlinuxcn,antergos,arch4edu源
$sudo nano /etc/pacman.conf
在原来的文件结尾中写入:
[archlinuxcn]
SigLevel = Optional TrustedOnly
#中科大源
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
#清华源
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
[antergos]
SigLevel = TrustAll
Server = https://mirrors.tuna.tsinghua.edu.cn/antergos/$repo/$arch
[arch4edu]
SigLevel = TrustAll
Server = https://mirrors.tuna.tsinghua.edu.cn/arch4edu/$arch
>>更新源列表
$sudo pacman-mirrors -g
>>更新pacman数据库并全面更新系统
$sudo pacman -Syyu
>>防止PGP签名错误
$sudo pacman -S archlinuxcn-keyring
$sudo pacman -S antergos-keyring
>>安装中文输入法
$sudo pacman -S fcitx-im fcitx-configtool fcitx-googlepinyin(sougou输入法容易出问题))
>>修改输入法配置文件
$sudo vi ~/.xprofile
写入
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
>>安装aur包管理工具
$sudo pacman -S yay
>>将zsh设为默认终端
$chsh -s /bin/zsh
>>安装oh-my-zsh配置文件
$sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
#或者
$sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
>>使用zsh模板更新zsh环境变量
$cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
>>一些常用软件及其包名
git
gitkraken
#下载工具
aria2
uget(要进行配置)
#文件解压缩
p7zip
file-roller
unrar
#WPS
wps-office
ttf-wps-fonts
#vscode
visual-studio-code-bin
#简洁好用的markdown编辑器
typora
#启动器
albert
#桌面CPU监视器
conky
conky-manager
#sublime文本编辑器
sublime(直接在软件库里找)
#网易云音乐
netease-cloud-music
music(命令行版本)
>>>下载桌面
$sudo pacman -S deepin
>>>deepin类的软件
$sudo pacman -S deepin-extra
>>>修改/etc/lightdm/lightdm.conf
$sudo vim /etc/lightdm/lightdm.conf
>>>修改登录会话
greeter-session=lightdm-deepin-greeter
>>禁用sddm,启用lightdm
$sudo systemctl stop sddm.service
$sudo systemctl disable sddm.service
$sudo systemctl enable lightdm.service
$sudo systemctl restart lightdm.service
这里可能会出现无法启动lightdm的问题,这个时候就要看是否还有gdm或sddm的服务残留,如果有,disable掉或者删除好像都可以
>>卸载kde和配套软件
$sudo pacman -Rsc plasma $sudo pacman -Rsc kde-applications
>>deepin-wine环境下的通讯软件
deepin-wine-tim deepin-wine-qq deepin-wine-wechat
//sudo pacman -S ***就可以直接安装
>>开启开机动画
$sudo pacman -S plymouth
$sudo su
$plymouth-set-default-theme (查看当前开机动画)
$plymoyth-set-default-theme -l(列出可用动画)
$plymouth-set-default-theme -R themename(将动画编译进内核)
>>修改grub设置以启动
$vim /etc/default/grub
在quiet 后面加上splash
>>Conky有关配置
default_color white
double_buffer yes
no_buffers yes
update_interval 1.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour 000000
own_window_argb_visual yes
own_window_argb_value 0
double_buffer yes
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders n0
minimum_size 300 1
maximum_width 406
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_right
gap_x 6
gap_y 5
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer no
use_xft yes
xftfont WenQuanYi Zen Hei:pixelsize=12
override_utf8_locale yes
use_spacer no
minimum_size 300 1
TEXT
${font LCD:style=Bold:pixelsize=40}${alignc}${time %I:%M:%S}
${font LCD:style=Bold:pixelsize=20}${time %Y年%b%d日 星期%a}${alignc}
${font WenQuanYi Zen Hei:pixelsize=14}
${color #98c2c7}姓名: ${color}$alignr 新新点灯
${color #98c2c7}邮箱: ${color}$alignr 可自己填写
${color #98c2c7}内核: ${color}$alignr$kernel
${color #98c2c7}已开机: ${color}$alignr$uptime
${color #98c2c7}CPU使用率: ${color}$cpu%
$cpubar
CPU1 温度: $alignr${exec sensors | grep 'Core 0' | cut -c17-25}
CPU2 温度: $alignr${exec sensors | grep 'Core 1' | cut -c17-25}
${color #98c2c7}CPU占用:${color}
${top name 1} ${alignr}${top cpu 1}
${top name 2} ${alignr}${top cpu 2}
${top name 3} ${alignr}${top cpu 3}
${top name 4} ${alignr}${top cpu 4}
${top name 5} ${alignr}${top cpu 5}
${top name 6} ${alignr}${top cpu 6}
${color #98c2c7}物理内存:${color}${alignr}$mem / $memmax
${membar}
${color #98c2c7}根分区: ${color}${alignr}${fs_free /} / ${fs_size /}
${fs_bar 4 /}
#${color #98c2c7}Home分区: ${color}${alignr}${fs_free /home} / ${fs_size /home}
#${fs_bar 4 /home}
#${color #98c2c7}网络使用:${color}
#下载速度:$alignr${downspeed wlp3s0} k/s
#上传速度:$alignr${upspeed wlp3s0} k/s
${downspeedgraph wlp3s0 324D23 77B753}
>>space-vim的安装
curl -sLf https://spacevim.org/install.sh | bash (要忍受curl的恶心速度)