emacs: tweak mode-line look
[~bandali/configs] / .xinitrc
1 [ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
2
3 export VISUAL=emacsclient
4 export EDITOR="$VISUAL"
5
6 if [ -x "$(command -v xinput)" ]; then
7 xinput set-prop 'TPPS/2 IBM TrackPoint' 'libinput Accel Speed' -0.4
8 xinput set-prop 'DLL07BE:01 06CB:7A13 Touchpad' 'libinput Natural Scrolling Enabled' 1
9 xinput set-prop 'DLL07BE:01 06CB:7A13 Touchpad' 'libinput Click Method Enabled' 0 1
10 fi
11
12 # setxkbmap \
13 # -layout us,ir \
14 # -option ctrl:nocaps \
15 # -option grp:shifts_toggle
16
17 setxkbmap \
18 -layout us,ir \
19 -option ctrl:swap_rwin_rctl \
20 -option grp:shifts_toggle
21
22 xmodmap -e "keysym Menu = Super_R"
23
24 xsetroot -cursor_name left_ptr
25 xset r rate 200 45
26 xset b off
27
28 [ -x "$(command -v pasystray)" ] && pasystray -a &
29 [ -x "$(command -v nm-applet)" ] && nm-applet &
30 [ -x "$(command -v picom)" ] && picom &
31 [ -x "$(command -v dunst)" ] && dunst &
32 exec dbus-launch --exit-with-session -- emacs -ib 0