diff options
author | Luca Matei Pintilie <luca@lucamatei.com> | 2024-02-02 22:00:59 +0000 |
---|---|---|
committer | Luca Matei Pintilie <luca@lucamatei.com> | 2024-02-02 22:00:59 +0000 |
commit | c10fa602f7c30e03c0bacb9c5cf116d808e86f6d (patch) | |
tree | 9bdd2ecaa1af3a33b616ab7cdcdd79b133ea52cb /.local | |
parent | aa0f8329497fea4d96be4e6740b4b70a8c212daa (diff) | |
download | dotfiles-c10fa602f7c30e03c0bacb9c5cf116d808e86f6d.tar dotfiles-c10fa602f7c30e03c0bacb9c5cf116d808e86f6d.tar.gz dotfiles-c10fa602f7c30e03c0bacb9c5cf116d808e86f6d.tar.bz2 dotfiles-c10fa602f7c30e03c0bacb9c5cf116d808e86f6d.tar.lz dotfiles-c10fa602f7c30e03c0bacb9c5cf116d808e86f6d.tar.xz dotfiles-c10fa602f7c30e03c0bacb9c5cf116d808e86f6d.tar.zst dotfiles-c10fa602f7c30e03c0bacb9c5cf116d808e86f6d.zip |
Various updates to many dotfiles
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/imv-http | 5 | ||||
-rwxr-xr-x | .local/bin/mail | 3 | ||||
-rwxr-xr-x | .local/bin/playlist-dl | 8 | ||||
-rwxr-xr-x | .local/bin/term | 24 |
4 files changed, 40 insertions, 0 deletions
diff --git a/.local/bin/imv-http b/.local/bin/imv-http new file mode 100755 index 0000000..4af2c3a --- /dev/null +++ b/.local/bin/imv-http @@ -0,0 +1,5 @@ +#!/usr/bin/env sh +for pic in $@ +do + curl -s "$pic" | imv - & +done diff --git a/.local/bin/mail b/.local/bin/mail new file mode 100755 index 0000000..6e1326c --- /dev/null +++ b/.local/bin/mail @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +term neomutt "$@" diff --git a/.local/bin/playlist-dl b/.local/bin/playlist-dl new file mode 100755 index 0000000..583d62d --- /dev/null +++ b/.local/bin/playlist-dl @@ -0,0 +1,8 @@ +#!/usr/bin/env sh +yt-dlp \ + -o '%(playlist)s/%(title)s.%(ext)s' \ + -x \ + --audio-format "mp3" \ + --parse-metadata "playlist_index:%(track_number)s" \ + --add-metadata \ + --embed-metadata $@ diff --git a/.local/bin/term b/.local/bin/term new file mode 100755 index 0000000..e3b46cd --- /dev/null +++ b/.local/bin/term @@ -0,0 +1,24 @@ +#!/usr/bin/env sh + +if [ -n "$DISPLAY" ] +then + if which st > /dev/null + then + st $@ + elif which xterm > /dev/null + then + xterm -e $@ + elif which alacritty > /dev/null + then + alacritty -e $@ + fi +else + if which footclient > /dev/null + then + footclient $@ + elif which alacritty > /dev/null + then + alacritty -e $@ + fi +fi + |