我的i3config配置

我的i3wm配置文件说明

i3config文件位置:~/.i3/config

1. 终端替换成alacritty,替换相关绑定

# start a terminal
#bindsym $mod+Return exec terminal
bindsym $mod+Return exec alacritty

# bindsym $mod+Ctrl+m exec terminal -e 'alsamixer'
bindsym $mod+Ctrl+m exec alacritty -e 'alsamixer'

#bindsym $mod+Ctrl+b exec terminal -e 'bmenu'
bindsym $mod+Ctrl+b exec alacritty -e 'bmenu'

# bindsym $mod+F5 exec terminal -e 'mocp'
bindsym $mod+F5 exec alacritty -e 'mocp'

2. 使用rofi替换dmenu

# start program launcher
# bindsym $mod+d exec --no-startup-id dmenu_recency
bindsym $mod+d exec --no-startup-id rofi -show drun -theme fancy
#bindsym $mod+d exec --no-startup-id rofi -show run -theme fancy

3. google-chrome替换Pale Moon浏览器绑定

# bindsym $mod+F2 exec palemoon # uninstall web browser base on firfox
bindsym $mod+G exec --no-startup-id google-chrome-stable

4. 开机启动桌面背景、开启compton滤镜

exec --no-startup-id nitrogen --restore; sleep 1; compton -b

5. 深度截图绑定(无法使用粘贴板待解决)

bindsym $mod+Shift+A exec --no-startup-id deepin-screenshot

6. 设置workspace names

# Workspace names
# to display names or symbols instead of plain workspace numbers you can use
# something like: set $ws1 1:mail
#                 set $ws2 2:
set $ws1 1:  
set $ws2 2:  
set $ws3 3:  
set $ws4 4:  
set $ws5 5:  
set $ws6 6:  
set $ws7 7:   
set $ws8 8:  

7. 设置指定程序启动时,默认在哪个workspace启动

assign [class="(?i)Chrome"] $ws2
assign [class="Typora"] $ws3
assign [class="code-oss"] $ws4
assign [class="netease-cloud-music"] $ws5
assign [class="vlc"] $ws5
assign [class="wechat"] $ws5

8. 使用i3lock-fancy替换blurlock

# Lock screen
#bindsym $mod+9 exec --no-startup-id blurlock
bindsym $mod+9 exec --no-startup-id i3lock-fancy

9. 配置i3bar

# Start i3bar to display a workspace bar (plus the system information i3status if available)
bar {
	i3bar_command i3bar
    # 设置不显示workspace numbers
    strip_workspace_numbers no 
	status_command i3status
	# 显示网速的插件 git 上找的
    status_command ~/.config/i3status/net-speed.sh
	position top
	

10. 开机启动fcitx输入法管理器

# 开机启动输入法
exec --no-startup-id fcitx

我的配置文件归档

Gitee:https://gitee.com/siyingcheng/my_manjaro_i3wm_config/blob/master/i3/config

posted @ 2019-10-19 23:34  司英成·Owen  阅读(4698)  评论(1编辑  收藏  举报