-
Notifications
You must be signed in to change notification settings - Fork 91
/
Copy pathxprofile
130 lines (114 loc) · 3.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#!/usr/bin/env bash
# vim: ft=sh
# Make sure we're in Dvorak
setxkbmap us -variant dvorak -option caps:escape
numlockx on
export LANG="en_US.UTF-8"
# for Chinese/Korean input
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
# Use rofi as CM launcher
export CM_LAUNCHER=rofi
# Use Fish as shell
export SHELL='/usr/bin/fish'
# For OBS
export QT_QPA_PLATFORMTHEME='qt5ct'
# For Signal (how is this not in the GUI???)
# this doesn't seem to work reliably but I guess it can't hurt
export SIGNAL_USE_TRAY_ICON=True
export SIGNAL_START_IN_TRAY=True
source ~/dotfiles/sh-scripts/xrandr.sh
if [ "$(hostname)" = ArchAngel ]; then
xmodmap -e "pointer = 3 2 1" &>/dev/null # left-hand mouse
xset s 900 30
xset dpms 600 600 600
# export QT_SCALE_FACTOR=2.4
fi
if [ "$(hostname)" = ArchScythe ]; then
xset s 900 30
xset dpms 600 600 600
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
keychain --quiet
# shellcheck disable=SC2046
export $(keychain --query --quiet)
fi
if [ "$(hostname)" = ArchSapphire ]; then
xset s 900 30
xset dpms 600 600 600
xmodmap -e "pointer = 3 2 1" &>/dev/null # left-hand mouse
synclient RightButtonAreaTop=0
synclient VertScrollDelta=-237 # Natural scroll for touchpads
keychain --quiet
# shellcheck disable=SC2046
export $(keychain --query --quiet)
# replace the useless menu key with extra ctrl
xmodmap -e "remove Control = Control_R"
xmodmap -e "keycode 135 = Control_R Control_R Control_R Control_R"
xmodmap -e "add Control = Control_R"
fi
if [ "$(hostname)" = ArchDiamond ]; then
# Note: check Xft.dpi in ~/.Xresources
if [ "$(date +"%Z")" = PDT ]; then
xset s 900 30
xset dpms 600 600 600
else
xset s 14400 14400
xset dpms 14400 14400 14400
# export QT_AUTO_SCREEN_SCALE_FACTOR=2
# export GDK_SCALE=2
fi
xmodmap -e "pointer = 3 2 1" &>/dev/null # left-hand mouse
keychain --quiet
# shellcheck disable=SC2046
export $(keychain --query --quiet)
fi
if [ "$(hostname)" = ArchMajestic ]; then
ponymix set-default -t source \
-d alsa_input.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.mono-fallback
ponymix set-volume -t source 80
if [ "$(whoami)" = "evan" ]; then
xset s 2000 60
xset dpms 900 900 900
~/dotfiles/sh-scripts/chvol.sh l
fi
if [ "$(whoami)" = "star" ]; then
xset s 2000 60
xset dpms 1800 1800 1800
~/dotfiles/sh-scripts/chvol.sh r
fi
xmodmap -e "pointer = 3 2 1" &>/dev/null # left-hand mouse
keychain --quiet
# shellcheck disable=SC2046
export $(keychain --query --quiet)
fi
if [ "$(hostname)" = ArchBootes ]; then
ponymix set-default -t source \
-d alsa_input.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.mono-fallback
ponymix set-volume -t source 80
if [ "$(whoami)" = "evan" ]; then
xset s 2000 60
xset dpms 900 900 900
~/dotfiles/sh-scripts/paswitch.sh speakers
fi
if [ "$(whoami)" = "star" ]; then
xset s 2000 60
xset dpms 1800 1800 1800
fi
keychain --quiet
# shellcheck disable=SC2046
export $(keychain --query --quiet)
fi
if [ "$(hostname)" = dagobah ]; then
keychain --quiet
# shellcheck disable=SC2046
export $(keychain --query --quiet)
fi
# Load background image, if not existent already
[[ -f ~/.fehbg ]] && source ~/.fehbg