diff options
| author | Blake Romero <blake@blkrom.com> | 2024-12-17 23:20:46 +0000 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2024-12-17 23:22:53 +0000 |
| commit | 29bde14b1e04224d5a5caedcecb60f5160d13da6 (patch) | |
| tree | 075f4a577a4e17d821c74bef420d2145c28e8ba6 /dot-config/yambar/scripts | |
| parent | 1c8aa8475d7323d0f121d69cb0c3073be136e473 (diff) | |
Refactore yambar, add mpc & newsboat to bar, update pacman scripts
Diffstat (limited to 'dot-config/yambar/scripts')
| -rwxr-xr-x | dot-config/yambar/scripts/newsboat | 7 | ||||
| -rwxr-xr-x | dot-config/yambar/scripts/pacman (renamed from dot-config/yambar/scripts/pacman-label) | 0 | ||||
| -rwxr-xr-x | dot-config/yambar/scripts/pacman-notify | 3 |
3 files changed, 8 insertions, 2 deletions
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-label b/dot-config/yambar/scripts/pacman index 7015e5b..7015e5b 100755 --- a/dot-config/yambar/scripts/pacman-label +++ b/dot-config/yambar/scripts/pacman 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')" |
