Skip to content

Instantly share code, notes, and snippets.

@evilH2O2
Last active April 10, 2024 09:38
Show Gist options
  • Save evilH2O2/f5ae9e0545e2debb4151cba18ef43843 to your computer and use it in GitHub Desktop.
Save evilH2O2/f5ae9e0545e2debb4151cba18ef43843 to your computer and use it in GitHub Desktop.
[ArchLinux+I3wm] #config
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc
if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi
#
# ~/.bashrc
#
# source ~/.bashrc 立即生效
# 可以把这条命令加入到 ~/.bash_profile的最后一行,就不需要每次source
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# PS1='[\u@\h \W]\$ '
PS1='\033[1;31m\u\033[0m\033[0;32m@\033[0m\033[1;36m\h\033[0m \033[34m\W\033[0m ->\033[0,35m\$\033[0m '
alias chromium="chromium --no-sandbox --proxy-server='socks5://127.0.0.1:1080'"
alias terproxy="export ALL_PROXY=socks5://127.0.0.1:1080"
alias audio="alsamixer"
alias audio-on="amixer sset Master unmute"
alias v2ray="systemctl restart v2ray"
alias google-chrome-stable="google-chrome-stable --no-sandbox"
alias cat="ccat"
alias vsCode="code --user-data-dir /root"
# Gisto proxy: https://github.com/Gisto/Gisto/issues/237
alias gisto="gisto --args --proxy-server='socks5://127.0.0.1:1080'"
# 自动补全功能(在键盘上按Tab两次)
complete -cf terproxy
complete -cf android-file-transfer
complete -cf audio audio-on v2ray vscode
# nnn top left color
export NNN_CONTEXT_COLORS='2456'
# Color output: https://wiki.archlinux.org/index.php/Color_output_in_console
# grep color
alias grep='grep --color=auto'
# diff color
alias diff='diff --color=auto'
# ls color
alias ls='ls --color=auto'
# 进一步改进ls的彩色输出功能,比如损坏的符号链接显示为红色
eval $(dircolors -b)
# print 256 colors:
# (x=`tput op` y=`printf %76s`;for i in {0..256};do o=00$i;echo -e ${o:${#o}-3:3} `tput setaf $i;tput setab $i`${y// /=}$x;done)
# -------- ~/.i3blocks.conf -----
#
# Global properties
command=~/.i3/i3scripts/$BLOCK_NAME
align=center
separator=false
separator_block_width=20
markup=pango
# Free space of /
[root]
command=printf "\\uf292 " && ~/.config/i3/i3script/disk
instance=/
interval=3600
color=#f9555f
# Free RAM
[memory]
command=printf "\\uf013 " && ~/.config/i3/i3script/memory
interval=2
color=#21b089
# Battery indicator
# [battery]
# interval=30
# color=#E88939
# Date
[date]
command=printf "\\uf073 " && date -I
interval=60
color=#f9555f
# 同步时间:timedatectl set-ntp true
# http://www.ituring.com.cn/article/205799?utm_source=tuicool
# Time
[time]
command=printf "\\uf017 " && date '+%H:%M '
interval=10
color=#21b089
syntax on
set nu
set tabstop=4 "用于设置Tab键宽度,默认为 8
set shiftwidth=4
colorscheme basepurple
set cul "浅色高亮当前行
set history=1000
set autoread " 当文件在外部被修改,自动更新该文件
set autoindent "自动缩进
set smartindent " 加强版缩进
set hlsearch " 搜索时高亮显示被找到的文本
set incsearch " 输入关键字的时候实时高亮显示
set showcmd " 在状态行中显示(部分)命令
set mouse=a " 使用鼠标
set laststatus=2 " 总是显示状态行
set wildmenu " 状态栏显示候选补全命令
set shortmess=atI " 启动的时候不显示那个援助乌干达儿童的提示
set backspace=2 " 解决插入模式下delete/backspce键失效问题
" set guifont=console:h11 " Font
set guifont=Source\ Code\ pro\ h11 " Font
" set guifont=Sauce\ Code\ Pro\ h11
set showmatch " 自动匹配括号
" set novb " 错误不响铃,闪烁 t_vb 为闪烁
set vb t_vb= " 错误不响铃不闪烁
" 将./ 两键绑定为 nohlsearch
nmap <silent> ./ :nohlsearch<CR>
" 倒换 jk 键
nn j k
nn k j
" 快捷插入 " 号
nn <leader>' viw<esc>a"<esc>hbi"<esc>lel
" Vim 最大化,需要 .dll文件,位置&使用方法:
" https://github.com/derekmcloughlin/gvimfullscreen_win32
" 不要进入 Vim后再全屏,在终端下全屏,然后在进入vim,不然会卡住
" 卡住后,只需要正常退出即可(:wq)
map <F11> <Esc>:call libcallnr("gvimfullscreen.dll", "ToggleFullScreen", 0)<CR>
" 字符编码
set encoding=utf-8
set termencoding=utf-8
set fileencoding=utf-8
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
" Gvim 解决乱码
set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has("win32")
set fileencoding=chinese
else
set fileencoding=utf-8
endif
"解决菜单乱码
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
"解决consle输出乱码
language messages zh_CN.utf-8
" 显示中文帮助
if version >= 603
set helplang=cn
set encoding=utf-8
endif
" ------------插件---------------
call plug#begin('~/.vim/plugged') "为插件指定目录
Plug 'https://github.com/itchyny/lightline.vim' " 状态栏插件
Plug 'https://github.com/w0rp/ale.git' " 代码检查
Plug 'godlygeek/tabular' " 使vim支持mardown,配合 vim-mardown使用,并在它的前面
Plug 'plasticboy/vim-markdown' "markdown 插件
Plug 'junegunn/goyo.vim', {'on': 'Goyo'} " 无干扰写作
Plug 'https://github.com/scrooloose/nerdtree.git' " 树状资源管理器
Plug 'ap/vim-css-color', {'for': ['css', 'scss', 'py', 'php', 'js', 'html']} " 颜色预览
Plug 'dhruvasagar/vim-table-mode' " 智能 table
Plug 'godlygeek/tabular' " 代码等号对齐 选中后(可视模式下使用) :Tabularize /= | /:
Plug 'yianwillis/vimcdoc' " 中文帮助, :help汉化
Plug 'ryanoasis/vim-devicons' " 保持在最后,配合 nerdtree的文件图标
call plug#end() " 初始化插件系统
"-----------------------------------
"-----vim-markdown
let g:vim_markdown_toml_frontmatter = 1 " 突出Jekyll或Hugo使用的YAML前端物质
let g:vim_markdown_new_list_item_indent = 2 " 自动缩进 2 格
let g:vim_markdown_math = 1 " LaTeX math
let g:vim_markdown_folding_disabled = 1 " 禁用折叠
" -----树状资源管理器-------
" 设置 C-n 键打开
map <C-n> :NERDTreeToggle<CR>
"------ 智能table ------
let g:table_mode_corner = '|'
let g:table_mode_delimiter = ' '
#!/bin/sh
# -------- ~/.xinitrc ------
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# twm &
# xclock -geometry 50x50-1+1 &
# xterm -geometry 80x50+494+51 &
# xterm -geometry 80x20+494-0 &
# exec xterm -geometry 80x66+0+0 -name login
# zh_cn
export LANG=zh_CN.UTF-8
export LANGUAGE=zh_CN:en_US
export LC_CTYPE=en_US.UTF-8
# VBox
VBoxClient-all
# sync time
timedatectl set-ntp true
# desktop
exec i3
# uRxvt
[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources
! ------ ~/.Xresources -----
! 刷新配置: xrdb -merge ~/.Xresources
!
! ----- font ---
Xft.dpi:96
URxvt.font: xft:Inconsolata Nerd:size=11, xft:DejaVuSansMono Nerd:size=11, xft:Source Code Pro:size:9, xft:WenQuanYi Micro Hei:size=10
! DejaVuSansMono Nerd 和 Inconsolata Nerd 配合 Vim 插件 file icon
!URxvt.font: xft:Fira Code:size=10, xft:WenQuanYi Micro Hei:size=10
!字体间距
! URxvt.letterSpace: 1
! ------ tiao ------
Rxvt.scrollBar:False
! ---- background ----
URxvt.depth:32
URxvt.background:[90]#282c35
! URxvt.foreground:#00bcd4
URxvt.foreground:#fff
URxvt.colorBD:Gray95
URxvt.colorUL:#e60a6e
URxvt.color1:#ffc107
URxvt.color4:RoyalBlue
URxvt.color5:Magenta2
URxvt.color8:Gray50
URxvt.color10: #00bcd4
URxvt.color12:DodgerBlue
URxvt.color14:#e91e63
URxvt.color15:Gray95
! ---------- 光标 ----
URxvt.cursorBlink:True
URxvt.saveLines:3000
! ----- tabs ---
URxvt.tabbed.tabbar-fg: 12
URxvt.tabbed.tabbar-bg : 0
URxvt.tabbed.tab-fg: 6
URxvt.tabbed.tab-bg: 0
! --- bell ----
URxvt.urgenOnBell: True
! --- icons ----
! URxvt.iconFile: /path/01.png!
! ------- input ----------
URxvt.inputMethod: fcitx
! ---- 边框 ----
URxvt.borderLess: False
! Normal copy-paste keybindings without perls
! Ctrl+Shift c /C+S v 复制粘贴 | From : https://www.v2ex.com/t/508104
URxvt.iso14755: false
URxvt.keysym.Shift-Control-V: eval:paste_clipboard
URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard
! 若不设置此选项,则在使用w3m后,neofetch 则不再显示图片,甚至不显示任何东西
! From : https://github.com/dylanaraps/neofetch/issues/1174
URxvt.internalBorder: 0
! ---------- Other --------
Rxvt.preeditType:Root
# ================= .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
# 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
# font pango:Fira Code 10
font pango:Source Code pro 13
font pango:HYLuoHuaShi 11
# font pango:Font Awesome 10
# 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
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesn’t scale on retina/hidpi displays.
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# =============== terminal ===================
#
# bindsym $mod+Return exec i3-sensible-terminal
# urxvt透明:
# urxvt -fg lightgray -bg black -bc -tr -tint lightgray -sh 60 -sr
bindsym $mod+Return exec urxvt -tr -tint lightgray -sh 50 -sr
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
# bindsym $mod+d exec dmenu_run
bindsym $mod+d exec rofi -show drun -theme Adapta-Nokto -show-icons -drun-icon-theme Papirus
bindsym $mod+q exec rofi -show run -theme Adapta-Nokto
# 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
# ======== change/move focus.焦点 ==============
#
# 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
# change focus between tiling / floating windows
# 改变平铺/浮动窗口之间的焦点
bindsym $mod+space focus mode_toggle
# focus the parent container.焦点回到父容器
bindsym $mod+a focus parent
# ============= color ==============
#
# NULL
# ============= 分屏 && 全屏 ================
#
# split in horizontal orientation
bindsym $mod+h split h
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# ========== Window layout ==============
#
# 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
# ========== workspace ================
#
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
# Icon : font-awesome > ~/.fonts/fa-brands-400.ttf
#set $ws1 "Tty"
#set $ws2 "Web"
#set $ws3 "Music"
#set $ws4 "Images"
#set $ws5 "Github"
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 0
# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
# move focused container to workspace
# 将焦点上的容器移动到指定工作区
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10
# ========= My App Key =======================
exec --no-startup-id fcitx
bindsym ctrl+$mod+l exec "i3lock-fancy -t 'Input your passwd'"
# standby -> suspend -> offa 待机->休眠->立即关闭屏幕 秒
# exec --no-startup-id xset dpms 900 1200 1500
# 十分钟后自动睡眠
exec --no-startup-id xset dpms 600
bindsym ctrl+$mod+e exec --no-startup-id caja
# --release 参数,使命令在松开按键之后执行
bindsym --release Shift+Print exec --no-startup-id scrot -s
# 背光: xorg-xbacklight
# 具体查看: https://wiki.archlinux.org/index.php/Backlight
# Mod1 = Alt
bindsym ctrl+Mod1+Up exec "xbacklight +10"
bindsym ctrl+Mod1+Down exec "xbacklight -10"
bindsym ctrl+Mod1+k exec "xbacklight +10"
bindsym ctrl+Mod1+j exec "xbacklight -10"
bindsym $mod+F9 exec "xbacklight +10"
bindsym $mod+F8 exec "xbacklight -10"
# ======== background ========
# exec --no-startup-id feh --bg-fill ~/Photos/forest-nightscape.jpg
exec --no-startup-id feh --bg-fill ~/Photos/wallpaper/69047709_p0.jpg
# ======== Audio =========
bindsym ctrl+$mod+m exec --no-startup-id alsamixer
bindsym XF86AudioRaiseVolume exec "amixer set Master 5%+"
bindsym XF86AudioLowerVolume exec "amixer set Master 5%-"
bindsym XF86AudioMute exec "amixer -q sset Master,0 toggle"
# ====== Mpc ========
# period = . | comma = ,
#
# ====== i3-gaps =======
# disable window titlebars
for_window [class=".*"] border pixel 0
gaps inner 10
# gaps outer 10
gaps top 8
gaps left 8
gaps right 8
gaps bottom 20
set $default_gaps_inner 8
set $default_gaps_outer -4
focus_follows_mouse no
smart_borders on
# ========= reload && exit ==========
#
# 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'"
# ============== Window size ===================
#
# 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 1 px or 1 ppt
# 增加高度
bindsym k resize grow height 1 px or 1 ppt
# 收缩高度
bindsym l resize shrink height 1 px or 1 ppt
# 增加宽度, semicolon = ;
bindsym semicolon resize grow width 1 px or 1 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 1 px or 1 ppt
bindsym Down resize grow height 1 px or 1 ppt
bindsym Up resize shrink height 1 px or 1 ppt
bindsym Right resize grow width 1 px or 1 ppt
# back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
# polybar
exec_always --no-startup-id /root/.config/polybar/launch.sh
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
# i3blocks说明 : https://github.com/vivien/i3blocks
# bar {
# status_command i3blocks
# status_command polybar
# }
# ============================ i3-gaps ====================================================
# =========================== ===================================================
# https://github.com/waltlenu/dotfiles/blob/870b2ff3a695224410bf85d00b8d0fa7709ab190/.config/sway/gaps
# 需要 next-git 版本,4.16 中没有此功能,会报错
# 安装 : yay -S i3-gaps-next-git
#
set $mode_gaps Gaps: (o)uter, (i)nner, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_horiz Horizontal Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_verti Vertical Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_top Top Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_right Right Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_bottom Bottom Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_left Left Gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym $mod+Shift+g mode "$mode_gaps"
mode "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
bindsym i mode "$mode_gaps_inner"
bindsym h mode "$mode_gaps_horiz"
bindsym v mode "$mode_gaps_verti"
bindsym t mode "$mode_gaps_top"
bindsym r mode "$mode_gaps_right"
bindsym b mode "$mode_gaps_bottom"
bindsym l mode "$mode_gaps_left"
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_outer" {
bindsym plus gaps outer current plus 5
bindsym minus gaps outer current minus 5
bindsym 0 gaps outer current set 0
bindsym Shift+plus gaps outer all plus 5
bindsym Shift+minus gaps outer all minus 5
bindsym Shift+0 gaps outer all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_inner" {
bindsym plus gaps inner current plus 5
bindsym minus gaps inner current minus 5
bindsym 0 gaps inner current set 0
bindsym Shift+plus gaps inner all plus 5
bindsym Shift+minus gaps inner all minus 5
bindsym Shift+0 gaps inner all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_horiz" {
bindsym plus gaps horizontal current plus 5
bindsym minus gaps horizontal current minus 5
bindsym 0 gaps horizontal current set 0
bindsym Shift+plus gaps horizontal all plus 5
bindsym Shift+minus gaps horizontal all minus 5
bindsym Shift+0 gaps horizontal all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_verti" {
bindsym plus gaps vertical current plus 5
bindsym minus gaps vertical current minus 5
bindsym 0 gaps vertical current set 0
bindsym Shift+plus gaps vertical all plus 5
bindsym Shift+minus gaps vertical all minus 5
bindsym Shift+0 gaps vertical all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_top" {
bindsym plus gaps top current plus 5
bindsym minus gaps top current minus 5
bindsym 0 gaps top current set 0
bindsym Shift+plus gaps top all plus 5
bindsym Shift+minus gaps top all minus 5
bindsym Shift+0 gaps top all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_right" {
bindsym plus gaps right current plus 5
bindsym minus gaps right current minus 5
bindsym 0 gaps right current set 0
bindsym Shift+plus gaps right all plus 5
bindsym Shift+minus gaps right all minus 5
bindsym Shift+0 gaps right all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_bottom" {
bindsym plus gaps bottom current plus 5
bindsym minus gaps bottom current minus 5
bindsym 0 gaps bottom current set 0
bindsym Shift+plus gaps bottom all plus 5
bindsym Shift+minus gaps bottom all minus 5
bindsym Shift+0 gaps bottom all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_left" {
bindsym plus gaps left current plus 5
bindsym minus gaps left current minus 5
bindsym 0 gaps left current set 0
bindsym Shift+plus gaps left all plus 5
bindsym Shift+minus gaps left all minus 5
bindsym Shift+0 gaps left all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}

基本不分先后

  • vim
  • xorg
  • i3
  • git
  • pacman -Syu virtualbox-guest-utils(VBox内的增强功能[VBox使用])
  • uRxvt(轻量级终端)
  • wget
  • wqy-microhei(中文字体)
  • adobe-source-code-pro-fonts
  • feh(背景)
  • neofetch(系统信息)
  • nerd-fonts-source-code-pro-fonts(增强的 source-code-pro,配合i3blocks)[已删除,改为 Font Awesome]
  • apci(电源管理)
  • nnn(终端文件管理器)
  • mpd(音乐播放器服务端)
  • mpc(可以控制 mpd的简单操作,可选)
  • ncmpcpp(音乐播放器客户端)
  • alsa-utils(声卡控制)
  • yay
  • dmenu(程序启动器) rofi 替换
  • w3m(在neofetch中显示图片Logo)
  • htop
  • gparted (图形化分区工具)
  • android-file-transfer(MTP管理工具[图形化])
  • i3lock-fancy(i3lock增强工具)
  • cowsay(ASCII动物说话)
  • polybar(top栏)
  • gisto(gits管理工具)
  • VBob(虚拟机)
  • chromium(浏览器,chrome收集会用户数据)
  • v2ray(科学上网)
  • Atom
  • gVIM(VIM的X环境支持说明)
  • ccat (cat彩色输出)
  • mpv(多媒体播放器)
  • mdv(Styled Terminal Markdown Viewer)
  • tree
  • nerd-fonts-dejavu-complete(字体,配合在 uRxvt中的 vim使用 vim-devicons)
  • VSCode
  • Inconsolata Nerd (同 nerd-fonts-dejavu-complete一样配合 uRxvt,当前使用)
  • Python3 python-pip
  • Python2 python2-pip
  • sublime text 3(官方源安装)
  • sublime merge(git管理工具)
  • scrot (截图工具)
  • deepin-file-manager(深度文件管理器) 改为 nemo 装插件时发现 Caja,除了插件与 nemo差不多,ZH
  • papirus-icon-theme(papirus图标)
  • gtk-engines(GTK+ 2.x)
  • lxappearance (GTK图标、主题、字体等等的 GUI调整工具)
  • flat-remix-gtk(GTK主题:From)
  • lxrandr(xrandr的简单 GUI形式,管理多屏幕)
  • bluez(蓝牙协议栈的守护进程,蓝牙相关安装:archwiki)
  • Compton (透明度,用来解决撕裂问题,配置默认,撕裂问题:#661,物理机没用到,虚拟机 gnome-shell透明度)

  1. uRxvt 终端,vim插件:vim-devicons ,图标显示空白框问题:
  1. nemo 插件: https://blog.einverne.info/post/2018/08/nemo-file-manager.html
# See: /usr/share/doc/mpd/mpdconf.example
# pid_file "/run/mpd/mpd.pid"
# db_file "/var/lib/mpd/mpd.db"
# state_file "/var/lib/mpd/mpdstate"
# playlist_directory "/var/lib/mpd/playlists"
# ============ 使用绝对路径 ==========
pid_file "/root/.mpd/mpd.pid"
db_file "/root/.mpd/mpd.db"
state_file "/root/.mpd/mpdstate"
playlist_directory "/root/.mpd/playlists"
music_directory "/root/Musics"
bind_to_address "localhost"
port "6600"
audio_output {
type "alsa"
name "ALSA sound card"
}
audio_output {
type "fifo"
name "my_fifo"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
# ============= .ncmpcpp/config ================
# ============= 注意文件名要修改 ===================
# 使用:
# 安装 mpc
# mpc update
# mpc listall | mpc add
ncmpcpp_directory = "~/.ncmpcpp"
mpd_host = "localhost"
mpd_port = "6600"
mpd_music_dir = "~/Musics"
# ========== bar ==========
progressbar_look = "━■"
titles_visibility = "yes"
follow_now_playing_lyrics = yes
# ========= 歌词 ============
lyrics_directory = ~/.lyrics
# lyrics_fetchers = ~/.lyrics
# ========== 格式 =========
song_window_title_format= "{$4$b%a} {$4$b%t}|{%f} {$4$b%n} {$4$b%b} {$4$b%l}"
song_columns_list_format= "(20)[yellow]{a} (40)[86]{t|f} (5)[41]{nE} (10)[default]{lr}
# song_list_format = "{$4$b%a} {$4$b%t} {$4$b%n} {$4$b%b} {$4$b%l}"
# song_status_format =
# song_library_format=
browser_sort_mode = mtime
# browser_sort_format = {%a - } {%t}|{%f} {%y} {(%l)}
# ========== 可视化 ======
visualizer_type = spectrum
visualizer_look = ●▮
# ========== Color ========
colors_enabled = yes
header_window_color = default
volume_color = 44
state_line_color = default
main_window_color = 205_transparent
progressbar_color = black:b
progressbar_elapsed_color = 40:b
statusbar_time_color = 43:b
# ============ 其他 ===========
# external_editor = vim
search_engine_default_search_mode = 2
display_bitrate = yes
# 锁定屏幕的默认宽度(以%为单位)。可接受的值为20到80
locked_screen_width_part = 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment