mirror of
https://github.com/rydesun/dotfiles.git
synced 2026-01-11 02:12:41 +08:00
Add xinit config
This commit is contained in:
parent
b6df12d988
commit
e51024ffc6
2 changed files with 32 additions and 0 deletions
30
.config/X11/xinitrc
Normal file
30
.config/X11/xinitrc
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
# ==== DO NOT edit this section ====
|
||||
userresources=${XDG_CONFIG_HOME}/X11/Xresources
|
||||
usermodmap=${XDG_CONFIG_HOME}/X11/Xmodmap
|
||||
sysresources=/etc/X11/xinit/.Xresources
|
||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||
if [ -f $sysresources ]; then xrdb -merge $sysresources; fi
|
||||
if [ -f $sysmodmap ]; then xmodmap $sysmodmap; fi
|
||||
if [ -f "$userresources" ]; then xrdb -merge "$userresources"; fi
|
||||
if [ -f "$usermodmap" ]; then xmodmap "$usermodmap"; fi
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
done; unset f
|
||||
fi
|
||||
# ==================================
|
||||
|
||||
export GTK_IM_MODULE=fcitx
|
||||
export QT_IM_MODULE=fcitx
|
||||
export XMODIFIERS=@im=fcitx
|
||||
export LANG=zh_CN.utf8
|
||||
|
||||
# swap Caps_Lock and Escape
|
||||
setxkbmap -option caps:swapescape
|
||||
# swap Ctrl_R and Alt_R
|
||||
setxkbmap -option ctrl:rctrl_ralt
|
||||
setxkbmap -option ctrl:ralt_rctrl
|
||||
|
||||
exec qtile
|
||||
2
.config/X11/xserverrc
Normal file
2
.config/X11/xserverrc
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec /usr/bin/X -nolisten tcp "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue