From 1b425c346d784c0a130b1c383e1d3d44ec913f6c Mon Sep 17 00:00:00 2001 From: adam <56338480+adastx@users.noreply.github.com> Date: Mon, 10 Oct 2022 00:00:05 +0200 Subject: polybar: moved update script --- .config/polybar/config.ini | 4 ++-- .config/polybar/extra/updates-pacman-aurhelper.sh | 24 ----------------------- 2 files changed, 2 insertions(+), 26 deletions(-) delete mode 100755 .config/polybar/extra/updates-pacman-aurhelper.sh (limited to '.config/polybar') diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index 05bd2c6..f77024e 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -164,14 +164,14 @@ label-maxlen = 50 [module/updates-pacman-aurhelper] type = custom/script -exec = /home/adam/.config/polybar/extra/updates-pacman-aurhelper.sh +exec = ~/.local/bin/updates interval = 600 format-foreground = ${colors.orange} format-padding = 2 [module/weather] type = custom/script -exec = /home/adam/.local/bin/forecast +exec = ~/.local/bin/forecast interval = 600 format-foreground = ${colors.purple} format-padding = 2 diff --git a/.config/polybar/extra/updates-pacman-aurhelper.sh b/.config/polybar/extra/updates-pacman-aurhelper.sh deleted file mode 100755 index c74ff0d..0000000 --- a/.config/polybar/extra/updates-pacman-aurhelper.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then - updates_arch=0 -fi - -# if ! updates_aur=$(yay -Qum 2> /dev/null | wc -l); then -if ! updates_aur=$(paru -Qum 2> /dev/null | wc -l); then -# if ! updates_aur=$(cower -u 2> /dev/null | wc -l); then -# if ! updates_aur=$(trizen -Su --aur --quiet | wc -l); then -# if ! updates_aur=$(pikaur -Qua 2> /dev/null | wc -l); then -# if ! updates_aur=$(rua upgrade --printonly 2> /dev/null | wc -l); then - updates_aur=0 -fi - -aur_ignored=$($HOME/.local/bin/aurignored | wc -l) - -updates=$((updates_arch + updates_aur - $aur_ignored)) - -if [ "$updates" -gt 0 ]; then - echo " $updates" -else - echo "" -fi -- cgit v1.2.3-70-g09d2