diff options
Diffstat (limited to '')
-rw-r--r-- | bash_functions.d/dotf.sh | 3 | ||||
-rw-r--r-- | bash_functions.d/get-location-from-ip.sh | 3 | ||||
-rw-r--r-- | bash_functions.d/listen-to-yt.sh | 6 | ||||
-rw-r--r-- | bash_functions.d/screenshot.sh | 4 | ||||
-rw-r--r-- | bash_functions.d/tj.sh | 3 | ||||
-rw-r--r-- | bash_functions.d/weather.sh | 3 |
6 files changed, 22 insertions, 0 deletions
diff --git a/bash_functions.d/dotf.sh b/bash_functions.d/dotf.sh new file mode 100644 index 0000000..932e442 --- /dev/null +++ b/bash_functions.d/dotf.sh @@ -0,0 +1,3 @@ +dotf() { + cd ~/openbsd-dotfiles +} diff --git a/bash_functions.d/get-location-from-ip.sh b/bash_functions.d/get-location-from-ip.sh new file mode 100644 index 0000000..840de2b --- /dev/null +++ b/bash_functions.d/get-location-from-ip.sh @@ -0,0 +1,3 @@ +get-location-from-ip() { + curl -s https://ipvigilante.com/$(curl -s https://ipinfo.io/ip) | jq '.data.latitude, .data.longitude, .data.city_name, .data.country_name' +} diff --git a/bash_functions.d/listen-to-yt.sh b/bash_functions.d/listen-to-yt.sh new file mode 100644 index 0000000..fa9548c --- /dev/null +++ b/bash_functions.d/listen-to-yt.sh @@ -0,0 +1,6 @@ +# Listen to a song on You Tube +listen-to-yt() { +if [[ -z "$1" ]]; then + echo "Enter a search string!"; +else mpv "$(yt-dlp --default-search 'ytsearch1:' \"$1\" --get-url | tail -1)"; fi +} diff --git a/bash_functions.d/screenshot.sh b/bash_functions.d/screenshot.sh new file mode 100644 index 0000000..34f9c7a --- /dev/null +++ b/bash_functions.d/screenshot.sh @@ -0,0 +1,4 @@ +screenshot() { + sleep 4 && scrot '%Y-%m-%d_$wx$h.png' -e 'optipng $f' -shole --line color="Dark Salmon",opacity=200 +} + diff --git a/bash_functions.d/tj.sh b/bash_functions.d/tj.sh new file mode 100644 index 0000000..a0b6712 --- /dev/null +++ b/bash_functions.d/tj.sh @@ -0,0 +1,3 @@ +tj() { + vim ~/Notes/journal/$(date +%Y-%m-%d).md +} diff --git a/bash_functions.d/weather.sh b/bash_functions.d/weather.sh new file mode 100644 index 0000000..5b2c707 --- /dev/null +++ b/bash_functions.d/weather.sh @@ -0,0 +1,3 @@ +weathertoss() { + curl wttr.in/~Berwick-upon-Tweed +} |