scripts

custom scripts and utils
git clone git://git.pyratebeard.net/scripts.git
Log | Files | Refs | README

commit ac7b93f76d10285970fb43ed3066d466ad5a7227
parent 84f089c0c764215554e59a85c3cc7bcb6226a444
Author: pyratebeard <root@pyratebeard.net>
Date:   Fri, 15 Dec 2023 16:16:55 +0000

update to xdg paths

Diffstat:
Mbin/.local/bin/ahoy | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/bin/.local/bin/ahoy b/bin/.local/bin/ahoy @@ -124,7 +124,7 @@ weather() { wttr=$(cat /tmp/weather | awk -F\: '{print $2}' | cut -c 2-) echo -e "${lighter_black}│${reset}${wttr}" else - $HOME/bin/weather + $HOME/.local/bin/weather wttr=$(cat /tmp/weather | awk -F\: '{print $2}' | cut -c 2-) echo -e "${lighter_black}│${reset}${wttr}" fi @@ -133,7 +133,7 @@ weather() { # you've got mail mail() { heading ${FUNCNAME[0]} - local -r mail_dir="$HOME/var/mbox" + local -r mail_dir="$HOME/.local/var/mbox" local -r pyratebeard_mail=$(find "${mail_dir}"/pyratebeard/INBOX/new/ -type f | wc -l) local -r unread_mail=$(find "${mail_dir}"/pyratebeard/INBOX/cur/ -type f ! -name "*S" | wc -l) @@ -152,14 +152,14 @@ getnews() { rss() { heading ${FUNCNAME[0]} - if [ -f ~/.newsboat/cache.db.lock ] ; then + if [ -f ~/.local/share/newsboat/cache.db.lock ] ; then echo -e "${lighter_black}│${reset}${light_black}waiting for newsboat refresh...${reset}" sleep 10 fi local unread_count - unread_count=$(sqlite3 ~/.newsboat/cache.db "select count(unread) from rss_item where unread = 1;") + unread_count=$(sqlite3 ~/.local/share/newsboat/cache.db "select count(unread) from rss_item where unread = 1;") local queued_pods - queued_pods=$(wc -l ~/.newsboat/queue | awk '{print $1}') + queued_pods=$(wc -l ~/.local/share/newsboat/queue | awk '{print $1}') echo -e "${lighter_black}│${reset}there are ${light_green}${unread_count}${reset} unread items" echo -e "${lighter_black}│${reset}you have ${light_green}${queued_pods}${reset} queued podcasts" }