Przeglądaj źródła

~/.xinitrc,.xmonad: spawn ssh-agent and forget keys on screen lock.

Inspired by: http://chneukirchen.org/blog/archive/2014/02/the-road-to-openssh-bliss-ed25519-and-the-identitypersist-patch.html
Lucas Stadler 12 lat temu
rodzic
commit
9871c305aa
2 zmienionych plików z 3 dodań i 1 usunięć
  1. 2 0
      .xinitrc
  2. 1 1
      .xmonad/xmonad.hs

+ 2 - 0
.xinitrc

@ -16,5 +16,7 @@ synclient TouchpadOff=1
16 16
17 17
taffybar&
18 18
19
eval $(ssh-agent -s)
20
19 21
exec xmonad
20 22
#exec gnome-session

+ 1 - 1
.xmonad/xmonad.hs

@ -55,7 +55,7 @@ main = do
55 55
        ((mod4Mask .|. shiftMask, xK_m), spawnHere "quodlibet"),
56 56
57 57
        ((mod4Mask .|. shiftMask, xK_Tab), spawn "xkbswap"),
58
        ((mod4Mask .|. shiftMask, xK_l), spawn "slock"),
58
        ((mod4Mask .|. shiftMask, xK_l), spawn "ssh-add -D && slock"),
59 59
60 60
        ((0, xK_Print), spawn "scrot -e 'mv $f ~/m/pictures/ 2>/dev/null'"),
61 61