Added Chinese input
This commit is contained in:
parent
97536e9679
commit
6e3378ccc3
4 changed files with 375 additions and 16 deletions
|
|
@ -32,15 +32,29 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||||
unset f
|
unset f
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#NixOS does not setup the user's D-Bus Daemon, so doing it explicitly here
|
||||||
|
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
|
||||||
|
eval $(dbus-launch --exit-with-session --sh-syntax)
|
||||||
|
fi
|
||||||
|
syustemctl --user import-environment DISPLAY XAUTHORITY
|
||||||
|
if command -v dbus-update-activation-environment >/dev/null 2>&1; then
|
||||||
|
dbus-update-activation-environment DISPLAY XAUTHORITY
|
||||||
|
fi
|
||||||
|
|
||||||
# Some x stuff
|
# Some x stuff
|
||||||
xrandr --setprovideroutputsource modesetting NVIDIA-0
|
# xrandr --setprovideroutputsource modesetting NVIDIA-0
|
||||||
xrandr --auto
|
xrandr --auto
|
||||||
xset r rate 300 50
|
xset r rate 300 50
|
||||||
|
|
||||||
feh --bg-scale --no-fehbg ~/.config/wallpaper
|
# Need to source environment before starting fcitx5 so that it can
|
||||||
picom -b
|
# read the *_IM_MODULE and XMODIFIER variables.
|
||||||
fcitx -d &
|
source ~/.config/zsh/.zshenv
|
||||||
sxhkd &
|
kill $(pidof fcitx5) 2>/dev/null
|
||||||
exec dwm
|
fcitx5 -d
|
||||||
dwmblocks
|
|
||||||
|
feh --bg-fill --no-fehbg ~/.config/wallpaper
|
||||||
|
picom -b
|
||||||
|
sxhkd &
|
||||||
|
dwmblocks &
|
||||||
|
exec dwm
|
||||||
|
|
||||||
|
|
|
||||||
27
.config/fcitx5/conf/classicui.conf
Normal file
27
.config/fcitx5/conf/classicui.conf
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
# Vertical Candidate List
|
||||||
|
Vertical Candidate List=False
|
||||||
|
# Use Per Screen DPI
|
||||||
|
PerScreenDPI=True
|
||||||
|
# Use mouse wheel to go to prev or next page
|
||||||
|
WheelForPaging=True
|
||||||
|
# Font
|
||||||
|
Font="Sans 15"
|
||||||
|
# Menu Font
|
||||||
|
MenuFont="Sans 15"
|
||||||
|
# Tray Font
|
||||||
|
TrayFont="Sans Bold 15"
|
||||||
|
# Tray Label Outline Color
|
||||||
|
TrayOutlineColor=#000000
|
||||||
|
# Tray Label Text Color
|
||||||
|
TrayTextColor=#ffffff
|
||||||
|
# Prefer Text Icon
|
||||||
|
PreferTextIcon=False
|
||||||
|
# Show Layout Name In Icon
|
||||||
|
ShowLayoutNameInIcon=True
|
||||||
|
# Use input method language to display text
|
||||||
|
UseInputMethodLangaugeToDisplayText=True
|
||||||
|
# Theme
|
||||||
|
Theme=vince
|
||||||
|
# Force font DPI on Wayland
|
||||||
|
ForceWaylandDPI=0
|
||||||
|
|
||||||
|
|
@ -50,7 +50,16 @@
|
||||||
|
|
||||||
i18n = {
|
i18n = {
|
||||||
defaultLocale = "en_US.UTF-8";
|
defaultLocale = "en_US.UTF-8";
|
||||||
inputMethod.enabled = "fcitx5";
|
inputMethod = {
|
||||||
|
# Have to install fcitx5 through here so that the binary is patched to be able to see the addons.
|
||||||
|
# If also installed through system packages, the binary without addonds will take precedence.
|
||||||
|
enabled = "fcitx5";
|
||||||
|
fcitx5.addons = with pkgs; [
|
||||||
|
fcitx5-configtool
|
||||||
|
fcitx5-rime
|
||||||
|
fcitx5-chinese-addons
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
# console = {
|
# console = {
|
||||||
# font = "Lat2-Terminus16";
|
# font = "Lat2-Terminus16";
|
||||||
|
|
@ -86,12 +95,25 @@
|
||||||
hardware.pulseaudio.enable = true;
|
hardware.pulseaudio.enable = true;
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.vince = {
|
users = {
|
||||||
|
mutableUsers = true;
|
||||||
|
users = {
|
||||||
|
vince = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" ];
|
extraGroups = [ "wheel" ];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
];
|
];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
|
|
||||||
|
# Set so when mutableUsers is set to "false", the user still has a way to login.
|
||||||
|
password = "";
|
||||||
|
};
|
||||||
|
root = {
|
||||||
|
# Disables root login, since nothing can hash to "!". Requires setting mutableUsers to "false",
|
||||||
|
# rebuilding, and then setting mutableUsers back to "true".
|
||||||
|
hashedPassword = "!";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
|
|
@ -101,8 +123,6 @@
|
||||||
bat # Fancy `cat` which I use for lf
|
bat # Fancy `cat` which I use for lf
|
||||||
devour # Opens new program on top of terminal
|
devour # Opens new program on top of terminal
|
||||||
dunst # Notification daemon
|
dunst # Notification daemon
|
||||||
fcitx5-configtool # GUI config tool for fcitx5
|
|
||||||
fcitx5 # Foreign keyboard switcher
|
|
||||||
feh # Image viewer I use for background setting
|
feh # Image viewer I use for background setting
|
||||||
git # Imagine not having this
|
git # Imagine not having this
|
||||||
htop # Process monitor
|
htop # Process monitor
|
||||||
|
|
@ -119,7 +139,9 @@
|
||||||
rofi-pass # Rofi frontend for password store
|
rofi-pass # Rofi frontend for password store
|
||||||
sxhkd # Hotkey daemon
|
sxhkd # Hotkey daemon
|
||||||
syncthing # Syncing files between machines
|
syncthing # Syncing files between machines
|
||||||
|
texlive.combined.scheme-full # LaTeX to create documents
|
||||||
tmux # Terminal multiplexor
|
tmux # Terminal multiplexor
|
||||||
|
typst # Cool, minimal LaTeX alternative
|
||||||
ueberzugpp # Terminal image overlayer
|
ueberzugpp # Terminal image overlayer
|
||||||
zathura # Pdf editor
|
zathura # Pdf editor
|
||||||
zsh # Shell
|
zsh # Shell
|
||||||
|
|
@ -173,6 +195,8 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts.fonts = with pkgs; [
|
fonts.fonts = with pkgs; [
|
||||||
|
source-han-sans
|
||||||
|
source-han-serif
|
||||||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
294
.local/share/fcitx5/themes/vince/theme.conf
Normal file
294
.local/share/fcitx5/themes/vince/theme.conf
Normal file
|
|
@ -0,0 +1,294 @@
|
||||||
|
[Metadata]
|
||||||
|
# 名称
|
||||||
|
Name=gruvbox
|
||||||
|
# 版本
|
||||||
|
Version=2.2
|
||||||
|
# 作者
|
||||||
|
Author=Pu
|
||||||
|
# 描述
|
||||||
|
Description="gruvbox for fcitx5"
|
||||||
|
# 根据屏幕 DPI 缩放
|
||||||
|
ScaleWithDPI=True
|
||||||
|
|
||||||
|
[General]
|
||||||
|
# 托盘字体
|
||||||
|
TrayFont="Sans 13"
|
||||||
|
|
||||||
|
[InputPanel]
|
||||||
|
# 字体
|
||||||
|
Font="Sans 11"
|
||||||
|
# 一般文字颜色
|
||||||
|
NormalColor=#ebdbb2
|
||||||
|
# 高亮候选词颜色
|
||||||
|
HighlightCandidateColor=#282828
|
||||||
|
# KWin 下启用模糊
|
||||||
|
EnableBlur=False
|
||||||
|
# 竖排列表时使用所有横向空间高亮
|
||||||
|
FullWidthHighlight=True
|
||||||
|
# 高亮文字颜色
|
||||||
|
HighlightColor=#ebdbb2
|
||||||
|
# 高亮背景颜色
|
||||||
|
HighlightBackgroundColor=#282828
|
||||||
|
|
||||||
|
[InputPanel/Background]
|
||||||
|
# 颜色
|
||||||
|
Color=#282828
|
||||||
|
# 边框颜色
|
||||||
|
BorderColor=#8ec07c
|
||||||
|
# 边框宽度
|
||||||
|
BorderWidth=1
|
||||||
|
|
||||||
|
[InputPanel/Background/Margin]
|
||||||
|
# 左边距
|
||||||
|
Left=2
|
||||||
|
# 右侧边距
|
||||||
|
Right=2
|
||||||
|
# 顶部边距
|
||||||
|
Top=2
|
||||||
|
# 底部边距
|
||||||
|
Bottom=2
|
||||||
|
|
||||||
|
[InputPanel/Background/OverlayClipMargin]
|
||||||
|
# 左边距
|
||||||
|
Left=0
|
||||||
|
# 右侧边距
|
||||||
|
Right=0
|
||||||
|
# 顶部边距
|
||||||
|
Top=0
|
||||||
|
# 底部边距
|
||||||
|
Bottom=0
|
||||||
|
|
||||||
|
[InputPanel/Highlight]
|
||||||
|
# 颜色
|
||||||
|
Color=#68976a
|
||||||
|
|
||||||
|
[InputPanel/Highlight/Margin]
|
||||||
|
# 左边距
|
||||||
|
Left=5
|
||||||
|
# 右侧边距
|
||||||
|
Right=5
|
||||||
|
# 顶部边距
|
||||||
|
Top=5
|
||||||
|
# 底部边距
|
||||||
|
Bottom=5
|
||||||
|
|
||||||
|
[InputPanel/Highlight/OverlayClipMargin]
|
||||||
|
# 左边距
|
||||||
|
Left=0
|
||||||
|
# 右侧边距
|
||||||
|
Right=0
|
||||||
|
# 顶部边距
|
||||||
|
Top=0
|
||||||
|
# 底部边距
|
||||||
|
Bottom=0
|
||||||
|
|
||||||
|
[InputPanel/Highlight/HighlightClickMargin]
|
||||||
|
# 左边距
|
||||||
|
Left=0
|
||||||
|
# 右侧边距
|
||||||
|
Right=0
|
||||||
|
# 顶部边距
|
||||||
|
Top=0
|
||||||
|
# 底部边距
|
||||||
|
Bottom=0
|
||||||
|
|
||||||
|
[InputPanel/ContentMargin]
|
||||||
|
# 左边距
|
||||||
|
Left=2
|
||||||
|
# 右侧边距
|
||||||
|
Right=2
|
||||||
|
# 顶部边距
|
||||||
|
Top=2
|
||||||
|
# 底部边距
|
||||||
|
Bottom=2
|
||||||
|
|
||||||
|
[InputPanel/TextMargin]
|
||||||
|
# 左边距
|
||||||
|
Left=5
|
||||||
|
# 右侧边距
|
||||||
|
Right=5
|
||||||
|
# 顶部边距
|
||||||
|
Top=5
|
||||||
|
# 底部边距
|
||||||
|
Bottom=5
|
||||||
|
|
||||||
|
[InputPanel/PrevPage/ClickMargin]
|
||||||
|
# 左边距
|
||||||
|
Left=5
|
||||||
|
# 右侧边距
|
||||||
|
Right=5
|
||||||
|
# 顶部边距
|
||||||
|
Top=4
|
||||||
|
# 底部边距
|
||||||
|
Bottom=4
|
||||||
|
|
||||||
|
[InputPanel/NextPage/ClickMargin]
|
||||||
|
# 左边距
|
||||||
|
Left=5
|
||||||
|
# 右侧边距
|
||||||
|
Right=5
|
||||||
|
# 顶部边距
|
||||||
|
Top=4
|
||||||
|
# 底部边距
|
||||||
|
Bottom=4
|
||||||
|
|
||||||
|
[InputPanel/BlurMargin]
|
||||||
|
# 左边距
|
||||||
|
Left=0
|
||||||
|
# 右侧边距
|
||||||
|
Right=0
|
||||||
|
# 顶部边距
|
||||||
|
Top=0
|
||||||
|
# 底部边距
|
||||||
|
Bottom=0
|
||||||
|
|
||||||
|
[Menu]
|
||||||
|
# 一般文字颜色
|
||||||
|
NormalColor=#ebdbb2
|
||||||
|
# 高亮候选词颜色
|
||||||
|
HighlightCandidateColor=#282828
|
||||||
|
# 间隔
|
||||||
|
Spacing=1
|
||||||
|
|
||||||
|
[Menu/Background]
|
||||||
|
# 颜色
|
||||||
|
Color=#282828
|
||||||
|
# 边框颜色
|
||||||
|
BorderColor=#a89984
|
||||||
|
# 边框宽度
|
||||||
|
BorderWidth=1
|
||||||
|
|
||||||
|
[Menu/Background/Margin]
|
||||||
|
# 左边距
|
||||||
|
Left=10
|
||||||
|
# 右侧边距
|
||||||
|
Right=10
|
||||||
|
# 顶部边距
|
||||||
|
Top=10
|
||||||
|
# 底部边距
|
||||||
|
Bottom=10
|
||||||
|
|
||||||
|
[Menu/Background/OverlayClipMargin]
|
||||||
|
# 左边距
|
||||||
|
Left=0
|
||||||
|
# 右侧边距
|
||||||
|
Right=0
|
||||||
|
# 顶部边距
|
||||||
|
Top=0
|
||||||
|
# 底部边距
|
||||||
|
Bottom=0
|
||||||
|
|
||||||
|
[Menu/Highlight]
|
||||||
|
# 颜色
|
||||||
|
Color=#68976a
|
||||||
|
|
||||||
|
[Menu/Highlight/Margin]
|
||||||
|
# 左边距
|
||||||
|
Left=0
|
||||||
|
# 右侧边距
|
||||||
|
Right=0
|
||||||
|
# 顶部边距
|
||||||
|
Top=0
|
||||||
|
# 底部边距
|
||||||
|
Bottom=0
|
||||||
|
|
||||||
|
[Menu/Highlight/OverlayClipMargin]
|
||||||
|
# 左边距
|
||||||
|
Left=0
|
||||||
|
# 右侧边距
|
||||||
|
Right=0
|
||||||
|
# 顶部边距
|
||||||
|
Top=0
|
||||||
|
# 底部边距
|
||||||
|
Bottom=0
|
||||||
|
|
||||||
|
[Menu/Separator]
|
||||||
|
Image=separator-aqua.png
|
||||||
|
|
||||||
|
[Menu/Separator/Margin]
|
||||||
|
# 左边距
|
||||||
|
Left=0
|
||||||
|
# 右侧边距
|
||||||
|
Right=0
|
||||||
|
# 顶部边距
|
||||||
|
Top=0
|
||||||
|
# 底部边距
|
||||||
|
Bottom=0
|
||||||
|
|
||||||
|
[Menu/Separator/OverlayClipMargin]
|
||||||
|
# 左边距
|
||||||
|
Left=0
|
||||||
|
# 右侧边距
|
||||||
|
Right=0
|
||||||
|
# 顶部边距
|
||||||
|
Top=0
|
||||||
|
# 底部边距
|
||||||
|
Bottom=0
|
||||||
|
|
||||||
|
[Menu/CheckBox]
|
||||||
|
Image=radio.png
|
||||||
|
|
||||||
|
[Menu/CheckBox/Margin]
|
||||||
|
# 左边距
|
||||||
|
Left=0
|
||||||
|
# 右侧边距
|
||||||
|
Right=0
|
||||||
|
# 顶部边距
|
||||||
|
Top=0
|
||||||
|
# 底部边距
|
||||||
|
Bottom=0
|
||||||
|
|
||||||
|
[Menu/CheckBox/OverlayClipMargin]
|
||||||
|
# 左边距
|
||||||
|
Left=0
|
||||||
|
# 右侧边距
|
||||||
|
Right=0
|
||||||
|
# 顶部边距
|
||||||
|
Top=0
|
||||||
|
# 底部边距
|
||||||
|
Bottom=0
|
||||||
|
|
||||||
|
[Menu/SubMenu]
|
||||||
|
# 颜色
|
||||||
|
Color=#ebdbb2
|
||||||
|
Image=arrow.png
|
||||||
|
|
||||||
|
[Menu/SubMenu/Margin]
|
||||||
|
# 左边距
|
||||||
|
Left=0
|
||||||
|
# 右侧边距
|
||||||
|
Right=0
|
||||||
|
# 顶部边距
|
||||||
|
Top=0
|
||||||
|
# 底部边距
|
||||||
|
Bottom=0
|
||||||
|
|
||||||
|
[Menu/SubMenu/OverlayClipMargin]
|
||||||
|
# 左边距
|
||||||
|
Left=0
|
||||||
|
# 右侧边距
|
||||||
|
Right=0
|
||||||
|
# 顶部边距
|
||||||
|
Top=0
|
||||||
|
# 底部边距
|
||||||
|
Bottom=0
|
||||||
|
|
||||||
|
[Menu/ContentMargin]
|
||||||
|
# 左边距
|
||||||
|
Left=2
|
||||||
|
# 右侧边距
|
||||||
|
Right=2
|
||||||
|
# 顶部边距
|
||||||
|
Top=2
|
||||||
|
# 底部边距
|
||||||
|
Bottom=2
|
||||||
|
|
||||||
|
[Menu/TextMargin]
|
||||||
|
# 左边距
|
||||||
|
Left=2
|
||||||
|
# 右侧边距
|
||||||
|
Right=2
|
||||||
|
# 顶部边距
|
||||||
|
Top=2
|
||||||
|
# 底部边距
|
||||||
|
Bottom=2
|
||||||
Loading…
Add table
Add a link
Reference in a new issue