惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
CXSECURITY Database RSS Feed - CXSecurity.com
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园_首页
博客园 - 【当耐特】
小众软件
小众软件
A
About on SuperTechFans
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Martin Fowler
Martin Fowler
M
MIT News - Artificial intelligence
Vercel News
Vercel News
爱范儿
爱范儿
Google DeepMind News
Google DeepMind News
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
T
Threatpost
人人都是产品经理
人人都是产品经理
H
Help Net Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
LINUX DO - 热门话题
B
Blog
F
Full Disclosure
P
Proofpoint News Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Threat Research - Cisco Blogs
L
LangChain Blog
博客园 - Franky
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Project Zero
Project Zero
I
InfoQ
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The Cloudflare Blog
V
Vulnerabilities – Threatpost
云风的 BLOG
云风的 BLOG
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Check Point Blog
K
Kaspersky official blog
WordPress大学
WordPress大学
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Securelist
T
Tenable Blog
N
News and Events Feed by Topic
The GitHub Blog
The GitHub Blog
W
WeLiveSecurity
Stack Overflow Blog
Stack Overflow Blog
O
OpenAI News
Blog — PlanetScale
Blog — PlanetScale
量子位
Simon Willison's Weblog
Simon Willison's Weblog
T
Tor Project blog
P
Proofpoint News Feed

博客园 - JackieHan

ubuntu vim markdown 实时预览 ubuntu docker方式部署docker registry v2 docker 安装 gogs(go git server) 及问题解决 ubuntu14.04 server 安装docker Ubuntu Tomcat Ubuntu ssh 代理 全网访问速度优化 git 操作 vim使用指北 ---- Multiple Windows in Vim vim使用指北 ---- Advanced Editing vim使用指北 ---- Global Replacement vi/vim使用指北 ---- Introducting the ex Editor ubuntu 点点滴滴 vi/vim使用指北 ---- Learning the vi and Vim Editors 读书 笔记 vi/vim使用指北 ---- Beyond the Basic vi/vim使用指北 ---- Moving Around in a Hurry vi/vim使用指北 ---- Sample Editing linux权威指南 简记 idea 使用
ubuntu i3 xterm中文输入显示问题解决
JackieHan · 2016-04-13 · via 博客园 - JackieHan

2016-04-13 23:55  JackieHan  阅读(1655)  评论()    收藏  举报

i3config 配置

!启动fcitx输入法管理
exec fcitx -d

Xresource配置

!设置输入法管理器为fcitx
xterm*inputMethod: fcitx
!设置英文字体
xterm*faceName: DejaVu Sans Mono:antialias=True:pixelsize=20
!设置中文自体
xterm*faceNameDoublesize:  WenQuanYi Zen Hei:antialias=True:pixelsize=20
xterm*boldFont: WenQuanYi Zen Hei:pixelsize=20

.Xresource配置

xpdf.title: PDF
XTerm*faceSize: 10
XTerm*faceSize1: 10
XTerm*faceSize2: 10
XTerm*faceSize3: 10
XTerm*faceSize4: 10
XTerm*faceSize5: 10
XTerm*faceSize6: 10
XTerm*jumpScroll: true

xterm.termName: xterm-256color
xterm.geometry: 80x36
xterm*scrollBar: false
xterm*saveLines: 2000
xterm*rightScrollBar: true
xterm*loginshell: true
xterm*cursorBlink: false
xterm.borderLess: true
xterm.cursorBlink: false
xterm*colorUL: yellow
xterm*colorBD: white

xterm*eightBitInput: false
xterm*altSendsEscape: true

xterm*locale: true
xterm.utf8:     true
xterm*utf8Title: true
xterm*fontMenu*fontdefault*Label: Default

xterm*faceName: DejaVu Sans Mono:antialias=True:pixelsize=20
xterm*faceNameDoublesize:  WenQuanYi Zen Hei:antialias=True:pixelsize=20
xterm*boldFont: WenQuanYi Zen Hei:pixelsize=20

xterm*xftAntialias: true
xterm.cjkWidth:true
XTerm*inputMethod: fcitx
XTerm*preeditType: Root


! http://william.shallum.net/random-notes/xterm-paste-from-clipboard
XTerm*VT100.color4: RoyalBlue
XTerm.VT100.Translations:    #override \n\
Shift <KeyPress> Insert:        insert-selection(CLIPBOARD) \n\
<Btn2Up>:                       insert-selection(SELECT, CUT_BUFFER0) \n\
~Shift<BtnUp>:                  select-end(PRIMARY, CUT_BUFFER0) \n\
Shift<BtnUp>:                   select-end(CLIPBOARD, CUT_BUFFER1)

! xterm color
xterm*foreground: rgb:c8/c8/c8
xterm*background: rgb:00/00/00

xterm*color0: rgb:00/00/00
xterm*color1: rgb:a8/00/00
xterm*color2: rgb:00/a8/00
xterm*color3: rgb:a8/54/00
xterm*color4: rgb:00/00/a8
xterm*color5: rgb:a8/00/a8
xterm*color6: rgb:00/a8/a8
xterm*color7: rgb:a8/a8/a8
xterm*color8: rgb:54/54/54
xterm*color9: rgb:fc/54/54
xterm*color10: rgb:54/fc/54
xterm*color11: rgb:fc/fc/54
xterm*color12: rgb:54/54/fc
xterm*color13: rgb:fc/54/fc
xterm*color14: rgb:54/fc/fc
xterm*color15: rgb:fc/fc/fc

XTerm*allowSendEvents: true

我自己的i3配置

# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!

# WIN
set $mod Mod4
# ALT
set $cmd Mod1

# font for window titles. ISO 10646 = Unicode
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
font -wenquanyi-wenquanyi bitmap
song-medium-r-normal--13-130-75-75-p-80-iso10646-1

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# bindsym $mod+Return exec urxvt

# kill focused window
bindsym $mod+Shift+Q kill

# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run

# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right

# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# move focused window
bindsym $mod+Shift+H move left
bindsym $mod+Shift+J move down
bindsym $mod+Shift+K move up
bindsym $mod+Shift+L move right

# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

# split in horizontal orientation
## bindsym $mod+h split h

# split in vertical orientation
## bindsym $mod+- split v

# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen

# change container layout (stacked, tabbed, default)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout default

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle

# change focus between tiling / floating windows
# bindsym $mod+space focus mode_toggle
bindsym $mod+space workspace back_and_forth

# focus the parent container
bindsym $mod+a focus parent

# focus the child container
#bindcode $mod+d focus child

# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 0

# move focused container to workspace
bindsym $mod+Shift+exclam move container to workspace 1
bindsym $mod+Shift+at move container to workspace 2
bindsym $mod+Shift+numbersign move container to workspace 3
bindsym $mod+Shift+dollar move container to workspace 4
bindsym $mod+Shift+percent move container to workspace 5
bindsym $mod+Shift+asciicircum move container to workspace 6
bindsym $mod+Shift+ampersand move container to workspace 7
bindsym $mod+Shift+asterisk move container to workspace 8
bindsym $mod+Shift+parenleft move container to workspace 9
bindsym $mod+Shift+parenright move container to workspace 0

# reload the configuration file
bindsym $mod+Shift+C reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+R restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+E exit

# resize window (you can also use the mouse for that)
mode "resize" {
	# These bindings trigger as soon as you enter the resize mode

	# Pressing left will shrink the window’s width.
	# Pressing right will grow the window’s width.
	# Pressing up will shrink the window’s height.
	# Pressing down will grow the window’s height.
	bindsym h resize shrink width 10 px or 10 ppt
	bindsym j resize grow height 10 px or 10 ppt
	bindsym k resize shrink height 10 px or 10 ppt
	bindsym l resize grow width 10 px or 10 ppt

	# same bindings, but for the arrow keys
	bindsym 113 resize shrink width 10 px or 10 ppt
	bindsym 116 resize grow height 10 px or 10 ppt
	bindsym 111 resize shrink height 10 px or 10 ppt
	bindsym 114 resize grow width 10 px or 10 ppt

	# back to normal: Enter or Escape
	bindsym Return mode "default"
	bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
    # output VGA1
	position bottom
	# tray_output VGA1
	status_command    i3status
	colors {
		background #000000
		statusline #ffffff
		# class                border       backgrd   text
		#focused_workspace     #000000		#000000   #d70a53
		#active_workspace	   #000000      #000000	  #696f89
		#inactive_workspace    #000000      #000000   #696f89
		#urgent_workspace      #d72f6b      #d70a53   #FFFF50
	}   
}

workspace 0 output LVDS1
workspace 1 output LVDS1
workspace 2 output LVDS1
workspace 3 output LVDS1
workspace 4 output LVDS1
workspace 5 output VGA1
workspace 6 output VGA1
workspace 7 output VGA1
workspace 8 output VGA1
workspace 9 output VGA1

# workspace 1 code
# workspace 2 work
# workspace 3 surf
# workspace 4 mail
# workspace 5 chat

# start a terminal
# bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Return exec xterm

bindsym $cmd+Shift+l exec /usr/bin/i3lock -c 000000

#exec ibus-daemon --xim -d
exec fcitx -d
exec /usr/bin/unclutter -idle 1 &
exec /usr/bin/diodon &
exec ~/sh/VGASetting.sh
exec --no-startup-id xsetroot -solid "#000"