blob: a7cd604b7e393f5775355cab7e4a817ea0fc3652 (
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
|
#!/bin/bash
common() {
# Startup commands common to all the hosts.
xsetroot -cursor_name left_ptr
xset r rate 200 60
}
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
feh --bg-scale "/home/rahm/.xmonad/assets/Death-Valley-desert-USA_3840x2160.jpg"
}
hostname_photon() {
# Startup commands specific to my desktop.
if [ ! -z "$(ps aux | grep compton | grep -v grep)" ] ; then
nohup compton --backend glx & > /dev/null
fi
xrandr --output DVI-I-1 --right-of DP-5 --mode 2560x1440
feh --bg-scale "/home/rahm/.xmonad/wallpaper.jpg"
}
common
hostname_fn="hostname_$(hostname)"
if [[ "$(type -t "$hostname_fn")" == function ]] ; then
"$hostname_fn"
fi
|