-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
.xprofile
executable file
·109 lines (92 loc) · 2.5 KB
/
.xprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#!/usr/bin/env sh
export GTK_THEME="Arc-Dark"
export QT_STYLE_OVERRIDE="kvantum-dark"
#export LANG="ja_JP.UTF-8"
export LC_CTYPE=$LANG
export LC_NUMERIC=$LANG
export LC_TIME=$LANG
export LC_COLLATE=$LANG
export LC_MONETARY=$LANG
export LC_MESSAGES=$LANG
export LC_PAPER=$LANG
export LC_NAME=$LANG
export LC_ADDRESS=$LANG
export LC_TELEPHONE=$LANG
export LC_MEASUREMENT=$LANG
export LC_IDENTIFICATION=$LANG
export LC_ALL=
# IME
# fcitx
export XIM="fcitx"
export XIM_PROGRAM="fcitx"
export INPUT_METHOD=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
# start some nice programs
if [ "$XDG_SESSION_TYPE" == "wayland" ]; then
# export SDL_VIDEODRIVER=wayland
# export XDG_CURRENT_DESKTOP=sway
# export XDG_SESSION_DESKTOP=sway
# export GTK_IM_MODULE=wayland
export GTK_IM_MODULE=fcitx
sleep 1
return
fi
export GTK_IM_MODULE=fcitx
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
if builtin command -v fcitx5 >/dev/null 2>&1; then
fcitx5 -rd &
elif builtin command -v fcitx >/dev/null 2>&1; then
fcitx -rd &
fi
# ibus
# export GTK_IM_MODULE=ibus
# export QT_IM_MODULE=ibus
# export XMODIFIERS=@im=ibus
# ibus-daemon --xim -rd &
sleep 1 # wait fcitx boot
# merge in defaults and keymaps
userresources=$HOME/.config/X11/Xresources
sysresources=/etc/X11/xinit/.Xresources
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
# XDG
mkdir -p "$HOME/.cache/X11"
export USERXSESSION="$HOME/.config/X11/xsession"
export USERXSESSIONRC="$HOME/.cache/X11/xsessionrc"
export ALTUSERXSESSION="$HOME/.cache/X11/Xsession"
export ERRFILE="$HOME/.cache/X11/xsession-errors"
export GTK2_RC_FILES=$HOME/.config/gtk-2.0/gtkrc
xset -b
# xset +dpms
# xset dpms 900 1200 1800
xset dpms 0 0 880
# xset s blank
xset s off
# xset s 900 1200
#if builtin command -v "xinput" > /dev/null 2>&1; then
# move /etc/udev/hwdb.d/91-touchpad.hwdb
#TOUCHPAD_NAME=$(xinput list --name-only | \grep -i synaptics)
#if [ -n "$TOUCHPAD_NAME" ]; then
# xinput set-prop "$TOUCHPAD_NAME" "libinput Accel Speed" 0.6
#fi
# move /etc/libinput/local-overrides.quirks
# TRACK_POINT_NAME=$(xinput list --name-only | \grep -i trackpoint)
# if [ -n "$TRACK_POINT_NAME" ]; then
# xinput set-prop "$TRACK_POINT_NAME" "libinput Accel Speed" 0.4
# fi
#fi
# use udev
## Caps to Ctrl
#if builtin command -v "xkbcomp" > /dev/null 2>&1; then
# (cd $HOME/.xkb/xkm && xkbcomp -I$HOME/.xkb ~/.xkb/keymap/mykbd $DISPLAY 2> /dev/null)
#fi