Update 2024-01-01 23:19 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2024-01-01 23:19:39 +01:00
parent 788cb6a91b
commit 47af094f94
2 changed files with 37 additions and 0 deletions

23
.ksh/functions.ksh Normal file
View File

@ -0,0 +1,23 @@
########################################################################
# FUNCTIONS
########################################################################
xtitle() {
printf '\033]0;%s\007' "$1";
}
xbell() {
tput bel
}
x() {
xtitle "$ ssh home.codevoid.de"
ssh -t home.codevoid.de 'tmux -u attach || tmux -u'
}
scr() {
[ -z "$1" ] \
&& doas wsconsctl -n display.brightness \
|| doas wsconsctl display.brightness="$1"
}

14
.ksh/gnupg.ksh Normal file
View File

@ -0,0 +1,14 @@
########################################################################
# GNUPG AGENT
########################################################################
if [ -z $GPG_AGENT_INFO ]
then
GPG_TTY=$(tty)
SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
SSH_AUTH_SOCK_EXTRA=${SSH_AUTH_SOCK%%.ssh}.extra
export GPG_TTY SSH_AUTH_SOCK SSH_AUTH_SOCK_EXTRA
pgrep -qu sdk gpg-agent || gpg-connect-agent -q /bye
fi