Update 2024-01-01 23:19 OpenBSD/amd64-x13
This commit is contained in:
parent
788cb6a91b
commit
47af094f94
23
.ksh/functions.ksh
Normal file
23
.ksh/functions.ksh
Normal 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
14
.ksh/gnupg.ksh
Normal 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user