aboutsummaryrefslogtreecommitdiff
path: root/dot-config/yambar/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'dot-config/yambar/scripts')
-rwxr-xr-xdot-config/yambar/scripts/newsboat7
-rwxr-xr-xdot-config/yambar/scripts/pacman (renamed from dot-config/yambar/scripts/pacman-label)0
-rwxr-xr-xdot-config/yambar/scripts/pacman-notify3
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')"