manjaro安装i3和配置

电脑装了个manjaro KDE版,再装个i3玩玩

安装i3

❯ yay -S i3-manjaro
[sudo] chenxu 的密码:
:: 在组 i3-manjaro 中有 9 成员:
:: 软件仓库 community
   1) artwork-i3  2) conky-i3  3) dmenu-manjaro  4) i3-default-artwork  5) i3-help  6) i3exit  7) i3status-manjaro
   8) manjaro-i3-settings  9) manjaro-i3-settings-bldbk

输入某个选择 ( 默认=全部选定 ): 

这里一定要输入1-8,9是不能直接安装的

提前改dpi

因为这个chromebook pixel 2013是高分屏,默认的字很蛋疼,所以一定要改dpi

更改或者新建~/.Xresources

nano .Xresources

然后加上(或者更改)

Xft.dpi: 192

更改~/.xinitrc

nano .xinitrc

加上

xrdb -merge ~/.Xresources

连wifi

装完后注销,在登陆界面把桌面软件改成i3,再敲密码进入

然后发现没网,查了查资料都是用wifi-menu来连接的,但是试了好久怎么连都连不上,提示网卡already on

后来发现系统自带了个networkmenager,其实可以用这个连

nmtui

直接用这个cli的gui连接工具连wifi就行了

系统没自带ifconfig,装一下

yay -S net-tools

装个带透明背景带终端

我比较喜欢用xfce4带那个

yay -S xfce4-terminal

设置里把透明度改一下

把i3里的终端改成cfce4的:

nano .config/i3/config

把mod+return这行改成刚装的

bindsym $mod+Return exec xfce4-terminal

桌面壁纸

装一个feh

yay -S feh

在i3配置文件最后面加

exec feh --randomize --bg-fill ~/Pictures/wallpapers

窗口透明化

yay -S compton

i3配置文件最后加上

exec compton -b

启动中文输入法

自行装一个fcitx的输入法,我这里用的是双拼

在i3配置文件最后加

exec fcitx

自动启动qv2ray

代理是刚需,这里的软件也可以换成别的,看哪个你用的顺手了

i3最后加上

exec qv2ray

启动浏览器的快捷键

我这里设置alt+i启动firefox,同样加i3配置文件里

bindsym $mod+i exec firefox

调整屏幕亮度

先装个调亮度的包

yay -S xorg-xbacklight

i3配置文件里加上快捷键,按需更改,我这里用的是chromebook所以对应的是这两个

bindsym $mod+F6 exec xbacklight - 10
bindsym $mod+F7 exec xbacklight + 10

截图工具

scrot

yay -S scrot

截图的时候用

scrot -s

去除窗口标题和边缘

i3配置里加

new_window none
new_float normal
hide_edge_borders both

调整音量

这里用alsamixer就行了

安装:

yay -S alsa-utils

然后就能调音量了

alsamixer

当然,也可以在配置文件里绑定一下快捷键:

bindsym $mod+F9 exec amixer sset Master 10%-
bindsym $mod+F10 exec amixer sset Master 10%+
bindsym $mod+F8 exec amixer sset Master 0%

浏览器的纯键盘操作

装一个vim vixen

触摸板改成自然滚动

sudo nano /etc/X11/xorg.conf.d/30-touchpad.conf

在中间加上

Option "NaturalScrolling" "true"

最终

补充:i3status的配置

更改/etc/i3status.conf

# i3status configuration

general {
    colors = true
    output_format=i3bar
    interval = 30
}

order += "cpu_temperature 0"
order += "cpu_usage"
order += "memory"
order += "disk /"
order += "disk /home"
order += "load"
order += "volume master"
order += "tztime local"
#order += "ipv6"
order += "wireless wlp3s0"
#order += "ethernet _first_"
#order += "run_watch DHCP"
#order += "run_watch VPN"
order += "battery all"

wireless wlp3s0 {
    format_up = "%ip@%essid-%quality"
    format_down = "W: down"
}

ethernet _first_ {
    # if you use %speed, i3status requires root privileges
    format_up = "%ip (%speed)"
    format_down = ""
}

battery all {
    format = "%status %percentage %remaining %emptytime"
    format_down = "No Battery"
    status_chr = "🔌CHR"
    status_bat = "🔋BAT"
    status_unk = "?UNKOWN"
    status_full = "🔌FULL"
    path =  "/sys/class/power_supply/BAT%d/uevent"
    low_threshold = 10
    threshold_type= time
}

run_watch DHCP {
    pidfile = "/var/run/dhclient*.pid"
}

run_watch VPN {
    pidfile = "/var/run/vpnc/pid"
}

tztime local {
    format = "⏲%Y-%m-%d %H:%M"
}

load {
    format = "Load:%5min"
}

disk "/" {
    format = "Root:%avail"
}

disk "/home" {
    format = "Home:%avail"
}

cpu_temperature 0 {
    format = "CPU %degrees°C"
    max_threshold = 60
    path = "/sys/class/thermal/thermal_zone0/temp"
}

cpu_usage {
    format = "%usage"
}

#memory {
#    format = "%used | %available"
#    threshold_degraded = "1G"
#    format_degraded = "MEMORY < %available"
#}

volume master {
    format = "🔊%volume"
    format_muted = "🔇muted"
    device = "default"
    mixer = "Master"
    mixer_idx = 0
}

发表评论

您的电子邮箱地址不会被公开。