Use ssh-agent, small comment tweaks
This commit is contained in:
parent
f1d4eaa206
commit
487890f71d
13
.xinitrc
13
.xinitrc
|
@ -25,17 +25,16 @@ fi
|
||||||
|
|
||||||
#== Thurstylark additions below ==#
|
#== Thurstylark additions below ==#
|
||||||
|
|
||||||
|
# Start ssh agent
|
||||||
|
eval $(ssh-agent)
|
||||||
|
|
||||||
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
|
# Automatically lock after 30 minutes using i3lock
|
||||||
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:
|
# Thurstybook-specific config:
|
||||||
[ "$(hostname)" == "thurstybook" ] && srandrd ~/.config/srandrd.conf
|
[ "$(hostname)" == "thurstybook" ] && srandrd ~/.config/srandrd.conf
|
||||||
|
|
||||||
|
# dtarchaio-specific config:
|
||||||
if [ "$(hostname)" == "dtarchaio" ]; then
|
if [ "$(hostname)" == "dtarchaio" ]; then
|
||||||
# Set HDMI1 to be right of eDP1
|
# Set HDMI1 to be right of eDP1
|
||||||
xrandr --output eDP-1 --auto --output HDMI-1 --right-of eDP-1
|
xrandr --output eDP-1 --auto --output HDMI-1 --right-of eDP-1
|
||||||
|
@ -45,13 +44,13 @@ if [ "$(hostname)" == "dtarchaio" ]; then
|
||||||
xinput --map-to-output $(xinput list --id-only "Advanced Silicon S.A CoolTouch(TM) System") eDP-1
|
xinput --map-to-output $(xinput list --id-only "Advanced Silicon S.A CoolTouch(TM) System") eDP-1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If numlockx is installed, activate it
|
# If numlockx is installed, turn numlock on
|
||||||
[ -s /usr/bin/numlockx ] && numlockx on
|
[ -s /usr/bin/numlockx ] && numlockx on
|
||||||
|
|
||||||
# Set termite up to launch tmux on $mod+Enter in i3
|
# Set termite up to launch tmux on $mod+Enter in i3
|
||||||
export TERMINAL=~/.config/i3/launch-termite.sh
|
export TERMINAL=~/.config/i3/launch-termite.sh
|
||||||
|
|
||||||
|
# If $1 isn't set, use "i3"
|
||||||
session=${1:-i3}
|
session=${1:-i3}
|
||||||
|
|
||||||
case $session in
|
case $session in
|
||||||
|
|
Loading…
Reference in New Issue