Added srandrd for thurstybook

This commit is contained in:
David Thurstenson 2016-03-23 23:24:32 +00:00
parent 80cc5b6757
commit 28c51f20c1
2 changed files with 15 additions and 0 deletions

8
.config/srandrd.conf Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
case "$SRANDRD_ACTION" in
"HDMI1 connected") xrandr --output HDMI1 --auto --right-of eDP1;;
"HDMI1 disconnected") xrandr --output HDMI1 --off;;
esac

View File

@ -38,6 +38,13 @@ export SSH_AUTH_SOCK
# Automatically lock after 30 minutes using slock
xautolock -time 30 -locker i3lock -b -d -c 000000 -e -f
# Thurstybook-specific config:
if [[ "$HOSTNAME" == "thurstybook" ]]; then
# start srandrd
srandrd ~/.config/srandrd.conf
fi
if [[ "$HOSTNAME" == "dtarch" ]]; then
# Set VGA1 to be right of HDMI1
xrandr --output VGA1 --auto --right-of HDMI1