From c079071001adb81de6ca839b0c617ed7ce3f0862 Mon Sep 17 00:00:00 2001 From: awy Date: Sun, 24 Aug 2025 13:54:25 +0300 Subject: cleanup --- .local/bin/cleanup | 2 -- .local/bin/cron/mailup | 2 +- .local/bin/td-toggle | 2 +- .local/bin/weath | 25 ------------------------- 4 files changed, 2 insertions(+), 29 deletions(-) delete mode 100755 .local/bin/cleanup delete mode 100755 .local/bin/weath (limited to '.local') diff --git a/.local/bin/cleanup b/.local/bin/cleanup deleted file mode 100755 index 4f0bee1..0000000 --- a/.local/bin/cleanup +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -yes | paru -Scc diff --git a/.local/bin/cron/mailup b/.local/bin/cron/mailup index 7be0a85..ac33353 100755 --- a/.local/bin/cron/mailup +++ b/.local/bin/cron/mailup @@ -2,7 +2,7 @@ pgrep -f mailsync && exit -echo " " > /tmp/mailupdate +echo "" > /tmp/mailupdate pkill -RTMIN+12 "${STATUSBAR:-waybar}" /usr/bin/mailsync rm -f /tmp/mailupdate diff --git a/.local/bin/td-toggle b/.local/bin/td-toggle index 24ded26..977cc56 100755 --- a/.local/bin/td-toggle +++ b/.local/bin/td-toggle @@ -9,4 +9,4 @@ else ifinstalled transmission-cli || exit [ "$(printf "No\\nYes" | mew -i -p "Turn on transmission daemon?")" = "Yes" ] && transmission-daemon && notify-send "transmission-daemon enabled." fi -sleep 3 && pkill -RTMIN+7 "${STATUSBAR:-i3blocks}" +sleep 3 && pkill -RTMIN+7 "${STATUSBAR:-waybar}" diff --git a/.local/bin/weath b/.local/bin/weath deleted file mode 100755 index ed23534..0000000 --- a/.local/bin/weath +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -# -# Get the weather on the terminal. You can pass an alternative location as a parameter, -# and/or use the 'cp' option to copy the forecast as plaintext to the clipboard. - -report="${XDG_CACHE_HOME:-$HOME/.cache}/weatherreport" - -if [ "$1" = 'cp' ]; then - # shellcheck disable=SC2015 - [ -z "$2" ] && sed 's/\x1b\[[^m]*m//g' "$report" | wl-copy && - notify-send "Weather forecast for '${LOCATION:-$(head -n 1 "$report" | cut -d' ' -f3-)}' copied to clipboard." || - { data="$(curl -sfm 5 "${WTTRURL:-wttr.in}/$2?T")" && - notify-send "Weather forecast for '$2' copied to clipboard." && - echo "$data" | wl-copy || - notify-send 'Failed to get weather forecast!' 'Check your internet connection and the supplied location.'; } -else - [ -n "$2" ] && - notify-send "Invalid option '$1'! The only valid option is 'cp'." && - exit 1 - - # shellcheck disable=SC2015 - [ -z "$1" ] && less -S "$report" || - data="$(curl -sfm 5 "${WTTRURL:-wttr.in}/$1")" && echo "$data" | less -S || - notify-send 'Failed to get weather forecast!' 'Check your internet connection and the supplied location.' -fi -- cgit v1.2.3