summaryrefslogtreecommitdiff
path: root/autostart
blob: a4887442ccf04991b846eebf1c23de6fbd565860 (plain)
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
#!/usr/bin/env zsh

feh --no-xinerama --image-bg black --bg-fill "$HOME/image/MIPS-R3000A-die.jpg" &

xset s 0 &
xset b off &
xset +fp $HOME/.fonts &

mkdir -p /tmp/pks/.cache /tmp/pks/.ccache /tmp/mutt &

xmodmap $HOME/.Xmodmap &
xbindkeys &

urxvtd -q -f -o &

imwheel &>/dev/null &
unclutter -idle 5 &

if [[ -x $(which sloppy) ]]; then
  sloppy &
fi

$HOME/.local/bin/notification-daemon-launch &

if [[ $RATPOISON == "ratpoison" && -x $(which acpi 2&>/dev/null) ]]; then
  $HOME/.local/bin/ratcpi &
fi

$HOME/.local/bin/mouse-settings &

if [[ $(hostname) == "barkley" ]]; then
  if [[ -x $(which gsettings) ]]; then
    gsettings set org.gnome.desktop.interface text-scaling-factor 1.2
  fi
fi

if [[ $(hostname) == "bogues" ]]; then
  xrandr --output VGA1 --off &
  xrandr --output VGA0 --off &
  xrandr --output VGA-0 --off &
  xrandr --output VGA-1 --off &
fi

if [[ $(hostname) == "bryant" ]]; then
  if [[ -f /dev/nvidia0 ]]; then
    xrandr --output DP-7 --rotate right &
    sudo nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan-0]/GPUTargetFanSpeed=1" &
  else
    xrandr --output HDMI2 --rotate left &
  fi
fi

if [[ -x $(which notmuchfs) ]]; then
  notmuchfs ~/.notmuchfs -o backing_dir=$HOME/.notmuchfs_backing -o mail_dir=$HOME/.mail -o mutt_2476_workaround
fi