Fixed automatic locking, and added pulse triggers to srandrd

This commit is contained in:
David Thurstenson 2016-04-18 11:42:01 -05:00
parent 7e55ab0424
commit 575f2f7b26
2 changed files with 5 additions and 3 deletions

View File

@ -3,8 +3,10 @@
case "$SRANDRD_ACTION" in case "$SRANDRD_ACTION" in
"HDMI1 connected") xrandr --output HDMI1 --auto "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 "HDMI1 disconnected") xrandr --output HDMI1 --off
xrandr --output eDP1 --auto;; xrandr --output eDP1 --auto
pacmd set-default-sink 1;;
esac esac

View File

@ -29,7 +29,7 @@ eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK export SSH_AUTH_SOCK
# Automatically lock after 30 minutes using slock # 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: # Thurstybook-specific config:
[[ "$HOSTNAME" == "thurstybook" ]] && srandrd ~/.config/srandrd.conf [[ "$HOSTNAME" == "thurstybook" ]] && srandrd ~/.config/srandrd.conf