blob: 90332ce85e770d327020fba8cd684b6e78f4f924 (
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
|
#!/bin/sh
# TODO if stick with running i3 inside xfce, might want to conditionalise much
# of the following on DESKTOP_SESSION equalling "i3", and rely on xfce to
# start things up
. $HOME/.shenv
# ---- screen locking
# don't lock in develacc, because that's just annoying, and the
# session is protected by main screen locker
in-develacc || i3-startup-i3lock
# ---- xrandr on specific hosts
# this relies on having set the video device to 'virtio' in virt-manager
if [ "$(hostname -f)" = "develacc.iris.silentflame.com" ]; then
xrandr --output Virtual-1 --mode 1366x768
fi
# ---- GTK
gnome-settings-daemon &
# ---- brightness keys
xfce4-power-manager &
# ---- input methods
if ! in-develacc; then
# work around Debian bug #812826
pkill -u $USER ibus-daemon
IBUS_ENABLE_SYNC_MODE=0 ibus-daemon --xim --daemonize
fi
# ---- startup applications
if ! in-develacc; then
nm-applet &
# the systemd user unit for mpd can fail because it doesn't get
# XDG_RUNTIME_DIR set, so disable it and start ourselves
systemctl --user mask mpd ||:
pgrep -u "$USER" mpd || mpd &
evolution &
caffeine-indicator &
workrave &
redshift-gtk & # co-ords from config file
fi
emacsclient -a "" -nc
|