From 29bde14b1e04224d5a5caedcecb60f5160d13da6 Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Tue, 17 Dec 2024 23:20:46 +0000 Subject: Refactore yambar, add mpc & newsboat to bar, update pacman scripts --- dot-config/yambar/scripts/newsboat | 7 +++++++ dot-config/yambar/scripts/pacman | 7 +++++++ dot-config/yambar/scripts/pacman-label | 7 ------- dot-config/yambar/scripts/pacman-notify | 3 +-- 4 files changed, 15 insertions(+), 9 deletions(-) create mode 100755 dot-config/yambar/scripts/newsboat create mode 100755 dot-config/yambar/scripts/pacman delete mode 100755 dot-config/yambar/scripts/pacman-label (limited to 'dot-config/yambar/scripts') diff --git a/dot-config/yambar/scripts/newsboat b/dot-config/yambar/scripts/newsboat new file mode 100755 index 0000000..3fb006c --- /dev/null +++ b/dot-config/yambar/scripts/newsboat @@ -0,0 +1,7 @@ +#!/bin/sh + +# Get unread count +unread=$(cut -f1 -d' ' ~/.cache/unread) + +# Display unread count +printf "%s\n\n" "unread|int|$unread" diff --git a/dot-config/yambar/scripts/pacman b/dot-config/yambar/scripts/pacman new file mode 100755 index 0000000..7015e5b --- /dev/null +++ b/dot-config/yambar/scripts/pacman @@ -0,0 +1,7 @@ +#!/bin/sh + +# Get package count +count=$(wc -l < ~/.cache/updates) + +# Display count +printf "%s\n\n" "count|int|$count" diff --git a/dot-config/yambar/scripts/pacman-label b/dot-config/yambar/scripts/pacman-label deleted file mode 100755 index 7015e5b..0000000 --- a/dot-config/yambar/scripts/pacman-label +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -# Get package count -count=$(wc -l < ~/.cache/updates) - -# Display count -printf "%s\n\n" "count|int|$count" diff --git a/dot-config/yambar/scripts/pacman-notify b/dot-config/yambar/scripts/pacman-notify index a9ce535..9c6a84b 100755 --- a/dot-config/yambar/scripts/pacman-notify +++ b/dot-config/yambar/scripts/pacman-notify @@ -13,6 +13,5 @@ fi # Notify notify-send \ - -i package-x-generic \ -h string:x-canonical-private-synchronous:updates \ - "$msg" "$(cut -f1 -d' ' ~/.cache/updates)" + "$msg" "$(cut -f1 -d' ' ~/.cache/updates | sed -z 's/\n/ /g')" -- cgit