forked from vEnhance/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xprofile
74 lines (68 loc) · 2.38 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
# !/bin/bash
# vim: ft=sh
if [ "$HOSTNAME" = ArchAir ]; then
~/.dropbox-dist/dropboxd & # Dropbox
# xmodmap -e "pointer = 1 2 3 5 4 7 6 8 9 10 11 12" # natural scroll
synclient TapButton1=0 # Disable tap to click
synclient TapButton2=0 # Disable double tap to paste
synclient RightButtonAreaRight=1 # Remap mouse buttons
synclient VertScrollDelta=-237 # Natural scroll for touchpads
cbatticon -u 300 &
xautolock -time 7 -locker '/home/evan/dotfiles/sh-scripts/fuzzy-lock.sh' &
redshift-gtk &
fi
if [ "$HOSTNAME" = ArchMega ]; then
~/.dropbox-dist/dropboxd & # Dropbox
xmodmap -e "pointer = 3 2 1" &> /dev/null # left-hand mouse
xautolock -time 7 -locker '/home/evan/dotfiles/sh-scripts/fuzzy-lock.sh' &
case $(date +%Z) in
PST) xflux -z 94539 -k 2800;; # Pacific
PDT) xflux -z 94539 -k 2800;; # Pacific
EST) xflux -z 02138 -k 2800;; # Eastern
EDT) xflux -z 02138 -k 2800;; # Eastern
esac
fi
if [ "$HOSTNAME" = ArchAngel ]; then
dropbox & # Dropbox
xmodmap -e "pointer = 3 2 1" &> /dev/null # left-hand mouse
xautolock -time 128 -locker '/home/evan/dotfiles/sh-scripts/fuzzy-lock.sh' &
export QT_SCALE_FACTOR=3.0
picom -C -G -b --no-fading-openclose
redshift-gtk &
fi
if [ "$HOSTNAME" = Inspiron ]; then
~/.dropbox-dist/dropboxd & # Dropbox
fi
if [ "$HOSTNAME" = ArchScythe ]; then
xmodmap -e "pointer = 3 2 1" &> /dev/null # left-hand mouse
synclient TapButton1=0 # Disable tap to click
synclient VertScrollDelta=-237 # Natural scroll for touchpads
# remap mouse buttons
synclient RightButtonAreaTop=0
# synclient RightButtonAreaLeft=0
# synclient RightButtonAreaRight=1560
# cbatticon -u 300 &
xautolock -time 7 -locker '/home/evan/dotfiles/sh-scripts/fuzzy-lock.sh' &
picom -C -G -b --no-fading-openclose
dropbox & # Dropbox
redshift-gtk &
fi
if [ "$HOSTNAME" = ArchMajestic ]; then
# remap mouse buttons
xmodmap -e "pointer = 3 2 1" &> /dev/null # left-hand mouse
xautolock -time 7 -locker '/home/evan/dotfiles/sh-scripts/fuzzy-lock.sh' &
picom -C -G -b --no-fading-openclose
dropbox & # Dropbox
redshift-gtk &
xrandr --ouptut "DP-0" --right-of "HDMI-0"
fi
# Load background image, if not existent already
[[ -f ~/.fehbg ]] && source ~/.fehbg
# Make sure we're in Dvorak
setxkbmap dvorak -option caps:escape
# Set Chinese for X
# export LANG="zh_TW.UTF-8"
# for Chinese input
export GTK_IM_MODULE=ibus
# Use Fish as shell
export SHELL='/bin/fish'