#!/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