blob: 09f1afa16e45dc77e73ec0b5e3146bcc77ff4101 (
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
|
#!/bin/sh
# idea is that on physical hardware running X we use the XFCE desktop session
# from the display manager, and then rely on ~/.config/autostart to start
# things up. then when running a graphical session in a virtual machine, say,
# we use the i3 desktop session from the display manager, and that stuff (most
# of which only makes sense on real hardware) doesn't get started up
# so, ~/.dmrc shouldn't be checked into dotfiles repo -- use configuration
# management to set the default session in lightdm.conf
# this script remains for fixups when i3 launches; ideally it will eventually
# not be needed
. $HOME/.shenv
# ---- 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
# ---- 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
# 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 &
fi
|