From c157c9a139ddda9dc760af36fb8b2299bc32a051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Thu, 5 Aug 2021 05:05:40 +0300 Subject: Minor improvements and changes here and there --- dotfiles/.local/bin/barweather | 2 +- dotfiles/.local/bin/pacupgrade | 7 ++++++- dotfiles/.local/bin/weath | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) (limited to 'dotfiles/.local/bin') diff --git a/dotfiles/.local/bin/barweather b/dotfiles/.local/bin/barweather index 1fd2c6c..3fc7f42 100755 --- a/dotfiles/.local/bin/barweather +++ b/dotfiles/.local/bin/barweather @@ -1,7 +1,7 @@ #!/bin/sh cachefile="$HOME/.cache/weather" -location="Saint Petersburg" +location="Saint-Petersburg" update_freq=1800 obsolete_after=10800 diff --git a/dotfiles/.local/bin/pacupgrade b/dotfiles/.local/bin/pacupgrade index aa00575..564bb5b 100755 --- a/dotfiles/.local/bin/pacupgrade +++ b/dotfiles/.local/bin/pacupgrade @@ -11,7 +11,12 @@ fi touch ~/.cache/pacupdatelive killall -41 waybar -sudo pacman -Syu +if [ "$1" = "-a" ]; then + yay -Syu +else + sudo pacman -Syu +fi + rm -f ~/.cache/pacupdatelive killall -41 waybar diff --git a/dotfiles/.local/bin/weath b/dotfiles/.local/bin/weath index d644bfb..5d588bb 100755 --- a/dotfiles/.local/bin/weath +++ b/dotfiles/.local/bin/weath @@ -1,7 +1,7 @@ #!/bin/sh -location="Saint Petersburg" +location="Saint-Petersburg" [ -n "$1" ] && location=$1 -curl wttr.in/"$location" +curl "wttr.in/$location" -- cgit v1.2.3