-
2022-01-17 14:12:53
设置网络
sudo systemctl enable dhcpcd sudo systemctl enable wpa_supplicant sudo systemctl start wpa_supplicant ip link # 查看网络设备 nmcli dev wifi list # 查看wifi列表 nmcli devicd wifi connect "wifiname" password "passdword" # 连接wifi
安装相关组件
安装xorg
sudo pacman -S xorg-server xorg-xinit
安装i3等相关组件
sudo pacman -S zsh xfce4-terminal feh compton i3-gaps rofi
feh:用于配置背景图
compton:使窗口透明化的工具安装字体
sudo pacman -S adobe-source-han-sans-cn-fonts sudo pacman -S adobe-source-han-sans-tw-fonts sudo pacman -S adobe-source-han-sans-jp-fonts
创建一个用户
useradd -m -g users -G wheel -s /bin/zsh username
进入新用户
su username
安装git等组件
sudo pacman -S git make
安装yay
git clone https://aru.archlinux/org/yay.git cd yay makepkg -si
安装polybar
yay -S polybar
安装特殊图标
yay -S otf-font-awesome ttf-material-icons
安装oh-my-zsh
yay -S oh-my-zsh-git
安装文件管理程序
sudo pacman -S ranger
配置
配置.xinitrc
sudo cp /etc/X11/xinit/xinitrc ~/.xinitrc
在文件最后添加
exec compton -b & # exec fcitx & exec i3
配置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
重启电脑进入用户然后初始化X11
sudo xinit xinit
进入i3
startx
设置背景图片
vim ~/.config/i3/config
在最后加入
exec_always --no-startup-d feh --bg-center $HOME/bg.jpg # 背景图片路径
设置状态栏
vim ~/.config/i3/config
在文件末尾,注释以下内容
bar { status_command i3status }
并在末尾添加以下内容
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
配置polybar
mkdir ~/.config/polybar sudo cp /usr/share/doc/polybar/config ~/.config/polybar touch ~/.config/launch.sh chmod +x ~/.config/launch.sh
在launch.sh文件中加入以下内容
#!/bin/bash killall -q polybar while pgrep -u $UID -x polybar > /dev/null; do sleep 1; done polybar example
取消polybar的空隙
将 [bar/example] 的 border-size 的值改为0
polybar无法透明
将 [colors] 下的 background 的值改为 #cc222222
配置rofi
vim ~/.config/i3/config
添加bindsym $mod+d exec rofi -show run
更多相关内容 -
archlinux安装i3桌面
2021-01-20 13:21:31首先安装xorg或xorg-server,再安装i3 xorg-server是x window的实现,是用于显示图形界面。 安装依赖zsh、xfce4-terminal、feh、compton zsh是个人推荐使用的shell,如果你想用默认的shell,这个可以不装 terminal...说明
首先安装xorg或xorg-server,再安装i3
xorg-server是x window的实现,是用于显示图形界面。
安装依赖zsh、xfce4-terminal、feh、compton
zsh是个人推荐使用的shell,如果你想用默认的shell,这个可以不装
terminal这里用的是xfce4-terminal,个人建议用它,不过有一个小问题,使用ranger预览图片的时候会卡图片的显示缓存
feh用来设置背景图的
compton用来透明,这个必须装,因为polybar也依赖它
i3-gaps是i3wm的一个分支,提供窗口间隙设置等特性安装xorg
安装软件
# pacman -S xorg xorg-xinit xorg-server
配置文件
拷贝文件
# cp /etc/X11/xinit/xinitrc ~/.xinitrc
注意:没有想要运行i3桌面的用户都需要复制一份。修改.xinitrc文件
修改 ~/.xinitrc注销最后几行,然后添加一行 exec i3
安装i3软件包
# pacman -S i3
安装字体
# pacman -S ttf-dejavu wqy-microhei
修改i3配置文件
# vim .config/i3/config
修改默认的mod快捷键,默认是windows键,改为Alt键
把set $mod Mod4改为set $mod Mod1。
默认i3的快捷键冲突了,修改配置文件,搜索+d,注释掉第二个
安装终端模拟器
# pacman -S xfce4-terminal
启动i3桌面
# startx
可以使用Alt+Enter开启一个终端,如果想要退出可以使用Alt+Shift+e可以去退出窗体。 -
ArchLinux下i3wm简单配置和美化
2020-01-08 19:48:43安装i3-gaps(i3-gaps为i3wm的分支,提供了更多特性) (3)安装终端 执行 $ sudo pacman -S mate-terminal 安装mate-terminal(可选其他终端,这里安装的是mate桌面的终端,相比其他xterm urxvt等轻量级终端...先show下自己配置的截图,简单弄了下,凑合用。
本文默认你已经安装了基本的archlinux系统,只是没有配置桌面环境。所以跳过前面archlinux的基础安装过程。
ArchLinux的具体安装请参见我的博客 https://blog.csdn.net/r8l8q8/article/details/765165231.安装显卡驱动 和X窗系统
(1)安装显卡驱动
确定显卡型号
执行:# lspci | grep VGA
执行:
$ sudo pacman -S 驱动包
官方仓库提供的驱动包:
通用----------------------------------xf86-video-vesa
intel----------------------------------xf86-video-intel
Geforce7±-------------------------xf86-video-nouveau
Geforce6/7-------------------------xf86-video-304xx
(2)安装X窗口系统
执行:$ sudo pacman -S xorg-server
3.安装登录管理器和i3wm
(1)安装sddm登录管理器,可以选择其他登录管理器或者不装用startx启动,具体参见arch wiki
执行$ sudo pacman -S sddm $ sudo systemctl enable sddm
安装并启用sddm服务
(2)安装i3wm
执行$ sudo pacman -S i3-gaps
安装i3-gaps(i3-gaps为i3wm的分支,提供了更多特性)
(3)安装终端
执行$ sudo pacman -S mate-terminal
安装mate-terminal(可选其他终端,这里安装的是mate桌面的终端,相比其他xterm urxvt等轻量级终端略为大一些,但是配置方便,自己用鼠标点几下就ok了)
(4)重启reboot
至此基础的i3安装已经完成
4.开始安装简单美化所需的软件
软件名 简介 compton 提供窗口透明支持 polybar 状态条,类似于windows那个任务栏,也可以用默认的i3bar或者装别的panel rofi 快捷程序启动,也可以装dmenu feh 墙纸设置 (1)安装窗口透明支持软件
$ sudo pacman -S compton
(2)安装状态条
先添加archlinuxcn源, polybar在archlinuxcn源里。$ sudo nano /etc/pacman.conf
在 /etc/pacman.conf 文件末尾添加两行:
[archlinuxcn] SigLevel=Never Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
(先执行sudo pacman -S firefox 安装浏览器,然后打开本文复制一下文中archlinuxcn源,在nano 里ctrl+shift+v粘贴以下)
然后执行
$ sudo pacman -Syy
更新下仓库信息
执行
$ sudo pacman -S polybar
安装polybar
(3)安装快捷程序启动
$ sudo pacman -S rofi
(4)安装墙纸设置软件
$ sudo pacman -S feh
其中执行
feh --randomize --bg-fill ~/Pictures/DesktopBackground
会随机切换一张图片作为墙纸,可以配合linux的crontab 设置成每隔10分钟自动切换壁纸。crontab的安装使用很简单,请自行百度。
(5)安装输入法执行
$ sudo pacman -S fcitx-im fcitx-configtool
安装输入法引擎。
官方仓库里的输入法:
fcitx-cloudpinyin
fcitx-googlepinyin
fcitx-libpinyin
fcitx-sunpinyinArchLinuxCN源里有搜狗拼音 fcitx-sogoupinyin
选择一个安装.执行
$ nano ~/.xprofile
添加以下内容
export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS="@im=fcitx"
5.修改配置文件
(1)修改i3配置文件
执行$ nano ~/.config/i3/config
打开配置文件。
汉字注释部分为在原来配置文件基础上修改添加的内容
# This file has been auto-generated by i3-config-wizard(1). # It will not be overwritten, so edit it as you like. # # Should you change your keyboard layout some time, delete # this file and re-run i3-config-wizard(1). # # i3 config file (v4) # # Please see https://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 #设置窗口边框等等 new_window none new_float normal hide_edge_borders both #设置窗口间距 gaps inner 8 gaps outer 6 # 设置截图快捷键 ,先安装mate-utils, sudo pacman -S mate-utils bindsym $mod+p exec mate-screenshot -i #登录时 启用窗口透明 exec --no-startup-id compton -b #登陆时 随机选择壁纸 ,~/Pictures/DesktopBackground 下要放几张图片 exec --no-startup-id feh --randomize --bg-fill ~/Pictures/DesktopBackground # 登陆时启动polybar exec --no-startup-id ~/.config/polybar/launch.sh #登录时启动fcitx exec --no-startup-id fcitx # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:monospace 8 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). #font pango:DejaVu Sans Mono 8 # The combination of xss-lock, nm-applet and pactl is a popular choice, so # they are included here as an example. Modify as you see fit. # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the # screen before suspend. Use loginctl lock-session to lock your screen. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. exec --no-startup-id nm-applet # Use pactl to adjust volume in PulseAudio. set $refresh_i3status killall -SIGUSR1 i3status bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # start a terminal bindsym $mod+Return exec i3-sensible-terminal # kill focused window bindsym $mod+Shift+q kill #设置快捷程序启动为rofi # start dmenu (a program launcher) #bindsym $mod+d exec dmenu_run # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop bindsym $mod+d exec --no-startup-id rofi -show drun # change focus bindsym $mod+j focus left bindsym $mod+k focus down bindsym $mod+l focus up bindsym $mod+semicolon focus right # alternatively, you can use the cursor keys: 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+j move left bindsym $mod+Shift+k move down bindsym $mod+Shift+l move up bindsym $mod+Shift+semicolon move right # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation bindsym $mod+h split h # split in vertical orientation bindsym $mod+v split v # enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle # focus the parent container bindsym $mod+a focus parent # focus the child container #bindsym $mod+d focus child # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. set $ws1 "1" set $ws2 "2" set $ws3 "3" set $ws4 "4" set $ws5 "5" set $ws6 "6" set $ws7 "7" set $ws8 "8" set $ws9 "9" set $ws10 "10" # switch to workspace bindsym $mod+1 workspace number $ws1 bindsym $mod+2 workspace number $ws2 bindsym $mod+3 workspace number $ws3 bindsym $mod+4 workspace number $ws4 bindsym $mod+5 workspace number $ws5 bindsym $mod+6 workspace number $ws6 bindsym $mod+7 workspace number $ws7 bindsym $mod+8 workspace number $ws8 bindsym $mod+9 workspace number $ws9 bindsym $mod+0 workspace number $ws10 # move focused container to workspace bindsym $mod+Shift+1 move container to workspace number $ws1 bindsym $mod+Shift+2 move container to workspace number $ws2 bindsym $mod+Shift+3 move container to workspace number $ws3 bindsym $mod+Shift+4 move container to workspace number $ws4 bindsym $mod+Shift+5 move container to workspace number $ws5 bindsym $mod+Shift+6 move container to workspace number $ws6 bindsym $mod+Shift+7 move container to workspace number $ws7 bindsym $mod+Shift+8 move container to workspace number $ws8 bindsym $mod+Shift+9 move container to workspace number $ws9 bindsym $mod+Shift+0 move container to workspace number $ws10 # reload the configuration file bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" # resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode # Pressing left will shrink the window’s width. # Pressing right will grow the window’s width. # Pressing up will shrink the window’s height. # Pressing down will grow the window’s height. bindsym j resize shrink width 10 px or 10 ppt bindsym k resize grow height 10 px or 10 ppt bindsym l resize shrink height 10 px or 10 ppt bindsym semicolon resize grow width 10 px or 10 ppt # 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 or $mod+Shift+r bindsym Return mode "default" bindsym Escape mode "default" bindsym $mod+r mode "default" } bindsym $mod+r mode "resize" # 关掉i3bar # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) #bar { # status_command i3status #} # exec --no-startup-id conky -c ~/.conkyrc
(2)修改polybar配置文件
polybar自带默认配置文件在/usr/share/doc/polybar/config,
执行$ mkdir ~/.config/polybar $ cp /usr/share/doc/polybar/config ~/.config/polybar/
添加polybar配置文件
执行
$ nano ~/.config/polybar/config
打开polybar配置文件
[module/eth] 为有线网卡,[module/wlan] 为无线网卡
执行$ ip link show
查看自己的网卡设备,并将[module/eth] 或[module/wlan]下的interface设置为自己的网卡设备名字
执行
$ nano ~/.config/polybar/launch.sh
添加polybar的启动脚本.
内容如下:
#!/bin/bash # Terminate already running bar instances killall -q polybar # Wait until the processes have been shut down while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done # Launch Polybar, using default config location ~/.config/polybar/config polybar mybar
添加完成后,执行
$ sudo chmod +x ~/.config/polybar/launch.sh
添加可执行权限polybar配置文件我几乎没修改,只是修改了下透明背景色和网卡,让其显示网速,并禁用了一些没用的组件,polybar配置文件中 ; 为注释符号。汉字注释内容为修改添加的部分。
;========================================================== ; ; ; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ ; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ ; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ ; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ ; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ ; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ; ; ; To learn more about how to configure Polybar ; go to https://github.com/polybar/polybar ; ; The README contains a lot of information ; ;========================================================== [colors] ;background = ${xrdb:color0:#222} ;background = #222 ;设置背景色为半透明 background= #b0222222 background-alt = #444 ;foreground = ${xrdb:color7:#222} foreground = #dfdfdf foreground-alt = #555 primary = #ffb52a secondary = #e60053 alert = #bd2c40 [bar/mybar] ;monitor = ${env:MONITOR:HDMI-1} width = 100% height = 27 ;offset-x = 1% ;offset-y = 1% radius = 6.0 fixed-center = false background = ${colors.background} foreground = ${colors.foreground} line-size = 3 line-color = #f00 border-size = 4 border-color = #00000000 padding-left = 0 padding-right = 2 module-margin-left = 1 module-margin-right = 2 font-0 = fixed:pixelsize=10;1 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 font-2 = siji:pixelsize=10;1 modules-left = bspwm i3 ;mpd音乐播放器插件,懒得配置,直接禁用 ;modules-center = mpd ;组件排列顺序,eth为有线网卡,下面为默认设置,把自己用不到的删除,台式机没有wlan所以直接删除了 ;modules-right = filesystem xbacklight alsa pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu modules-right = alsa eth memory cpu date tray-position = right tray-padding = 2 ;tray-background = #0063ff ;wm-restack = bspwm ;wm-restack = i3 ;override-redirect = true ;scroll-up = bspwm-desknext ;scroll-down = bspwm-deskprev ;scroll-up = i3wm-wsnext ;scroll-down = i3wm-wsprev cursor-click = pointer cursor-scroll = ns-resize [module/xwindow] type = internal/xwindow label = %title:0:30:...% [module/xkeyboard] type = internal/xkeyboard blacklist-0 = num lock format-prefix = " " format-prefix-foreground = ${colors.foreground-alt} format-prefix-underline = ${colors.secondary} label-layout = %layout% label-layout-underline = ${colors.secondary} label-indicator-padding = 2 label-indicator-margin = 1 label-indicator-background = ${colors.secondary} label-indicator-underline = ${colors.secondary} [module/filesystem] type = internal/fs interval = 25 mount-0 = / label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% label-unmounted = %mountpoint% not mounted label-unmounted-foreground = ${colors.foreground-alt} [module/bspwm] type = internal/bspwm label-focused = %index% label-focused-background = ${colors.background-alt} label-focused-underline= ${colors.primary} label-focused-padding = 2 label-occupied = %index% label-occupied-padding = 2 label-urgent = %index%! label-urgent-background = ${colors.alert} label-urgent-padding = 2 label-empty = %index% label-empty-foreground = ${colors.foreground-alt} label-empty-padding = 2 ; Separator in between workspaces ; label-separator = | [module/i3] type = internal/i3 format = <label-state> <label-mode> index-sort = true wrapping-scroll = false ; Only show workspaces on the same output as the bar ;pin-workspaces = true label-mode-padding = 2 label-mode-foreground = #000 label-mode-background = ${colors.primary} ; focused = Active workspace on focused monitor label-focused = %index% label-focused-background = ${colors.background-alt} label-focused-underline= ${colors.secondary} label-focused-padding = 2 ; unfocused = Inactive workspace on any monitor label-unfocused = %index% label-unfocused-padding = 2 ; visible = Active workspace on unfocused monitor label-visible = %index% label-visible-background = ${self.label-focused-background} label-visible-underline = ${self.label-focused-underline} label-visible-padding = ${self.label-focused-padding} ; urgent = Workspace with urgency hint set label-urgent = %index% label-urgent-background = ${colors.alert} label-urgent-padding = 2 ; Separator in between workspaces ; label-separator = | [module/mpd] type = internal/mpd format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next> icon-prev = icon-stop = icon-play = icon-pause = icon-next = label-song-maxlen = 25 label-song-ellipsis = true [module/xbacklight] type = internal/xbacklight format = <label> <bar> label = BL bar-width = 10 bar-indicator = | bar-indicator-foreground = #fff bar-indicator-font = 2 bar-fill = ─ bar-fill-font = 2 bar-fill-foreground = #9f78e1 bar-empty = ─ bar-empty-font = 2 bar-empty-foreground = ${colors.foreground-alt} [module/backlight-acpi] inherit = module/xbacklight type = internal/backlight card = intel_backlight [module/cpu] type = internal/cpu interval = 1 format-prefix = " " format-prefix-foreground = ${colors.foreground-alt} format-underline = #f90000 label =CPU %percentage:2%% [module/memory] type = internal/memory interval = 1 format-prefix = " " format-prefix-foreground = ${colors.foreground-alt} format-underline = #4bffdc label =RAM %percentage_used%% ;无线网卡设备 [module/wlan] type = internal/network ;请将interface设为自己的网卡名称 interface = net1 interval = 3.0 format-connected = <ramp-signal> <label-connected> format-connected-underline = #9f78e1 label-connected = %essid% format-disconnected = ;format-disconnected = <label-disconnected> ;format-disconnected-underline = ${self.format-connected-underline} ;label-disconnected = %ifname% disconnected ;label-disconnected-foreground = ${colors.foreground-alt} ramp-signal-0 = ramp-signal-1 = ramp-signal-2 = ramp-signal-3 = ramp-signal-4 = ramp-signal-foreground = ${colors.foreground-alt} ;有线网卡 [module/eth] type = internal/network ;请将interface设为自己的网卡名称; interface = enp34s0 interval = 2.0 format-connected-underline = #55aa55 format-connected-prefix = " " format-connected-prefix-foreground = ${colors.foreground-alt} ;label-connected = %local_ip% ; Seconds to sleep between updates ; Default: 1 ;interval = 3.0 ; Test connectivity every Nth update ; A value of 0 disables the feature ; NOTE: Experimental (needs more testing) ; Default: 0 ;ping-interval = 3 ; @deprecated: Define min width using token specifiers (%downspeed:min% and %upspeed:min%) ; Minimum output width of upload/download rate ; Default: 3 udspeed-minwidth = 5 ; Accumulate values from all interfaces ; when querying for up/downspeed rate ; Default: false accumulate-stats = true ; Consider an `UNKNOWN` interface state as up. ; Some devices like USB network adapters have ; an unknown state, even when they're running ; Default: false unknown-as-up = true ; Available tags: ; <label-connected> (default) ; <ramp-signal> format-connected = <label-connected> ; Available tags: ; <label-disconnected> (default) format-disconnected = <label-disconnected> ; Available tags: ; <label-connected> (default) ; <label-packetloss> ; <animation-packetloss> format-packetloss = <animation-packetloss> <label-connected> ; All labels support the following tokens: ; %ifname% [wireless+wired] ; %local_ip% [wireless+wired] ; %local_ip6% [wireless+wired] ; %essid% [wireless] ; %signal% [wireless] ; %upspeed% [wireless+wired] ; %downspeed% [wireless+wired] ; %linkspeed% [wired] ; Default: %ifname% %local_ip% label-connected = %downspeed:9% label-connected-foreground = #eefafafa ; Default: (none) label-disconnected = not connected label-disconnected-foreground = #66ffffff ; Default: (none) ;label-packetloss = %essid% ;label-packetloss-foreground = #eefafafa ; Only applies if <ramp-signal> is used ramp-signal-0 = 😱 ramp-signal-1 = 😠 ramp-signal-2 = 😒 ramp-signal-3 = 😊 ramp-signal-4 = 😃 ramp-signal-5 = 😈 ; Only applies if <animation-packetloss> is used animation-packetloss-0 = ⚠ animation-packetloss-0-foreground = #ffa64c animation-packetloss-1 = 📶 animation-packetloss-1-foreground = #000000 ; Framerate in milliseconds animation-packetloss-framerate = 500 ;format-disconnected = ;format-disconnected = <label-disconnected> ;format-disconnected-underline = ${self.format-connected-underline} ;label-disconnected = %ifname% disconnected ;label-disconnected-foreground = ${colors.foreground-alt} [module/date] type = internal/date interval = 5 date = date-alt = " %Y-%m-%d" time = %H:%M time-alt = %H:%M:%S format-prefix = format-prefix-foreground = ${colors.foreground-alt} format-underline = #0a6cf5 label = %date% %time% [module/pulseaudio] type = internal/pulseaudio format-volume = <label-volume> <bar-volume> label-volume = VOL %percentage%% label-volume-foreground = ${root.foreground} label-muted = 🔇 muted label-muted-foreground = #666 bar-volume-width = 10 bar-volume-foreground-0 = #55aa55 bar-volume-foreground-1 = #55aa55 bar-volume-foreground-2 = #55aa55 bar-volume-foreground-3 = #55aa55 bar-volume-foreground-4 = #55aa55 bar-volume-foreground-5 = #f5a70a bar-volume-foreground-6 = #ff5555 bar-volume-gradient = false bar-volume-indicator = | bar-volume-indicator-font = 2 bar-volume-fill = ─ bar-volume-fill-font = 2 bar-volume-empty = ─ bar-volume-empty-font = 2 bar-volume-empty-foreground = ${colors.foreground-alt} [module/alsa] type = internal/alsa format-volume = <label-volume> <bar-volume> label-volume = VOL label-volume-foreground = ${root.foreground} format-muted-prefix = " " format-muted-foreground = ${colors.foreground-alt} label-muted = sound muted bar-volume-width = 10 bar-volume-foreground-0 = #55aa55 bar-volume-foreground-1 = #55aa55 bar-volume-foreground-2 = #55aa55 bar-volume-foreground-3 = #55aa55 bar-volume-foreground-4 = #55aa55 bar-volume-foreground-5 = #f5a70a bar-volume-foreground-6 = #ff5555 bar-volume-gradient = false bar-volume-indicator = | bar-volume-indicator-font = 2 bar-volume-fill = ─ bar-volume-fill-font = 2 bar-volume-empty = ─ bar-volume-empty-font = 2 bar-volume-empty-foreground = ${colors.foreground-alt} [module/battery] type = internal/battery battery = BAT0 adapter = ADP1 full-at = 98 format-charging = <animation-charging> <label-charging> format-charging-underline = #ffb52a format-discharging = <animation-discharging> <label-discharging> format-discharging-underline = ${self.format-charging-underline} format-full-prefix = " " format-full-prefix-foreground = ${colors.foreground-alt} format-full-underline = ${self.format-charging-underline} ramp-capacity-0 = ramp-capacity-1 = ramp-capacity-2 = ramp-capacity-foreground = ${colors.foreground-alt} animation-charging-0 = animation-charging-1 = animation-charging-2 = animation-charging-foreground = ${colors.foreground-alt} animation-charging-framerate = 750 animation-discharging-0 = animation-discharging-1 = animation-discharging-2 = animation-discharging-foreground = ${colors.foreground-alt} animation-discharging-framerate = 750 [module/temperature] type = internal/temperature thermal-zone = 0 warn-temperature = 60 format = <ramp> <label> format-underline = #f50a4d format-warn = <ramp> <label-warn> format-warn-underline = ${self.format-underline} label = %temperature-c% label-warn = %temperature-c% label-warn-foreground = ${colors.secondary} ramp-0 = ramp-1 = ramp-2 = ramp-foreground = ${colors.foreground-alt} [module/powermenu] type = custom/menu expand-right = true format-spacing = 1 label-open =Power label-open-foreground = ${colors.secondary} label-close = cancel label-close-foreground = ${colors.secondary} label-separator = | label-separator-foreground = ${colors.foreground-alt} menu-0-0 = reboot menu-0-0-exec = menu-open-1 menu-0-1 = power off menu-0-1-exec = menu-open-2 menu-1-0 = cancel menu-1-0-exec = menu-open-0 menu-1-1 = reboot menu-1-1-exec = sudo reboot menu-2-0 = power off menu-2-0-exec = sudo poweroff menu-2-1 = cancel menu-2-1-exec = menu-open-0 [settings] screenchange-reload = true ;compositing-background = xor ;compositing-background = screen ;compositing-foreground = source ;compositing-border = over ;pseudo-transparency = false [global/wm] margin-top = 5 margin-bottom = 5 ; vim:ft=dosini
到这里基本配置美化完成了。
6.安装一些常用的软件
这个根据自己喜好去安装就行,有的比较人洁癖,用了i3窗口管理器,其他软件几乎清一色轻量级的,甚至只用gtk的不用qt的。以下是我个人安装的常用软件。
软件名 描述 caja mate桌面默认的文件管理器 engrampa mate桌面默认压缩管理器 mate-calc 计算器 eom 图片浏览器 mate-utils 提供 查看磁盘容量 截图 搜索文件等工具 mate-system-monitor mate桌面的任务管理器(系统监视器) 或者直接一条命令
$ sudo pacman -S mate-extra
将Mate桌面的常用工具软件全套安装。
其中文件管理器为caja,rofi检索不出来,还有mate-system-monitor(任务管理器)等个别mate工具软件无法检索,建议在i3配置文件里设置快捷键启动。例如:文件管理器,可以在i3配置文件中添加
#设置文件管理器快捷键 bindsym $mod+m exec caja
快捷打开文件管理器。
终端可以安装Oh-My-Zsh 美化以下,具体请百度或者访问Oh-My-Zsh官网,很简单的。
简单用了下Oh-My-Zsh后
7.最后,附上自己的墙纸
下载链接: https://download.csdn.net/download/r8l8q8/12090544
-
old-dotfiles:带有LVM的终极ArchLinux安装程序(将来可能会在LUKS上安装)。 出色的i3键盘体验
2021-04-29 00:51:18tunnckoCore的dotfile 没那么多。 -
在Archlinux中安装使用i3
2021-05-19 06:09:59pacman -S xorg-server xorg-xinit如果想从xinit启动i3,那么就装上xorg-xinit,如果你想通过显示管理器启动,那么可以不装(本教程展示用xinit启动的方式,用显示管理器也差不多一样)安装依赖zsh、xfce4-terminal、...安装xorg-server和xorg-xinit
xorg-server是x window的实现,是用于显示图形界面。
pacman -S xorg-server xorg-xinit
如果想从xinit启动i3,那么就装上xorg-xinit,如果你想通过显示管理器启动,那么可以不装(本教程展示用xinit启动的方式,用显示管理器也差不多一样)
安装依赖zsh、xfce4-terminal、feh、compton
zsh是个人推荐使用的shell,如果你想用默认的shell,这个可以不装
terminal这里用的是xfce4-terminal,个人建议用它,不过有一个小问题,使用ranger预览图片的时候会卡图片的显示缓存
feh用来设置背景图的
compton用来透明,这个必须装,因为polybar也依赖它
i3-gaps是i3wm的一个分支,提供窗口间隙设置等特性
pacman -S zsh xfce4-terminal feh compton i3-gaps
安装你喜欢的英文和中文字体
中文这里推荐思源宋体,英文随意
pacman -S adobe-source-han-sans-cn-fonts
pacman -S adobe-source-han-sans-tw-fonts
pacman -S adobe-source-han-sans-jp-fonts
创建用户
useradd -m -g users -G wheel -s /bin/zsh username
这里需要注意两点:第一,-G指定的附加组要有使用sudo的权利。第二,-s 制定用户默认的shell
切换用户,并拷贝xinitrc文件到用户目录
su username
sudo cp /etc/X11/xinit/xinitrc ~/.xinitrc
这里注意拷贝后的文件改名为.xinitrc
在.xinitrc添加如下内容
exec compton -b &
exec fcitx &
exec i3 -V >> ~/.config/i3/log/i3log-$(date +'%F-%k-%M-%S') 2>&1
重启后startx进入图形界面
安装polybar
建议直接从AUR中安装
yaourt -S polybar-git
注意:在通过yaourt安装过程中,先查看构建包,结构如下(根据需要装上必要的依赖,建议都装上,要使用mpd模块的话,不仅要装上libmpdlient还要装上mpd再构建polybar):
从我的仓库中拷贝我的配置文件到home目录对应的配置目录
git clone https://github.com/AshNobita/i3andpolybarconfig.git
把i3andpolybarconfig文件夹下的文件按照原有的目录结构拷贝到当前用户目录下
修改.xinitrc,添加如下内容
exec mpd ~/.config/mpd/mpd.conf
安装上字体图标
yaourt -S otf-font-awesome
yaourt -S ttf-material-icons
重启后在进入
你会发现音乐模块图标并没有显示,不用担心,因为你的目录里没有文件,音乐目录默认为当前用户目录下的Music文件夹,你可以通过修改.config/mpd/mpd.conf文件来改变这个路径。
安装ncmpccp
sudo pacman -S ncmpcpp
安装完后命令行键入ncmpcpp进入,你会发现播放目录是空的,不用担心,看到下面的提示,正常连接上的话,一进入下面会显示connected to xxxx,然后按u刷新音乐数据库,接着按2浏览数据库文件,选择播放即可。这时候polybar上的音乐模块也正常显示了。
安装i3lock-fancy
yaourt -S i3lock-fancy-git
这是i3lock的修改,用起来像下图
但因为改锁屏方式进行了一些图像处理,所以比较费事,从你按下锁屏热键到锁上屏需要3s左右的时间,如果你不能忍受这个速度,那么你可以直接使用i3lock。
在我的配置中,绑定了i3lock-fancy的锁屏快捷键为$mod+l,并设置好了定时自动锁屏,你可以自行修改。
安装oh my zsh
pacman -S oh-my-zsh-git
这是配置得比较好的zsh,直接装上用就行了,由于我的配置文件中也提供了.zshrc,你可以通过浏览oh-my-zsh选择你喜欢的shell配置
安装powerlevel9k(可以作为oh my zsh的一个主题使用)
-
ArchLinux + i3wm 桌面 Windows10 双系统安装(重点记录)
2021-05-15 10:37:30关闭 Windows 快速启动 等等 这些工作可以参考其他博文或者官方文档 U 盘启动开始安装 使用 wifi-menu 连接无线网 分区(重点 双系统的关键) 使用 cfdisk 分区工具将自己想要装 ArchLinux 的分区分为两个分区一个作为... -
-
dotfiles:我的Arch Linux配置[i3-gaps + i3blocks + Zsh + Spacemacs + Rofi + Alacritty + Neofetch]
2021-02-02 20:57:33dotfiles:我的Arch Linux配置[i3-gaps + i3blocks + Zsh + Spacemacs + Rofi + Alacritty + Neofetch] -
archlinux安装配置、i3-wm配置、blurlock锁屏、archlinux音频蓝牙
2020-11-22 17:01:09archlinux+i3折腾笔记 持续更新,直到不在折腾。 使用设备:Honor_Magicbook14_AMD archlinux基础安装 i3wm+驱动安装 安装常用软件 音频、蓝牙 音量、亮度调节 模糊锁屏 blurlock 电源管理、休眠、重启、关机 相关... -
i3:我在Arch Linux上构建的i3wm布局
2021-03-18 07:59:05我对i3WM的一般牙弓布局和自定义 关于您的产品及其用途的一到两段声明。 要求 i3WM i3块(可选) i3间隙 折线 polybar-spotify 罗菲 迅达 真棒字体5 用法 您应该具有GNU / Linux终端方面的中级知识才能进行这些... -
ArchLinux基本安装后安装i3wm基本环境
2021-05-15 10:37:31pacman -S lightdm-gtk-greeter 输入 lightdm --test-mod --debug 输入 systemctl enable lightdm 5 安装i3wm(rofi可更换为dmenu) 输入 pacman -S i3-gaps i3lock i3status compton rofi feh 6 创建用户 输入 ... -
ArchLinux图形界面安装与美化:i3+polybar-Go语言中文社区
2021-05-15 04:59:43arch只提供了tty,我们需要自己配置一个漂亮的桌面。你可以选择继承好的GNOME、Deepin等桌面。...效果图如下:需要安装:i3wm:窗口管理器feh:设置桌面compton:窗口透明化polybar:状态栏网络连接使用... -
在Archlinux中安装使用i3-gaps和polybar
2020-12-21 17:53:49安装前提装好的Archlinux可以正常连接网络安装步骤安装xorg-server和xorg-xinitxorg-server是x window的实现,是用于显示图形界面。pacman -S xorg-server xorg-xinit如果想从xinit启动i3,那么就装上xorg-xinit,... -
Archlinux下i3wm与urxvt的配置
2016-07-07 13:41:00前段时间学习了GitHub的两位前辈:Airblader和wlh320。他们的相关教程在https://github.com/Airblader/i3和https://github.com/wlh320。本篇博客则是根据他们的教程...当然我这个透明是在i3wm下的,应该还会有别的通... -
archlinux+i3wm安装与配置
2015-10-25 09:31:041、安装archlinux,参照的贴吧的教程,在vmware12中成功安装,链接请戳 http://tieba.baidu.com/p/2307324919?see_lz=1 2、安装Xwindow。 Xorg提供基本图形用户界面框架,有幸昨天正好看到一本书对此作了简短的... -
ArchLinux图形界面安装与美化:i3+polybar
2019-05-19 11:43:41i3wm是一个窗口管理器,它提供了最基础的窗口管理功能。你可以根据自己的需要进行配置,把系统运行的每一个程序都掌握在自己手里。效果图如下: 需要安装: i3wm:窗口管理器 feh:设置桌面 compton:窗口透明... -
dotfiles:带有i3-gaps,vim,tmux的Arch Linux我的Dotfiles
2021-05-15 23:20:15xzvf的Dotfiles 目前正在进行中。 -
ArchLinux开发环境第2辑——高效平铺式桌面i3个性化配置与美化
2020-08-13 19:13:16bar { i3bar_command i3bar -t height 28 #禁止systemtray tray_output none # i3bar调用 status_command ~/.config/i3/jconky # 显示位置top/bottom position bottom # 是否隐藏 #mode hide # 拆解工作区名(隐藏... -
archlinux i3平铺桌面学习笔记
2022-04-22 09:42:54pacman -S i3 选择全部安装 按键配置 我的想法是全默认,习惯一下默认的按键风格。 修改默认terminal bindsym $mod+Return exec konsole sudo pacman -S dmenu TODO i3wm虚拟机无法复制文字 默认分辨率设置与... -
Arch + i3wm + i3lock-wrapper 毛玻璃锁屏
2021-02-17 20:46:55今儿个 又看i3lock-wrapper的时候看了下man xautolock,发现了一些有意思的选项。 毛玻璃锁屏是酱紫的: 在.xinitrc里(startx的时候会执行.xinitrc里的命令)使i3lockwrapper.sh于后台运行,这个sh里再调用... -
点文件:archlinux,ubuntu,openbox,i3,zsh,urxvt,tmux等
2021-02-06 04:16:41窗口管理器:Openbox / i3 条形:色调2 /多边形 发射器:Rofi 墙纸管理员:feh 撰写人:Compton 系统监视器:Conky 航站楼:urxvt 外壳:zsh AUR Arch的辅助工具:trizen 安装后,您将拥有以下软件包。 ... -
解决 ArchLinux+i3wm 搜狗输入法 候选框不出 和 候选框黑边的问题
2021-07-05 14:41:18解决 ArchLinux+i3wm 搜狗输入法 候选框不出 和 候选框黑边的问题 -
ArchLinux配置中文输入法
2019-09-28 11:54:07配置输入法只需从安装输入法开始执行安装命令 1. sudo pacman-mirrors -g 2. sudo pacman-optimize && sync 3. sudo pacman -Syyu 4. 编辑 sudo nano /etc/pacman.conf 文件 ...SigLevel = Optional ... -
Arch Linux桌面环境-i3
2021-05-14 01:25:26在安装arch后只有命令行界面,日常使用还是相当蛋疼的,所以有了以下的一些操作~桌面环境选择:显示管理器:lightdm窗口管理器:i3wm创建之后使用的用户:useradd -m arch #创建用户password arch #修改用户密码... -
ArchLinux - 脚本安装使用指南
2020-03-26 20:52:18ArchLinux - 脚本安装使用指南前言Arch 安装脚本Script说明书 `注意大写的"A"`脚本介绍首页内容说明选项2 配置网络 列表说明:选项3 安装系统 列表说明:以下是使用过程中需要注意的地方1、分区 -- 选择[1] 提示输入... -
linux i3音量、亮度调节
2020-11-24 17:55:45linux i3音量、亮度调节 本方法适用笔记本电脑功能键,i3 桌面环境。 音量调节:sudo vim ~/.config/i3/config #方案一 此方案在我这里音量调节无上限,喇叭都要炸了!因此我用方案二 #set $refresh_i3status ... -
ArchLinux 音乐播放客户端ncmpcpp和服务端mpd的配置
2021-05-13 03:39:40Ncmcpp是一个mpd客户端,它... --取自 wiki.archlinux.org很好用的一个命令行下的音乐播放器,然而在配置的过程中出现了一些小问题安装yourt -S mpd ncmpcpp配置服务端 MPD安装mpd后,给每个用户做配置 复制/usr/sh... -
i3基本快捷键操作
2019-10-08 07:56:11i3默认的mod键为alt,第一次启动提示要不要更换这个键,第一次尝试使用了win键,发现使用起来有些别捏,还不如用alt舒服,根据个人手感而定。要是想更换需要在home目录下将.config文件删除,然后在终端输入i3-config... -
i3桌面环境-xrandr添加新的分辨率模式1920x1080
2022-03-05 18:35:08i3桌面环境-xrandr添加新的分辨率模式1920x1080,全屏显示,覆盖整个屏幕。