Browse Source

add pacman_notify script

master
cinnaboot 4 years ago
parent
commit
77a5acb4c4
  1. 9
      bin/pacman_notify.sh
  2. 2
      sync.sh

9
bin/pacman_notify.sh

@ -0,0 +1,9 @@
#!/bin/sh
PKGS=$(checkupdates)
uid=1000
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$uid/bus
if [ $(echo "$PKGS" | wc -w) -gt 0 ]; then
notify-send "$(echo "$PKGS" | wc -l) updates available" "$PKGS"
fi

2
sync.sh

@ -8,6 +8,7 @@ DOTFILES="
$HOME/.gdbinit.d \
$HOME/.tmux.conf \
$HOME/.vimrc \
$HOME/.xinitrc \
"
rsync -avP ${DOTFILES} ./
@ -35,6 +36,7 @@ SCRIPTS="
$HOME/bin/hide_panel.sh \
$HOME/bin/iommu.sh \
$HOME/bin/monitors_off.sh \
$HOME/bin/pacman_notify.sh \
$HOME/bin/wmresize.sh \
"

Loading…
Cancel
Save