hyprdots

my dotfiles for hyprland
git clone https://git.awy.one/hyprdots.git
Log | Files | Refs | README | LICENSE

commit c7b30406637a2eb248a1de48b1f930eb386fa8dd
parent 06204f5de7bde12dfa861a8a848dab5bc082cc56
Author: awy <awy@awy.one>
Date:   Thu, 20 Mar 2025 20:01:12 +0300

wayland

Diffstat:
M.local/bin/weath | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.local/bin/weath b/.local/bin/weath @@ -7,11 +7,11 @@ report="${XDG_CACHE_HOME:-$HOME/.cache}/weatherreport" if [ "$1" = 'cp' ]; then # shellcheck disable=SC2015 - [ -z "$2" ] && sed 's/\x1b\[[^m]*m//g' "$report" | xclip -selection clipboard && + [ -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" | xclip -selection clipboard || + echo "$data" | wl-copy || notify-send 'Failed to get weather forecast!' 'Check your internet connection and the supplied location.'; } else [ -n "$2" ] &&