基础系统安装完成后,准备日常使用的配置
关于网络的问题,有线要比无线简单的多,有线直接插网线,然后
systemctl start dhcpcd
systemctl enable dhcpcd
而对于无线来说,wpa_supplicant和wifi-menu挨个试一次,少有不成功的
-wpa_supplicant的配置文件在/etc/wpa_supplicant.conf
-wifi-menu的配置文件在/etc/netctl/目录下
开机后进行基本驱动安装
1. 显卡驱动安装
# lspci | grep VGA # 确定显卡型号
# pacman -S <驱动包>
#
# # 官方仓库提供的驱动包:
# # +----------------------+--------------------+--------------+
# # | | 开源 | 私有 |
# # +----------------------+--------------------+--------------+
# # | 通用 | xf86-video-vesa | |
# # +----------------------+--------------------+--------------+
# # | Intel | xf86-video-intel | |
# # +--------+-------------+--------------------+--------------+
# # | | GeForce 9+ | | nvidia |
# # + +-------------+ +--------------+
# # | nVidia | GeForce 8/9 | xf86-video-nouveau | nvidia-340xx |
# # + +-------------+ +--------------+
# # | | GeForce 6/7 | | nvidia-304xx |
# # +--------+-------------+--------------------+--------------+
# # | AMD/ATI | xf86-video-ati | |
# # +----------------------+--------------------+--------------+
2.安装alsa-utils声音管理
# pacman -S alsa-utils
# cat /lib/systemd/system/alsa-state.service
检查配置文件,若内容无以下部分,则加上
# [Install]
# WantedBy=multi-user.target
开机自启动
# systemctl start alsa-state.service
# systemctl enable alsa-statr.service
3.安装yaourt包管理器
sudo vim /etc/pacman.conf
将以下语句加入
[archlinux]
SigLevel = Optional TrustAll
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
刷新仓库安装yaourt
# sudo pacman -Sy yaourt
# sudo pacman -S archlinuxcn-keyring
4.安装中文字体
# pacman -S adobe-source-han-sans-cn-fonts # 可选,思源黑体
5.安装中文输入法
# pacman -S fcitx-im fcitx-configtool
# yaourt fcitx-sogoupinyin
安装后进行配置
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
-KDM、GDM、LightDM 等显示管理器的用户,向 ~/.xprofile在exec前添加以上命令
-startx 与 slim 的用户,向 ~/.xinitrc在 exec 语句前添加以上命令
安装完成后右击状态栏最右侧的小键盘,在设置中添加搜狗输入法,然后重启系统,输入法的切换默认按键为ctrl+space。
6.安装oh-my-zsh
# sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
将.zshrc文件内主题修改至如下
# ZSH_THEME="bureau"
保存退出后,`source .zshrc`更新
7.安装i3桌面环境
# pacman -S xorg xorg-init xterm
# pacman -S i3lock i3status compton dmenu feh
# yaourt i3-gaps
建立~/.i3/config文件,我的配置如下:
i3
#===============设置字体#===============
font pango:monospace, EmojiOne Color 10
#===============设置$mod为alt键#===============
# customized
set $mod Mod1
#===============设置窗口边框#===============
new_window none
bindsym $mod+t border normal
bindsym $mod+y border pixel 1
bindsym $mod+u border none
#===============状态栏#===============
bindsym $mod+m bar mode toggle
bar {
i3bar_command i3bar -t
# status_command i3status
status_command py3status
position bottom
modifier Shift
separator_symbol " | "
colors {
background #000000CC
#statusline #000000FF
separator #B8F788
focused_workspace #B8F788 #000000AA
active_workspace #FFFFFF #FFFFFFAA
inactive_workspace #AAAAAA #000000AA #AAAAAA
urgent_workspace #E57B85 #000000AA
}
}
#===============窗口间距#===============
gaps inner 6
gaps outer 0
smart_gaps on
#===============系统命令#===============
set $mode_system 注销(O) 关机(S) 重启(R) 取消(Esc)
bindsym $mod+shift+q mode "$mode_system"
mode "$mode_system" {
bindsym o exec i3-msg exit
bindsym s exec systemctl poweroff
bindsym r exec systemctl reboot
bindsym Escape mode "default"
}
#===============鼠标聚焦#===============
focus_follows_mouse no
#===============锁屏快捷键#===============
bindsym Mod4+l exec --no-startup-id i3lock -i '/home/karl/Pictures/Wallpapers/'
#===============自动启动fcitx&系统管理器#===============
exec --no-startup-id fcitx
bindsym $mod+e exec nautilus
#===============音量控制#===============
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q sset Master 5%+
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q sset Master 5%-
#--------------------------------------
#alsamixer -- MM静音 00有声音
#
#===============浮动窗口#===============
# use Mouse+Mod1 to drag floating windows to their wanted position
#loating_modifier $mod
#===============打开终端#===============
bindsym $mod+Return exec i3-sensible-terminal
#===============关闭窗口#===============
bindsym Control+$mod+w kill
#===============打开dmenu#===============
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# bindsym Mod1+d exec --no-startup-id i3-dmenu-desktop
#
#----------------------------------------
#输入lxappearance打开配置工具,可选择安装的主题和图标
#wps wpp et
#===============窗口聚焦#===============
set $up l
set $down k
set $left j
set $right semicolon
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
#===============窗口移动#===============
# move focused window
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
#===============窗口拆分模式#===============
bindsym $mod+h split h
bindsym $mod+v split v
#===============切换全屏#===============
bindsym $mod+f fullscreen toggle
#===============切换布局模式#===============
#bindsym $mod+s layout stacking
#bindsym $mod+w layout tabbed
#bindsym Mod1+e layout toggle split
#===============切换窗口浮动#===============
bindsym $mod+Shift+space floating toggle
#===============浮动/平铺聚焦切换#===============
bindsym $mod+space focus mode_toggle
#===============聚焦到父窗口===============
#bindsym $mod+a focus parent
#===============聚焦到子窗口===============
#bindsym Mod1+d focus child
#===============添加窗口到存储===============
bindsym $mod+Shift+minus move scratchpad
#===============切换存储器中的窗口===============
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym Mod4+minus scratchpad show
#===============绑定workspace快捷键===============
# switch to workspace
bindsym $mod+1 workspace 1:Info
bindsym $mod+2 workspace 2:Web
bindsym $mod+3 workspace 3:Music
bindsym $mod+4 workspace 4:QQ
bindsym $mod+5 workspace 5:Work
bindsym $mod+6 workspace 6:Work
bindsym $mod+7 workspace 7:Work
bindsym $mod+8 workspace 8:Other
bindsym $mod+9 workspace 9:Other
bindsym $mod+0 workspace 10:Other
#===============绑定移动窗口到指定workspace快捷键===============
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1:Info
bindsym $mod+Shift+2 move container to workspace 2:Web
bindsym $mod+Shift+3 move container to workspace 3:Music
bindsym $mod+Shift+4 move container to workspace 4:QQ
bindsym $mod+Shift+5 move container to workspace 5:Work
bindsym $mod+Shift+6 move container to workspace 6:Work
bindsym $mod+Shift+7 move container to workspace 7:Work
bindsym $mod+Shift+8 move container to workspace 8:Other
bindsym $mod+Shift+9 move container to workspace 9:Other
bindsym $mod+Shift+0 move container to workspace 10:Other
#===============指定程序打开后出现在指定工作区===============
assign [class="netease-cloud-music"] 3:Music
#===============重新加载配置===============
# reload the configuration file
bindsym $mod+Shift+c reload
#===============重启i3===============
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
#===============退出i3===============
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m '是否确定退出i3? 这将导致所有工作窗口被关闭.' -b '确定' 'i3-msg exit'"
#===============调整窗口大小===============
# resize window (you can also use the mouse for that)
mode "resize" {
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
#===============绑定调整窗口大小快捷键===============
bindsym $mod+r mode "resize"
#===============print键自定义截屏#===============
bindsym Print exec shutter -s -e -o ~/Pictures/Shots/%Y-%m-%d-%T.png
#===============关闭屏保#===============
exec --no-startup-id xset s 0
#######################################################################
# automatically start i3-config-wizard to offer the user to create a
# keysym-based config which used their favorite modifier (alt or windows)
#
# i3-config-wizard will not launch if there already is a config file
# in ~/.i3/config.
#
# Please remove the following exec line:
#######################################################################
exec_always --no-startup-id feh --bg-scale "/home/karl/Pictures/Wallpapers/"
exec i3-config-wizard
exec --no-startup-id i3-msg "workspace 1:Info"
exec compton &
pystatus
# yaourt py3status 配置底部状态栏
# pacman -S pamixer 声音模块的依赖
# vim ~/.i3status.conf
general {
output_format = "i3bar"
colors = true
color_good = "#BBBBBB"
color_bad = "#CC1616"
color_degraded = "#55858E"
interval = 1
}
order += "sysdata"
order += "cpu_usage"
order += "cpu_temperature 0"
order += "net_rate"
order += "time"
order += "volume_status"
sysdata {
format = "�� {mem_used}G �� {mem_used_percent}%"
color = "#48CCCD"
}
cpu_usage {
format = "�� %usage"
color = "#52D017"
}
cpu_temperature 0 {
format = "♨️ %degrees °C"
max_threshold = 65
path = "/sys/class/thermal/thermal_zone0/temp"
color = "#CCFB5D"
}
net_rate {
interfaces = "enp0s25"
format = "��{down} ��{up}"
color = "#FFDB58"
}
time {
format = "�� %Y-%m-%d %H:%M:%S"
color = "#9E7BFF"
}
volume_status {
format = "�� {percentage}%"
cache_timeout = 1
device = "default"
thresholds = [
(0, "#A0CFEC"),
(10, "#82CAFF"),
(20, "#79BAEC"),
(30, "#3BB9FF"),
(40, "#56A5EC"),
(50, "#5CB3FF"),
(60, "#1589FF"),
(70, "#157DEC"),
(80, "#306EFF"),
(90, "#2B65EC")
]
}
xfce
# pacman -S xfce
终端字体我使用了Monospace Bold 14
lightDM
安装lightDM登录管理器
# pacman -S lightdm lightdm-gtk-greeter
# systemctl start lightdm.serice
测试启动后,不要登录,直接右上角选择注销回到命令行界面
# systemctl enable ligntdm.service
一切正常则进行开机自启动,并配置~/.xprofile文件如下
export LANG=zh_CN.UTF-8
export LANGUAGE=zh_CN:en_US
export LC_CTYPE=en_US.UTF-8
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
exec i3
exec sogo-qimpanel
8.安装一般使用程序
- chrome浏览器
pacman -S google-chrome
- nautilus资源管理器
pacman -S nautilus
- WPS
pacman -S wps-office
- 网易云
pacman -S neteae-cloud-music
9.主题配置
# pacman -S lxappearance
# pacman -S arc-gtk-theme
# pacman -S numix-icon-theme
在mod+d中通过lxappearance选择主题
以上过程可能有缺漏,仅供参考