Add xinitrc and fix ssh-agent issues in zsh

This commit is contained in:
2017-07-24 18:08:15 +03:00
parent ce84479f82
commit ec56e49411
3 changed files with 18 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ Style/Documentation:
# method_call(a, # method_call(a,
# b) # b)
# #
Layout/AlignParameters: Style/AlignParameters:
EnforcedStyle: with_fixed_indentation EnforcedStyle: with_fixed_indentation
Style/BlockDelimiters: Style/BlockDelimiters:
@@ -93,10 +93,10 @@ Style/NumericLiterals:
Style/LambdaCall: Style/LambdaCall:
Enabled: false Enabled: false
Layout/MultilineMethodCallIndentation: Style/MultilineMethodCallIndentation:
EnforcedStyle: indented EnforcedStyle: indented
Layout/MultilineOperationIndentation: Style/MultilineOperationIndentation:
EnforcedStyle: indented EnforcedStyle: indented
Style/NumericPredicate: Style/NumericPredicate:

14
.xinitrc Normal file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
BROWSER=chromium
XTERM=urxvt
# TrackPoint+Middleclick scroll
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 6 7 4 5
# exec ck-launch-session dbus-launch
xrdb -merge ~/.Xresources
exec notion > $HOME/.notion/log.txt 2>&1

View File

@@ -4,7 +4,7 @@ if [ "$?" == 2 ]; then
ssh-add -l > /dev/null 2>&1 ssh-add -l > /dev/null 2>&1
if [ "$?" == 2 ]; then if [ "$?" == 2 ]; then
(umask 066; ssh-agent > $HOME/.ssh-agent) (umask 066; ssh-agent >| $HOME/.ssh-agent)
eval "$(<$HOME/.ssh-agent)" > /dev/null eval "$(<$HOME/.ssh-agent)" > /dev/null
ssh-add ssh-add
fi fi