From 575f2f7b26df4c640c428f4455da90816ee7562b Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Mon, 18 Apr 2016 11:42:01 -0500 Subject: [PATCH] Fixed automatic locking, and added pulse triggers to srandrd --- .config/srandrd.conf | 6 ++++-- .xinitrc | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.config/srandrd.conf b/.config/srandrd.conf index 4a7e92b..729f924 100755 --- a/.config/srandrd.conf +++ b/.config/srandrd.conf @@ -3,8 +3,10 @@ case "$SRANDRD_ACTION" in "HDMI1 connected") xrandr --output HDMI1 --auto - xrandr --output eDP1 --off;; + xrandr --output eDP1 --off + pacmd set-default-sink 0;; "HDMI1 disconnected") xrandr --output HDMI1 --off - xrandr --output eDP1 --auto;; + xrandr --output eDP1 --auto + pacmd set-default-sink 1;; esac diff --git a/.xinitrc b/.xinitrc index 203e4cf..9f1c02f 100644 --- a/.xinitrc +++ b/.xinitrc @@ -29,7 +29,7 @@ eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) export SSH_AUTH_SOCK # Automatically lock after 30 minutes using slock -xautolock -time 30 -locker i3lock -b -d -c 000000 -e -f +xautolock -time 30 -locker 'i3lock -b -d -c 000000 -e -f' & # Thurstybook-specific config: [[ "$HOSTNAME" == "thurstybook" ]] && srandrd ~/.config/srandrd.conf