增加一些常用配置

i3
yutent 2023-06-26 07:39:58 +00:00
parent 352102f998
commit a1b2738049
7 changed files with 168 additions and 0 deletions

View File

@ -13,3 +13,10 @@ sudo apt install i3 ly xserver-xorg picom polybar rofi feh
- `polybar` 状态栏 - `polybar` 状态栏
- `rofi` 应用启动器 - `rofi` 应用启动器
- `feh` 壁纸设置器 - `feh` 壁纸设置器
### 一些系统配置
- `.Xmodmap` 键盘按键映射文件, 用于修改键盘按键。 我这里主要是调换`Super`和`Alt`键, 并把`大写键`改成一个用不到的日文键, 拿来做输入法切换。
- `.bashrc` bash的配置
- `.inputrc` 对文本输入的一些简单配置, 仅对使用`bash`时有效。

9
home/.Xmodmap Normal file
View File

@ -0,0 +1,9 @@
clear mod1
clear mod4
keycode 133 = Alt_L Meta_L Alt_L Meta_L
keycode 64 = Super_L NoSymbol Super_L
keycode 66 = Eisu_toggle Caps_Lock
clear Lock
add mod1 = Alt_L Meta_L
add mod4 = Super_L Super_L

66
home/.bashrc Normal file
View File

@ -0,0 +1,66 @@
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=20000
HISTFILESIZE=20000
export HISTTIMEFORMAT="[%F %T] "
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
PS1='\[\e[1;40m\]\[\e[31m\]  \[\e[m\]\[\e[44m\]\[\e[30m\]\[\e[m\]\[\e[44m\] \w \[\e[m\]\[\e[34m\]\[\e[m\]\[\e[31m\]$(__git_ps1)\[\e[m\] '
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
alias ll='ls -lh --time-style=+%Y.%m.%d_%H:%M'
alias la='ll -a'
alias l='ll'
export HTTP_PROXY="http://127.0.0.1:7890"
export HTTPS_PROXY="http://127.0.0.1:7890"
export ALL_PROXY="socks5://127.0.0.1:7890"
export http_proxy="http://127.0.0.1:7890"
export https_proxy="http://127.0.0.1:7890"
export all_proxy="socks5://127.0.0.1:7890"
export no_proxy="intel-nuc.local,localhost,127.0.0.1,::1"
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi

View File

@ -0,0 +1,62 @@
[Hotkey]
# Enumerate when press trigger key repeatedly
EnumerateWithTriggerKeys=True
# Temporally switch between first and current Input Method
AltTriggerKeys=
# Enumerate Input Method Forward
EnumerateForwardKeys=
# Enumerate Input Method Backward
EnumerateBackwardKeys=
# Skip first input method while enumerating
EnumerateSkipFirst=False
# Enumerate Input Method Group Forward
EnumerateGroupForwardKeys=
# Enumerate Input Method Group Backward
EnumerateGroupBackwardKeys=
# Activate Input Method
ActivateKeys=
# Deactivate Input Method
DeactivateKeys=
# Default Previous Candidate
PrevCandidate=
# Default Next Candidate
NextCandidate=
# Toggle embedded preedit
TogglePreedit=
[Hotkey/TriggerKeys]
0=Eisu_toggle
[Hotkey/PrevPage]
0=Up
[Hotkey/NextPage]
0=Down
[Behavior]
# Active By Default
ActiveByDefault=False
# Share Input State
ShareInputState=No
# Show preedit in application
PreeditEnabledByDefault=True
# Show Input Method Information when switch input method
ShowInputMethodInformation=False
# Show Input Method Information when changing focus
showInputMethodInformationWhenFocusIn=False
# Show compact input method information
CompactInputMethodInformation=False
# Show first input method information
ShowFirstInputMethodInformation=False
# Default page size
DefaultPageSize=5
# Override Xkb Option
OverrideXkbOption=False
# Custom Xkb Option
CustomXkbOption=
# Force Enabled Addons
EnabledAddons=
# Force Disabled Addons
DisabledAddons=
# Preload input method to be used by default
PreloadInputMethod=True

View File

@ -0,0 +1,22 @@
[Groups/0]
# Group Name
Name=Default
# Layout
Default Layout=us
# Default Input Method
DefaultIM=wbx
[Groups/0/Items/0]
# Name
Name=keyboard-us
# Layout
Layout=
[Groups/0/Items/1]
# Name
Name=wbx
# Layout
Layout=
[GroupOrder]
0=Default

2
home/.inputrc Normal file
View File

@ -0,0 +1,2 @@
set completion-ignore-case on
TAB: menu-complete