-
Notifications
You must be signed in to change notification settings - Fork 5
/
xprofile
33 lines (28 loc) · 808 Bytes
/
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
# ~/.xprofile - X11-specific login script (after ~/.profile)
# vim: ft=sh
#
# This is shared between startx "sessions" and display manager (GDM) sessions.
# Temporary
if [ ! "$HOSTNAME" ]; then
logger -t xprofile -p err "Missing \$HOSTNAME for ~/.xprofile"
HOSTNAME=$(hostname)
fi
# Set touchpad preferences
case $HOSTNAME,$DESKTOP_SESSION in
*,gnome*)
# GNOME handles this through GSettings.
;;
fujitsu,*)
touchpad="AlpsPS/2 ALPS GlidePoint"
xinput set-prop "$touchpad" "libinput Tapping Enabled" 1
xinput set-prop "$touchpad" "libinput Natural Scrolling Enabled" 0
xinput set-prop "$touchpad" "libinput Accel Speed" 0.0
;;
esac
if [ -e ~/.dotfiles/xprofile-$HOSTNAME ]; then
. ~/.dotfiles/xprofile-$HOSTNAME
fi
if [ -e ~/.xprofile-$HOSTNAME ]; then
. ~/.xprofile-$HOSTNAME
fi
true