update configuration

* copy URLs in foot to primary selection
* remove rarely used/invalid choices from delegator
* manually exit in mailsync because ! disabled set -e
* emit OSC 7 cwd so foot can open new windows in current directory
This commit is contained in:
Felix Van der Jeugt 2024-12-19 08:09:48 +01:00
parent 601dea0836
commit 432966a418
No known key found for this signature in database
GPG key ID: 58B209295023754D
5 changed files with 22 additions and 33 deletions

View file

@ -82,10 +82,6 @@ case "$choice" in
choice="$(cd ~/.password-store/otp; find * -name '*.gpg' | sed 's/\.gpg$//' | sort -d | pick)"
inject "$(pass otp code otp/"$choice" | head -1)"
;;
'student')
choice="$(pick < ~/.local/share/students.list)"
inject "$choice"
;;
'curl')
d="$(mktemp -d)"
trap "rm -r '$d'" EXIT KILL
@ -93,9 +89,6 @@ case "$choice" in
curl -LOJ "$(primary)"
rifle -fF *
;;
'clipmenu')
exec clipmenu
;;
'yubikey')
choice="$(ykman oath accounts list | pick)"
inject "$(ykman oath accounts code -s "$choice")"
@ -107,22 +100,4 @@ case "$choice" in
'spotify-title')
inject "$(curl -L "$(clip)" | sed -n 's@.*<title>\(.*\) - song \(and lyrics \)\?by \(.*\) | Spotify</title>.*@\1 _van_ \3@p')"
;;
'youtube-dl')
d="$(mktemp -d)"
trap "rm -r '$d'" EXIT KILL
cd "$d"
yt-dlp "$(primary)"
if mplayer -v >/dev/null; then
exec st mplayer *
else
exec st mpv *
fi
;;
'audio-dl')
d="$(mktemp -d)"
trap "rm -r '$d'" EXIT KILL
cd "$d"
yt-dlp -x "$(primary)"
exec st mpv --no-video *
;;
esac