diff options
-rwxr-xr-x | .local/bin/cron/checkup | 8 | ||||
-rwxr-xr-x | .local/bin/cron/newsup | 6 | ||||
-rwxr-xr-x | .local/bin/statusbar/sb-news | 6 | ||||
-rwxr-xr-x | .local/bin/statusbar/sb-pacpackages | 6 |
4 files changed, 13 insertions, 13 deletions
diff --git a/.local/bin/cron/checkup b/.local/bin/cron/checkup index fbe8e0f..a571a35 100755 --- a/.local/bin/cron/checkup +++ b/.local/bin/cron/checkup @@ -2,16 +2,16 @@ # Syncs repositories and downloads updates, meant to be run as a cronjob. -notify-send "📦 Repository Sync" "Checking for package updates..." +notify-send " Repository Sync" "Checking for package updates..." doas pacman -Syyuw --noconfirm || notify-send "Error downloading updates. Check your internet connection, if pacman is already running, or run update manually to see errors." -pkill -RTMIN+8 "${STATUSBAR:-waybar}" +pkill -RTMIN+8 "${STATUSBAR:-i3blocks}" if pacman -Qu | rg -v "\[ignored\]" then - notify-send "🎁 Repository Sync" "Updates available. Click statusbar icon (📦) for update." + notify-send " Repository Sync" "Updates available. Click statusbar icon () for update." else - notify-send "📦 Repository Sync" "Sync complete. No new packages for update." + notify-send " Repository Sync" "Sync complete. No new packages for update." fi diff --git a/.local/bin/cron/newsup b/.local/bin/cron/newsup index efdf4ae..25dae98 100755 --- a/.local/bin/cron/newsup +++ b/.local/bin/cron/newsup @@ -6,13 +6,13 @@ export XDG_RUNTIME_DIR=/run/user/1000 export WAYLAND_DISPLAY=wayland-1 -/usr/bin/notify-send "📰 Updating RSS feeds..." +/usr/bin/notify-send " Updating RSS feeds..." pgrep -f newsboat$ && /usr/bin/wlrctl window focus title:newsboat && /usr/bin/wlrctl keyboard type R && exit -echo 🔃 > /tmp/newsupdate +echo "" > /tmp/newsupdate pkill -RTMIN+6 "${STATUSBAR:-waybar}" /usr/bin/newsboat -x reload rm -f /tmp/newsupdate pkill -RTMIN+6 "${STATUSBAR:-waybar}" -/usr/bin/notify-send "📰 RSS feed update complete." +/usr/bin/notify-send " RSS feed update complete." diff --git a/.local/bin/statusbar/sb-news b/.local/bin/statusbar/sb-news index 440de7c..bb45885 100755 --- a/.local/bin/statusbar/sb-news +++ b/.local/bin/statusbar/sb-news @@ -6,12 +6,12 @@ case $BLOCK_BUTTON in 1) setsid "$TERMINAL" -T newsboat -e newsboat >/dev/null 2>&1 ;; 2) setsid -f newsup >/dev/null && exit ;; - 3) notify-send "📰 News module" "\- Shows unread news items -- Shows 🔃 if updating with \`newsup\` + 3) notify-send " News module" "\- Shows unread news items +- Shows if updating with \`newsup\` - Left click opens newsboat - Middle click syncs RSS feeds <b>Note:</b> Only one instance of newsboat (including updates) may be running at a time." ;; 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;; esac - bat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ if($1>0) print "📰" $1}')$(bat "${XDG_CONFIG_HOME:-$HOME/.config}"/newsboat/.update 2>/dev/null)" +bat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ if($1>0) print " " $1}')$(bat "${XDG_CONFIG_HOME:-$HOME/.config}"/newsboat/.update 2>/dev/null)" diff --git a/.local/bin/statusbar/sb-pacpackages b/.local/bin/statusbar/sb-pacpackages index 08b4235..5ef09d3 100755 --- a/.local/bin/statusbar/sb-pacpackages +++ b/.local/bin/statusbar/sb-pacpackages @@ -15,15 +15,15 @@ # [Action] # Description = Updating statusbar... # When = PostTransaction -# Exec = /usr/bin/pkill -RTMIN+8 dwmblocks # Or waybar if using sway/hyprland. +# Exec = /usr/bin/pkill -RTMIN+8 dwmblocks # Or i3blocks if using i3. case $BLOCK_BUTTON in 1) setsid -f "$TERMINAL" -e sb-popupgrade >/dev/null 2>&1 ;; 2) notify-send "$(/usr/bin/pacman -Qu)" ;; - 3) notify-send "🎁 Upgrade module" "📦: number of upgradable packages + 3) notify-send " Upgrade module" ": number of upgradable packages - Left click to upgrade packages - Middle click to show upgradable packages" ;; 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;; esac -pacman -Qu | rg -Fcv "[ignored]" | sed "s/^/📦/;s/^📦0$//g" +pacman -Qu | rg -Fcv "[ignored]" | sed "s/^/ /;s/^ 0$//g" |