diff --git a/programs b/programs index c7ca9e6..f1e7aca 100644 --- a/programs +++ b/programs @@ -69,6 +69,10 @@ which dnsutils man-pages zoxide +# IME input +fcitx5 +fcitx5-chinese-addons +fcitx5-configtool # in the aur tmsu diff --git a/src/.config/fcitx5/conf/chttrans.conf b/src/.config/fcitx5/conf/chttrans.conf new file mode 100644 index 0000000..c311fe6 --- /dev/null +++ b/src/.config/fcitx5/conf/chttrans.conf @@ -0,0 +1,12 @@ +# Translate engine +Engine=OpenCC +# Enabled Input Methods +EnabledIM= +# OpenCC profile for Simplified to Traditional +OpenCCS2TProfile=default +# OpenCC profile for Traditional to Simplified +OpenCCT2SProfile=default + +[Hotkey] +0=Control+Shift+F + diff --git a/src/.config/fcitx5/conf/classicui.conf b/src/.config/fcitx5/conf/classicui.conf new file mode 100644 index 0000000..43d6dc9 --- /dev/null +++ b/src/.config/fcitx5/conf/classicui.conf @@ -0,0 +1,35 @@ +# Vertical Candidate List +Vertical Candidate List=False +# Use mouse wheel to go to prev or next page +WheelForPaging=True +# Font +Font="WenQuanYi Micro Hei 12" +# Menu Font +MenuFont="Inter Display 10" +# Tray Font +TrayFont="Inter Display Demi-Bold 10" +# 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 +UseInputMethodLanguageToDisplayText=True +# Theme +Theme=default-dark +# Dark Theme +DarkTheme=default-dark +# Follow system light/dark color scheme +UseDarkTheme=False +# Follow system accent color if it is supported by theme and desktop +UseAccentColor=True +# Use Per Screen DPI on X11 +PerScreenDPI=False +# Force font DPI on Wayland +ForceWaylandDPI=0 +# Enable fractional scale under Wayland +EnableFractionalScale=True + diff --git a/src/.config/fcitx5/conf/cloudpinyin.conf b/src/.config/fcitx5/conf/cloudpinyin.conf new file mode 100644 index 0000000..9bd17cd --- /dev/null +++ b/src/.config/fcitx5/conf/cloudpinyin.conf @@ -0,0 +1,9 @@ +# Toggle Key +Toggle Key= +# Minimum Pinyin Length +MinimumPinyinLength=4 +# Backend +Backend=GoogleCN +# Proxy +Proxy= + diff --git a/src/.config/fcitx5/conf/notifications.conf b/src/.config/fcitx5/conf/notifications.conf new file mode 100644 index 0000000..6e7d1b9 --- /dev/null +++ b/src/.config/fcitx5/conf/notifications.conf @@ -0,0 +1,3 @@ +# Hidden Notifications +HiddenNotifications= + diff --git a/src/.config/fcitx5/conf/pinyin.conf b/src/.config/fcitx5/conf/pinyin.conf new file mode 100644 index 0000000..ed5b775 --- /dev/null +++ b/src/.config/fcitx5/conf/pinyin.conf @@ -0,0 +1,133 @@ +# Shuangpin Profile +ShuangpinProfile=Ziranma +# Show current shuangpin mode +ShowShuangpinMode=True +# Page size +PageSize=7 +# Enable Spell +SpellEnabled=True +# Enable Symbols +SymbolsEnabled=True +# Enable Chaizi +ChaiziEnabled=True +# Enable Characters in Unicode CJK Extension B +ExtBEnabled=True +# Enable Cloud Pinyin +CloudPinyinEnabled=False +# Cloud Pinyin Index +CloudPinyinIndex=2 +# Show animation when Cloud Pinyin is loading +CloudPinyinAnimation=True +# Always show Cloud Pinyin place holder +KeepCloudPinyinPlaceHolder=False +# Preedit Mode +PreeditMode="Composing pinyin" +# Fix embedded preedit cursor at the beginning of the preedit +PreeditCursorPositionAtBeginning=True +# Show complete pinyin in preedit +PinyinInPreedit=False +# Enable Prediction +Prediction=False +# Prediction Size +PredictionSize=49 +# Action when switching input method +SwitchInputMethodBehavior="Commit current preedit" +# Select 2nd Candidate +SecondCandidate= +# Select 3rd Candidate +ThirdCandidate= +# Use Keypad as Selection key +UseKeypadAsSelection=False +# Use BackSpace to cancel the selection +BackSpaceToUnselect=True +# Number of Sentences +Number of sentence=2 +# Prompt long word length when input length over (0 for disable) +LongWordLengthLimit=4 +# Key to trigger quickphrase +QuickPhraseKey=semicolon +# Use V to trigger quickphrase +VAsQuickphrase=True +# FirstRun +FirstRun=False + +[ForgetWord] +0=Control+7 + +[PrevPage] +0=minus +1=Up +2=Control+K +3=Page_Up + +[NextPage] +0=equal +1=Control+J +2=KP_Down +3=Next + +[PrevCandidate] +0=Shift+Tab + +[NextCandidate] +0=Tab + +[ChooseCharFromPhrase] +0=bracketleft +1=bracketright + +[FilterByStroke] +0=grave + +[QuickPhrase trigger] +0=www. +1=ftp. +2=http: +3=mail. +4=bbs. +5=forum. +6=https: +7=ftp: +8=telnet: +9=mailto: + +[Fuzzy] +# ue -> ve +VE_UE=True +# Common Typo +NG_GN=True +# Inner Segment (xian -> xi'an) +Inner=True +# Inner Segment for Short Pinyin (qie -> qi'e) +InnerShort=True +# Match partial finals (e -> en, eng, ei) +PartialFinal=True +# Match partial shuangpin if input length is longer than 4 +PartialSp=False +# u <-> v +V_U=False +# an <-> ang +AN_ANG=False +# en <-> eng +EN_ENG=False +# ian <-> iang +IAN_IANG=False +# in <-> ing +IN_ING=False +# u <-> ou +U_OU=False +# uan <-> uang +UAN_UANG=False +# c <-> ch +C_CH=False +# f <-> h +F_H=False +# l <-> n +L_N=False +# s <-> sh +S_SH=False +# z <-> zh +Z_ZH=False +# Correction Layout +Correction=None + diff --git a/src/.config/fcitx5/conf/punctuation.conf b/src/.config/fcitx5/conf/punctuation.conf new file mode 100644 index 0000000..d7a00a0 --- /dev/null +++ b/src/.config/fcitx5/conf/punctuation.conf @@ -0,0 +1,10 @@ +# Half width punctuation after latin letter or number +HalfWidthPuncAfterLetterOrNumber=True +# Type paired punctuations together (e.g. Quote) +TypePairedPunctuationsTogether=False +# Enabled +Enabled=True + +[Hotkey] +0=Control+period + diff --git a/src/.config/fcitx5/conf/xcb.conf b/src/.config/fcitx5/conf/xcb.conf new file mode 100644 index 0000000..9d36cfd --- /dev/null +++ b/src/.config/fcitx5/conf/xcb.conf @@ -0,0 +1,5 @@ +# Allow Overriding System XKB Settings +Allow Overriding System XKB Settings=False +# Always set layout to be only group layout +AlwaysSetToGroupLayout=True + diff --git a/src/.config/fcitx5/config b/src/.config/fcitx5/config new file mode 100644 index 0000000..8bd33b4 --- /dev/null +++ b/src/.config/fcitx5/config @@ -0,0 +1,81 @@ +[Hotkey] +# Enumerate when press trigger key repeatedly +EnumerateWithTriggerKeys=True +# Enumerate Input Method Forward +EnumerateForwardKeys= +# Enumerate Input Method Backward +EnumerateBackwardKeys= +# Skip first input method while enumerating +EnumerateSkipFirst=False + +[Hotkey/TriggerKeys] +0=Control+space +1=Zenkaku_Hankaku +2=Hangul + +[Hotkey/AltTriggerKeys] +0=Shift_L + +[Hotkey/EnumerateGroupForwardKeys] +0=Super+space + +[Hotkey/EnumerateGroupBackwardKeys] +0=Shift+Super+space + +[Hotkey/ActivateKeys] +0=Hangul_Hanja + +[Hotkey/DeactivateKeys] +0=Hangul_Romaja + +[Hotkey/PrevPage] +0=Up + +[Hotkey/NextPage] +0=Down + +[Hotkey/PrevCandidate] +0=Shift+Tab + +[Hotkey/NextCandidate] +0=Tab + +[Hotkey/TogglePreedit] +0=Control+Alt+P + +[Behavior] +# Active By Default +ActiveByDefault=False +# Reset state on Focus In +resetStateWhenFocusIn=No +# Share Input State +ShareInputState=No +# Show preedit in application +PreeditEnabledByDefault=True +# Show Input Method Information when switch input method +ShowInputMethodInformation=True +# Show Input Method Information when changing focus +showInputMethodInformationWhenFocusIn=False +# Show compact input method information +CompactInputMethodInformation=True +# Show first input method information +ShowFirstInputMethodInformation=True +# 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 +# Allow input method in the password field +AllowInputMethodForPassword=False +# Show preedit text when typing password +ShowPreeditForPassword=False +# Interval of saving user data in minutes +AutoSavePeriod=30 + diff --git a/src/.config/fcitx5/profile b/src/.config/fcitx5/profile new file mode 100644 index 0000000..a28b809 --- /dev/null +++ b/src/.config/fcitx5/profile @@ -0,0 +1,29 @@ +[Groups/0] +# Group Name +Name=Default +# Layout +Default Layout=us +# Default Input Method +DefaultIM=pinyin + +[Groups/0/Items/0] +# Name +Name=keyboard-us +# Layout +Layout= + +[Groups/0/Items/1] +# Name +Name=keyboard-ca +# Layout +Layout= + +[Groups/0/Items/2] +# Name +Name=pinyin +# Layout +Layout= + +[GroupOrder] +0=Default + diff --git a/src/.config/xinitrc b/src/.config/xinitrc index 3cdaa31..dd68796 100644 --- a/src/.config/xinitrc +++ b/src/.config/xinitrc @@ -29,12 +29,16 @@ export DBUS_SESSION_BUS_WINDOWID export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx # for some reason this breaks deadkeys -#export XMODIFIERS=@im=fcitx +export XMODIFIERS=@im=fcitx # set up keyboard keyboard.sh export XCOMPOSEFILE="$XDG_CONFIG_HOME"/xcompose/main +if command -v fcitx5 > /dev/null; then + fcitx5 & +fi + while true; do DATE=$(date +'%H:%M:%S %a %b %d') #TEMP="$(($(cat /sys/class/thermal/thermal_zone0/temp) / 1000))C"