blob: 5fcfaf7b06389b63a0518e2bb010a87a297b72ed (
plain) (
blame)
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
|
#!/bin/bash
common() {
# Startup commands common to all the hosts.
xsetroot -cursor_name left_ptr
xset r rate 200 60
xrdb "$HOME/.Xresources"
rm -rf "$HOME/.xmonad/icons/cache/"
}
hostname_rahm3() {
$HOME/Projects/rkb/setxkbmap.sh
xinput set-prop "TPPS/2 Elan TrackPoint" "Coordinate Transformation Matrix" 2 0 0 0 2 0 0 0 1
xinput set-prop "ELAN0672:00 04F3:3187 Touchpad" "Coordinate Transformation Matrix" 2 0 0 0 2 0 0 0 1
n_displays=$(xrandr | grep '\<connected\>' | wc -l)
if [[ "$n_displays" -le "2" ]] ; then
if [ -z "$(ps aux | grep compton | grep -v grep)" ] ; then
__GL_SYNC_TO_VBLANK=1 nohup picom --backend=glx &>/dev/null &
fi
else
killall picom
fi
}
hostname_rahm1() {
# Startup commands specific to my worktop.
xinput set-prop "TPPS/2 Elan TrackPoint" "Coordinate Transformation Matrix" 3 0 0 0 3 0 0 0 1
xinput set-prop "SYNA8004:00 06CB:CD8B Touchpad" "Coordinate Transformation Matrix" 3 0 0 0 3 0 0 0 1
$HOME/.local/share/keysym/setxkbmap.sh
n_displays=$(xrandr | grep '\<connected\>' | wc -l)
if [[ "$n_displays" -le "2" ]] ; then
if [ -z "$(ps aux | grep compton | grep -v grep)" ] ; then
__GL_SYNC_TO_VBLANK=1 nohup picom --backend=glx &>/dev/null &
fi
else
killall picom
fi
feh --bg-scale "$HOME/wp.jpg"
}
hostname_photon() {
# Startup commands specific to my desktop.
if [ -z "$(ps aux | grep compton | grep -v grep)" ] ; then
__GL_SYNC_TO_VBLANK=1 nohup compton --backend=glx &>/dev/null &
fi
# xrandr --output DVI-I-1 --right-of DP-5 --mode 2560x1440
$HOME/.fehbg
$HOME/.screenlayout/layout.sh
}
hostname_boson() {
~/.fehbg
}
hostname_rahm.bld.corp.google.com() {
~/.local/keysym/setxkbmap.sh
~/.fehbg
nohup /usr/bin/picom --experimental-backends --backend glx &>/dev/null &
}
common
hostname_fn="hostname_$(cat /etc/hostname)"
if [[ "$(type -t "$hostname_fn")" == function ]] ; then
"$hostname_fn"
fi
|