dwm和i3的一些配置

i3使用了快2个月,现换成了我更喜欢的dwm.
i3dwm都放在github,包括常用依赖,及字体等。

0x01 dwm

dwm是使用c编写的一个超级轻量的窗口管理器,其源码不超过2000行。不同与传统窗口管理器的体验,但我更喜欢dwm

我的脚本文件

我使用的补丁:

自用版本dwm仓库,可直接make。

0x02 i3

增添部分软件启动快捷键

添加了一些自启动和定时启动脚本

0x03 alacritty

修改字体以及大小与配色

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
font:
normal:
family: Source Code Pro
bold:
family: Source Code Pro
italic:
family: Source Code Pro
size: 8

background_opacity: 0.9
# Colors (Snazzy)
colors:
# Default colors
primary:
background: '0x282a36'
foreground: '0xf8f8f2'

# Normal colors
normal:
black: '0x44475a'
red: '0xff5555'
green: '0x50fa7b'
yellow: '0xf1fa8c'
blue: '0xbd93f9'
magenta: '0xff79c6'
cyan: '0x8be9fd'
white: '0xffffff'

# Bright colors
bright:
black: '0x44475a'
red: '0xff5555'
green: '0x50fa7b'
yellow: '0xf1fa8c'
blue: '0xbd93f9'
magenta: '0xff79c6'
cyan: '0x8be9fd'
white: '0xffffff'

0x04 polybar

添加屏幕亮度,音量大小管理,网络管理,CPU占用率与温度,电量,时间

0x05 vim

添加部分插件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
"       _
"__ _(_)_ __ ___ _ __ ___
"\ \ / / | '_ ` _ \| '__/ __|
" \ V /| | | | | | | | | (__
" \_/ |_|_| |_| |_|_| \___|
"
" --zjun--


set nocompatible
filetype on
filetype indent on
filetype plugin on
filetype plugin indent on
set mouse=a
set encoding=utf-8
let &t_ut=''


let mapleader=" "
syntax on
set number
set relativenumber
set cursorline
set wrap
set showcmd
set wildmenu
set hlsearch
exec "nohlsearch"
set incsearch
set ignorecase
set smartcase
set scrolloff=5

noremap xf :set splitbelow<CR>:split<CR>
noremap sf :set nosplitbelow<CR>:split<CR>
noremap yf :set splitright<CR>:vsplit<CR>
noremap zf :set nosplitbelow<CR>:vsplit<CR>

noremap = n
noremap - N
noremap <LEADER><CR> :nohlsearch<CR>

map s <nop>
map S :w<CR>
map Q :q<CR>
map R :source $MYVIMRC<CR>

map <LEADER>h <C-w>h
map <LEADER>j <C-w>j
map <LEADER>k <C-w>k
map <LEADER>l <C-w>l

map j :res +5<CR>
map k :res -5<CR>
map h :vertical resize-5<CR>
map l :vertical resize+5<CR>

map t :tabe<CR>
map th :-tabnext<CR>
map tl :+tabnext<CR>

call plug#begin('~/.vim/plugged')

Plug 'vim-airline/vim-airline'
Plug 'connorholyday/vim-snazzy'
Plug 'ycm-core/YouCompleteMe'
Plug 'dense-analysis/ale'
Plug 'mbbill/undotree'
Plug 'iamcco/markdown-preview.vim'
call plug#end()

color snazzy
let g:SnazzyTransparent = 1

" ===
" === ale
" ===
let b:ale_linters = ['pylint']
let b:ale_fixers = ['autopep8', 'yapf']

" ===
" === Undotree
" ===
let g:undotree_DiffAutoOpen = 0
map L :UndotreeToggle<CR>

0x06 ranger

ranger是一款极好用的终端文件管理器,功能十分强大,一个普通文件管理器有的功能他都有。

0x07 i3lock

对于锁屏采用了i3lock,效果还不错,锁屏带有模糊的截图

在i3config下添加锁屏快捷键

bindsym $mod+Shift+s exec i3lock-fancy

archlinux安装过程http://www.zjun.info/2020/01/01/archlinux/

Thank you very much if you can.

欢迎关注我的其它发布渠道