summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc2
-rw-r--r--.config/sxhkd/sxhkdrc2
-rw-r--r--.config/systemd/user/ssh-agent.service15
3 files changed, 15 insertions, 4 deletions
diff --git a/.bashrc b/.bashrc
index d2f0893e..47f2fd95 100644
--- a/.bashrc
+++ b/.bashrc
@@ -15,7 +15,7 @@
PS1='\[\e[0;91m\][\u@\h \W]\$ \[\e[0m\]'
alias ls='ls --color=auto'
-alias ll='ls -lah --color=auto'
+alias ll='ls -lAh --color=auto'
alias cfgc='/usr/bin/git --git-dir=$HOME/.mycfg_cross_platform/ --work-tree=$HOME'
alias cfgl='/usr/bin/git --git-dir=$HOME/.mycfg_local/ --work-tree=$HOME'
alias datec='TZ=Asia/Shanghai date "+%a %m/%d/%Y %H:%M:%S UTC%:::z"'
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
index a48ffae5..471ffc63 100644
--- a/.config/sxhkd/sxhkdrc
+++ b/.config/sxhkd/sxhkdrc
@@ -1,2 +1,2 @@
-super + Print
+alt + Print
ffmpeg -f x11grab -i $DISPLAY -vframes 1 $HOME/pictures/screenshots/$($HOME/programs/my_scripts/time.uuid.sh).png
diff --git a/.config/systemd/user/ssh-agent.service b/.config/systemd/user/ssh-agent.service
index 87d6c045..7d2bf024 100644
--- a/.config/systemd/user/ssh-agent.service
+++ b/.config/systemd/user/ssh-agent.service
@@ -1,10 +1,21 @@
[Unit]
Description=SSH key agent
+# archwiki approach
+# https://wiki.archlinux.org/title/SSH_keys#Start_ssh-agent_with_systemd_user
[Service]
-Type=forking
+Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
-ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
+# DISPLAY required for ssh-askpass to work
+Environment=DISPLAY=:0
+ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
+
+# github White-Oak approach
+# https://github.com/White-Oak/arch-setup-for-dummies/blob/master/setting-up-ssh-agent.md
+#[Service]
+#Type=forking
+#Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
+#ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
[Install]
WantedBy=default.target