--- /dev/null
+[Auto English]
+# Choose key modifier
+# Available Value:
+# None
+# Alt
+# Ctrl
+# Shift
+#ChooseModifier=Alt
+# Do not show spell hint
+# Available Value:
+# True False
+#DisableSpell=False
+# Maximum hint length
+#MaximumHintLength=2
+# Maximum words number kept in preedit
+#MaximumKeep=3
+# Add Extra space when selecting a candidate word
+# Available Value:
+# True False
+#SelectAddSpace=True
+
--- /dev/null
+[ClassicUI]
+# Status Panel Position X
+#MainWindowOffsetX=500
+# Status Panel Position Y
+#MainWindowOffsetY=40
+# Font Size
+#FontSize=0
+# Font
+#Font=Sans
+# Menu Font
+#MenuFont=Sans
+# Font Locale to display
+#FontLocale=zh_CN.UTF-8
+# Use System Tray Icon
+# Available Value:
+# True False
+#UseTray=True
+# Status Panel Hide Mode
+# Available Value:
+# Show
+# Auto
+# Hide when tray icon is available
+# Hide
+#MainWindowHideMode=Hide when tray icon is available
+# Vertical Candidate Word List
+# Available Value:
+# True False
+VerticalList=True
+# Skin Name
+#SkinType=default
+
--- /dev/null
+[Keyboard]
+# Commit with extra space when choose candidate word
+# Available Value:
+# True False
+#CommitWithExtraSpace=False
+# Choose key modifier
+# Available Value:
+# None
+# Alt
+# Ctrl
+# Shift
+#ChooseModifier=Alt
+# Toggle the word hint
+#HotkeyToggleWordHint=CTRL_ALT_H
+# Minimum length to trigger word hint
+#MinimumHintLength=1
+# Maximum length of spell hint list
+#MaximumHintLength=5
+# Use enter to commit the existing string
+# Available Value:
+# True False
+#UseEnterToCommit=False
+# Add current input buffer to user dictionary
+#HotkeyAddToUserDict=CTRL_ALT_N
+
--- /dev/null
+[M17N]
+# Prev Page
+#PrevPage=UP CTRL_P
+# Next Page
+#NextPage=DOWN CTRL_N
+# Enable deprecated Input method
+# Available Value:
+# True False
+#EnableDeprecated=False
+
--- /dev/null
+[Notify/Notify]
+HiddenNotify=
--- /dev/null
+[Spell Hint]
+# Preferred Enchant provider
+# Available Value:
+# Default
+# Aspell
+# Myspell
+#PreferredEnchantProvider=Myspell
+# Default Spell Hint Backends Order
+#HintProvidersOrder=presage,custom,enchant
+
--- /dev/null
+[Key]
+# Add Phrase
+AddPhrase=
+# Delete Phrase
+DeletePhrase=
+# Adjust Order
+AdjustOrder=
+# Clear Frequency
+#ClearFreq=
+# Lookup Pinyin
+LookupPinyin=
+
--- /dev/null
+[Unicode]
+# Key
+#Key=CTRL_ALT_SHIFT_U
+
--- /dev/null
+[Xim]
+# Use On The Spot Style for XIM (Cannot change during running)
+# Available Value:
+# True False
+#UseOnTheSpotStyle=False
+
--- /dev/null
+[X Keyboard]
+# Allow to Override System XKB Settings
+# Available Value:
+# True False
+#OverrideSystemXKBSettings=True
+# Use the layout of first keyboard input method in list as default layout
+# Available Value:
+# True False
+#UseFirstKeyboardIMAsDefaultLayout=True
+# xmodmap command
+#XModmapCommand=xmodmap
+# Apply this custom xmodmap script after layout change
+#CustomXModmapScript=
+
--- /dev/null
+[Hotkey]
+# Trigger Input Method
+TriggerKey=
+# Use extra trigger key only after using it to inactivate
+# Available Value:
+# True False
+#UseExtraTriggerKeyOnlyWhenUseItToInactivate=True
+# Extra key for trigger input method
+# Available Value:
+# R_CTRL
+# R_SHIFT
+# L_SHIFT
+# L_CTRL
+# ALT_L_SHIFT
+# ALT_R_SHIFT
+# CTRL Both
+# SHIFT Both
+# L_ALT
+# R_ALT
+# ALT Both
+# Left Super
+# Right Super
+# Super Both
+# Ctrl+Left Super
+# Ctrl+Right Super
+# Super+Left Ctrl
+# Super+Right Ctrl
+# Disabled
+# Custom
+SwitchKey=Disabled
+# Custom switch key
+#CustomSwitchKey=
+# Activate input method
+#ActivateKey=
+# Inactivate Input Method
+#InactivateKey=
+# Enable Hotkey to scroll Between Input Method
+# Available Value:
+# True False
+IMSwitchKey=False
+# Include Inactivate when scrolling between Input Method
+# Available Value:
+# True False
+#IMSwitchIncludeInactive=False
+# Scroll between Input Method
+# Available Value:
+# CTRL_SHIFT
+# ALT_SHIFT
+# CTRL_SUPER
+# ALT_SUPER
+#IMSwitchHotkey=CTRL_SHIFT
+# Reload configuration
+#ReloadConfig=CTRL_5
+# Interval of Two Key Input
+#TimeInterval=250
+# Switching Virtual Keyboard
+#VKSwitchKey=CTRL_ALT_B
+# Switching Remind Mode
+#RemindSwitchKey=
+# Switching Full Width Character Mode
+#FullWidthSwitchKey=
+# Switch Full Width Punc Mode
+#PuncSwitchKey=CTRL_.
+# Prev Page
+#PrevPageKey=- UP
+# Next Page
+#NextPageKey== DOWN
+# Choose Second and Third Candidate Word
+#SecondThirdCandWordKey=
+# Saving All Config and Input History
+#SaveAllKey=CTRL_ALT_S
+# Switch Embedded Preedit
+#SwitchPreedit=CTRL_ALT_P
+# Previous Candidate Word
+#PrevWord=SHIFT_TAB
+# Next Candidate Word
+#NextWord=TAB
+
+[Program]
+# Seconds sleep before fcitx really start
+#DelayStart=0
+# Share State Among Window
+# Available Value:
+# No
+# All
+# PerProgram
+#ShareStateAmongWindow=No
+# Default Input Method State
+# Available Value:
+# Inactive
+# Active
+#DefaultInputMethodState=Inactive
+
+[Output]
+# Type half width Punc After a Number
+# Available Value:
+# True False
+#HalfPuncAfterNumber=True
+# Disable Paging in Remind Mode
+# Available Value:
+# True False
+#RemindModeDisablePaging=True
+# Commit when toggle state
+# Available Value:
+# True False
+#SendTextWhenSwitchEng=True
+# Candidate Word Number
+CandidateWordNumber=10
+# Give the tips of Phrase
+# Available Value:
+# True False
+#PhraseTips=True
+# Do not commit preedit text when unfocus a window
+# Available Value:
+# True False
+#DontCommitPreeditWhenUnfocus=False
+
+[Appearance]
+# Show Input Method Hint After Input method changed
+# Available Value:
+# True False
+ShowInputWindowAfterTriggering=False
+# Show Input Method Hint After Input method changed and Focus in
+# Available Value:
+# True False
+#ShowInputWindowWhenFocusIn=False
+# Input Method Hint will be only shown when state is active
+# Available Value:
+# True False
+#ShowInputWindowOnlyWhenActive=True
+# Show Input Speed
+# Available Value:
+# True False
+#ShowInputSpeed=False
+# Show Version
+# Available Value:
+# True False
+#ShowVersion=False
+# Do not show input window if there is only preedit string
+# Available Value:
+# True False
+#HideInputWindowWhenOnlyPreeditString=False
+# Do not show input window if there is only one candidate and preedit
+# Available Value:
+# True False
+#HideInputWindowWhenOnlyOneCandidate=False
+
path: "$XDG_DATA_HOME/xorg"
src: "$XDG_STATE_HOME/xorg"
state: link
+- name: fcitx configuration dir
+ file:
+ path: "$XDG_CONFIG_HOME/{{ item }}"
+ state: directory
+ loop:
+ - fcitx
+ - fcitx/addon
+ - fcitx/conf
+- name: fcitx configuration
+ copy:
+ src: "config_files/fcitx/{{ item }}"
+ dest: "$XDG_CONFIG_HOME/fcitx/{{ item }}"
+ loop:
+ - config
+ - conf/fcitx-autoeng.config
+ - conf/fcitx-classic-ui.config
+ - conf/fcitx-keyboard.config
+ - conf/fcitx-m17n.config
+ - conf/fcitx-notify.config
+ - conf/fcitx-spell.config
+ - conf/fcitx-table.config
+ - conf/fcitx-unicode.config
+ - conf/fcitx-xim.config
+ - conf/fcitx-xkb.config
+- name: fcitx disabled addons
+ ini_file:
+ path: "$XDG_CONFIG_HOME/fcitx/addon/fcitx-{{ item.0 }}.conf"
+ no_extra_spaces: true
+ section: "Addon"
+ option: "Enabled"
+ value: "{{ item.1 }}"
+ # cf /usr/share/fcitx/addon/
+ loop:
+ - [ "chttrans", "False" ]
+ - [ "clipboard", "False" ]
+ - [ "imselector", "False" ]
+ - [ "kimpanel-ui", "False" ]
+ - [ "pinyin", "False" ]
+ - [ "pinyin-enhance", "False" ]
+ - [ "quickphrase", "False" ]
+ - [ "qw", "False" ]
+
+ - [ "autoeng", "True" ]
+ - [ "classic-ui", "True" ]
+ - [ "dbus", "True" ]
+ - [ "freedesktop-notify", "True" ]
+ - [ "fullwidth-char", "True" ]
+ - [ "ipc", "True" ]
+ - [ "ipcportal", "True" ]
+ - [ "keyboard", "True" ]
+ - [ "m17n", "True" ]
+ - [ "notificationitem", "True" ]
+ - [ "punc", "True" ]
+ - [ "remote-module", "True" ]
+ - [ "spell", "True" ]
+ - [ "table", "True" ]
+ - [ "unicode", "True" ]
+ - [ "vk", "True" ]
+ - [ "x11", "True" ]
+ - [ "xim", "True" ]
+ - [ "xkb", "True" ]
+ - [ "xkbdbus", "True" ]