ArchLinux下i3wm简单配置和美化
先show下自己配置的截圖,簡(jiǎn)單弄了下,湊合用。
本文默認(rèn)你已經(jīng)安裝了基本的archlinux系統(tǒng),只是沒(méi)有配置桌面環(huán)境。所以跳過(guò)前面archlinux的基礎(chǔ)安裝過(guò)程。
ArchLinux的具體安裝請(qǐng)參見(jiàn)我的博客 https://blog.csdn.net/r8l8q8/article/details/76516523
1.安裝顯卡驅(qū)動(dòng) 和X窗系統(tǒng)
(1)安裝顯卡驅(qū)動(dòng)
確定顯卡型號(hào)
執(zhí)行:
執(zhí)行:
$ sudo pacman -S 驅(qū)動(dòng)包官方倉(cāng)庫(kù)提供的驅(qū)動(dòng)包:
通用----------------------------------xf86-video-vesa
intel----------------------------------xf86-video-intel
Geforce7±-------------------------xf86-video-nouveau
Geforce6/7-------------------------xf86-video-304xx
(2)安裝X窗口系統(tǒng)
執(zhí)行:
3.安裝登錄管理器和i3wm
(1)安裝sddm登錄管理器,可以選擇其他登錄管理器或者不裝用startx啟動(dòng),具體參見(jiàn)arch wiki
執(zhí)行
安裝并啟用sddm服務(wù)
(2)安裝i3wm
執(zhí)行
安裝i3-gaps(i3-gaps為i3wm的分支,提供了更多特性)
(3)安裝終端
執(zhí)行
安裝mate-terminal(可選其他終端,這里安裝的是mate桌面的終端,相比其他xterm urxvt等輕量級(jí)終端略為大一些,但是配置方便,自己用鼠標(biāo)點(diǎn)幾下就ok了)
(4)重啟
至此基礎(chǔ)的i3安裝已經(jīng)完成
4.開(kāi)始安裝簡(jiǎn)單美化所需的軟件
| compton | 提供窗口透明支持 |
| polybar | 狀態(tài)條,類似于windows那個(gè)任務(wù)欄,也可以用默認(rèn)的i3bar或者裝別的panel |
| rofi | 快捷程序啟動(dòng),也可以裝dmenu |
| feh | 墻紙?jiān)O(shè)置 |
(1)安裝窗口透明支持軟件
$ sudo pacman -S compton(2)安裝狀態(tài)條
先添加archlinuxcn源, polybar在archlinuxcn源里。
在 /etc/pacman.conf 文件末尾添加兩行:
[archlinuxcn] SigLevel=Never Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch(先執(zhí)行sudo pacman -S firefox 安裝瀏覽器,然后打開(kāi)本文復(fù)制一下文中archlinuxcn源,在nano 里ctrl+shift+v粘貼以下)
然后執(zhí)行
$ sudo pacman -Syy更新下倉(cāng)庫(kù)信息
執(zhí)行
$ sudo pacman -S polybar安裝polybar
(3)安裝快捷程序啟動(dòng)
$ sudo pacman -S rofi(4)安裝墻紙?jiān)O(shè)置軟件
$ sudo pacman -S feh其中執(zhí)行
feh --randomize --bg-fill ~/Pictures/DesktopBackground會(huì)隨機(jī)切換一張圖片作為墻紙,可以配合linux的crontab 設(shè)置成每隔10分鐘自動(dòng)切換壁紙。crontab的安裝使用很簡(jiǎn)單,請(qǐng)自行百度。
(5)安裝輸入法
執(zhí)行
$ sudo pacman -S fcitx-im fcitx-configtool安裝輸入法引擎。
官方倉(cāng)庫(kù)里的輸入法:
fcitx-cloudpinyin
fcitx-googlepinyin
fcitx-libpinyin
fcitx-sunpinyin
ArchLinuxCN源里有搜狗拼音 fcitx-sogoupinyin
選擇一個(gè)安裝.
執(zhí)行
$ nano ~/.xprofile添加以下內(nèi)容
export GTK_IM_MODULE=fcitxexport QT_IM_MODULE=fcitxexport XMODIFIERS="@im=fcitx"5.修改配置文件
(1)修改i3配置文件
執(zhí)行
打開(kāi)配置文件。
漢字注釋部分為在原來(lái)配置文件基礎(chǔ)上修改添加的內(nèi)容
# 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#設(shè)置窗口邊框等等 new_window none new_float normal hide_edge_borders both#設(shè)置窗口間距 gaps inner 8 gaps outer 6# 設(shè)置截圖快捷鍵 ,先安裝mate-utils, sudo pacman -S mate-utils bindsym $mod+p exec mate-screenshot -i#登錄時(shí) 啟用窗口透明 exec --no-startup-id compton -b #登陸時(shí) 隨機(jī)選擇壁紙 ,~/Pictures/DesktopBackground 下要放幾張圖片 exec --no-startup-id feh --randomize --bg-fill ~/Pictures/DesktopBackground # 登陸時(shí)啟動(dòng)polybar exec --no-startup-id ~/.config/polybar/launch.sh #登錄時(shí)啟動(dòng)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#設(shè)置快捷程序啟動(dòng)為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 pptbindsym k resize grow height 10 px or 10 pptbindsym l resize shrink height 10 px or 10 pptbindsym semicolon resize grow width 10 px or 10 ppt# same bindings, but for the arrow keysbindsym Left resize shrink width 10 px or 10 pptbindsym Down resize grow height 10 px or 10 pptbindsym Up resize shrink height 10 px or 10 pptbindsym Right resize grow width 10 px or 10 ppt# back to normal: Enter or Escape or $mod+Shift+rbindsym Return mode "default"bindsym Escape mode "default"bindsym $mod+r mode "default" }bindsym $mod+r mode "resize"# 關(guān)掉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自帶默認(rèn)配置文件在/usr/share/doc/polybar/config,
執(zhí)行
添加polybar配置文件
執(zhí)行
$ nano ~/.config/polybar/config打開(kāi)polybar配置文件
[module/eth] 為有線網(wǎng)卡,[module/wlan] 為無(wú)線網(wǎng)卡
執(zhí)行
查看自己的網(wǎng)卡設(shè)備,并將[module/eth] 或[module/wlan]下的interface設(shè)置為自己的網(wǎng)卡設(shè)備名字
執(zhí)行
$ nano ~/.config/polybar/launch.sh添加polybar的啟動(dòng)腳本.
內(nèi)容如下:
#!/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添加完成后,執(zhí)行
$ sudo chmod +x ~/.config/polybar/launch.sh
添加可執(zhí)行權(quán)限
polybar配置文件我?guī)缀鯖](méi)修改,只是修改了下透明背景色和網(wǎng)卡,讓其顯示網(wǎng)速,并禁用了一些沒(méi)用的組件,polybar配置文件中 ; 為注釋符號(hào)。漢字注釋內(nèi)容為修改添加的部分。
;========================================================== ; ; ; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ ; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ ; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ ; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ ; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ ; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ; ; ; 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 ;設(shè)置背景色為半透明 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 = falsebackground = ${colors.background} foreground = ${colors.foreground}line-size = 3 line-color = #f00border-size = 4 border-color = #00000000padding-left = 0 padding-right = 2module-margin-left = 1 module-margin-right = 2font-0 = fixed:pixelsize=10;1 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 font-2 = siji:pixelsize=10;1modules-left = bspwm i3 ;mpd音樂(lè)播放器插件,懶得配置,直接禁用 ;modules-center = mpd ;組件排列順序,eth為有線網(wǎng)卡,下面為默認(rèn)設(shè)置,把自己用不到的刪除,臺(tái)式機(jī)沒(méi)有wlan所以直接刪除了 ;modules-right = filesystem xbacklight alsa pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenumodules-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-wsprevcursor-click = pointer cursor-scroll = ns-resize[module/xwindow] type = internal/xwindow label = %title:0:30:...%[module/xkeyboard] type = internal/xkeyboard blacklist-0 = num lockformat-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 = 25mount-0 = /label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% label-unmounted = %mountpoint% not mounted label-unmounted-foreground = ${colors.foreground-alt}[module/bspwm] type = internal/bspwmlabel-focused = %index% label-focused-background = ${colors.background-alt} label-focused-underline= ${colors.primary} label-focused-padding = 2label-occupied = %index% label-occupied-padding = 2label-urgent = %index%! label-urgent-background = ${colors.alert} label-urgent-padding = 2label-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 = truelabel-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/xbacklightformat = <label> <bar> label = BLbar-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%%;無(wú)線網(wǎng)卡設(shè)備 [module/wlan] type = internal/network ;請(qǐng)將interface設(shè)為自己的網(wǎng)卡名稱 interface = net1 interval = 3.0format-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};有線網(wǎng)卡 [module/eth] type = internal/network ;請(qǐng)將interface設(shè)為自己的網(wǎng)卡名稱; interface = enp34s0 interval = 2.0format-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 = 5date = date-alt = " %Y-%m-%d"time = %H:%M time-alt = %H:%M:%Sformat-prefix = format-prefix-foreground = ${colors.foreground-alt} format-underline = #0a6cf5label = %date% %time%[module/pulseaudio] type = internal/pulseaudioformat-volume = <label-volume> <bar-volume> label-volume = VOL %percentage%% label-volume-foreground = ${root.foreground}label-muted = 🔇 muted label-muted-foreground = #666bar-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/alsaformat-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 mutedbar-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 = 98format-charging = <animation-charging> <label-charging> format-charging-underline = #ffb52aformat-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 = 750animation-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 = 60format = <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/menuexpand-right = trueformat-spacing = 1label-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-2menu-1-0 = cancel menu-1-0-exec = menu-open-0 menu-1-1 = reboot menu-1-1-exec = sudo rebootmenu-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.安裝一些常用的軟件
這個(gè)根據(jù)自己喜好去安裝就行,有的比較人潔癖,用了i3窗口管理器,其他軟件幾乎清一色輕量級(jí)的,甚至只用gtk的不用qt的。以下是我個(gè)人安裝的常用軟件。
| caja | mate桌面默認(rèn)的文件管理器 |
| engrampa | mate桌面默認(rèn)壓縮管理器 |
| mate-calc | 計(jì)算器 |
| eom | 圖片瀏覽器 |
| mate-utils | 提供 查看磁盤(pán)容量 截圖 搜索文件等工具 |
| mate-system-monitor | mate桌面的任務(wù)管理器(系統(tǒng)監(jiān)視器) |
或者直接一條命令
$ sudo pacman -S mate-extra將Mate桌面的常用工具軟件全套安裝。
其中文件管理器為caja,rofi檢索不出來(lái),還有mate-system-monitor(任務(wù)管理器)等個(gè)別mate工具軟件無(wú)法檢索,建議在i3配置文件里設(shè)置快捷鍵啟動(dòng)。例如:文件管理器,可以在i3配置文件中添加
#設(shè)置文件管理器快捷鍵 bindsym $mod+m exec caja快捷打開(kāi)文件管理器。
終端可以安裝Oh-My-Zsh 美化以下,具體請(qǐng)百度或者訪問(wèn)Oh-My-Zsh官網(wǎng),很簡(jiǎn)單的。
簡(jiǎn)單用了下Oh-My-Zsh后
7.最后,附上自己的墻紙
下載鏈接: https://download.csdn.net/download/r8l8q8/12090544
總結(jié)
以上是生活随笔為你收集整理的ArchLinux下i3wm简单配置和美化的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: lacp协议文档概要
- 下一篇: ftp linux包,图文详解Ubunt