From a1b2738049ecbdc0b385602f6f6ef96d8c8ce9b1 Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 26 Jun 2023 07:39:58 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=BA=9B=E5=B8=B8?= =?UTF-8?q?=E7=94=A8=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 ++ home/.Xmodmap | 9 +++ home/.bashrc | 66 +++++++++++++++++++ .../.config}/alacritty/alacritty.yml | 0 home/.config/fcitx5/config | 62 +++++++++++++++++ home/.config/fcitx5/profile | 22 +++++++ home/.inputrc | 2 + 7 files changed, 168 insertions(+) create mode 100644 home/.Xmodmap create mode 100644 home/.bashrc rename {.config => home/.config}/alacritty/alacritty.yml (100%) create mode 100644 home/.config/fcitx5/config create mode 100644 home/.config/fcitx5/profile create mode 100644 home/.inputrc diff --git a/README.md b/README.md index ff4a86d..bd905f1 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,10 @@ sudo apt install i3 ly xserver-xorg picom polybar rofi feh - `polybar` 状态栏 - `rofi` 应用启动器 - `feh` 壁纸设置器 + + +### 一些系统配置 + +- `.Xmodmap` 键盘按键映射文件, 用于修改键盘按键。 我这里主要是调换`Super`和`Alt`键, 并把`大写键`改成一个用不到的日文键, 拿来做输入法切换。 +- `.bashrc` bash的配置 +- `.inputrc` 对文本输入的一些简单配置, 仅对使用`bash`时有效。 \ No newline at end of file diff --git a/home/.Xmodmap b/home/.Xmodmap new file mode 100644 index 0000000..f91135e --- /dev/null +++ b/home/.Xmodmap @@ -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 \ No newline at end of file diff --git a/home/.bashrc b/home/.bashrc new file mode 100644 index 0000000..d1219ee --- /dev/null +++ b/home/.bashrc @@ -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 \ No newline at end of file diff --git a/.config/alacritty/alacritty.yml b/home/.config/alacritty/alacritty.yml similarity index 100% rename from .config/alacritty/alacritty.yml rename to home/.config/alacritty/alacritty.yml diff --git a/home/.config/fcitx5/config b/home/.config/fcitx5/config new file mode 100644 index 0000000..baf8473 --- /dev/null +++ b/home/.config/fcitx5/config @@ -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 \ No newline at end of file diff --git a/home/.config/fcitx5/profile b/home/.config/fcitx5/profile new file mode 100644 index 0000000..af51f14 --- /dev/null +++ b/home/.config/fcitx5/profile @@ -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 \ No newline at end of file diff --git a/home/.inputrc b/home/.inputrc new file mode 100644 index 0000000..5fbcc92 --- /dev/null +++ b/home/.inputrc @@ -0,0 +1,2 @@ +set completion-ignore-case on +TAB: menu-complete \ No newline at end of file