diff --git a/bin/pacman_notify.sh b/bin/pacman_notify.sh new file mode 100755 index 0000000..505b4a2 --- /dev/null +++ b/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 diff --git a/sync.sh b/sync.sh index 0ee6fd9..57cbfde 100755 --- a/sync.sh +++ b/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 \ "