summaryrefslogtreecommitdiffstats
path: root/.scripts
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-01-18 13:21:25 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-01-18 13:21:25 -0500
commit2eaabe4fbd6ba9d46e1e61af8c3504d611776fe8 (patch)
tree2aeadd1983a06807a4a3c2a0c9b077962cc8363e /.scripts
parent7a0346d01ae533a2b1dc65df99803612f87c7c7b (diff)
downloadeibhear-2eaabe4fbd6ba9d46e1e61af8c3504d611776fe8.tar.gz
eibhear-2eaabe4fbd6ba9d46e1e61af8c3504d611776fe8.tar.zst
eibhear-2eaabe4fbd6ba9d46e1e61af8c3504d611776fe8.zip
svgs will be added later
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/cron/checkup2
-rwxr-xr-x.scripts/cron/newsup4
-rwxr-xr-x.scripts/i3cmds/dmenumount6
-rwxr-xr-x.scripts/i3cmds/dmenuumount4
4 files changed, 8 insertions, 8 deletions
diff --git a/.scripts/cron/checkup b/.scripts/cron/checkup
index 770c349..a32cdcb 100755
--- a/.scripts/cron/checkup
+++ b/.scripts/cron/checkup
@@ -3,7 +3,7 @@
ping -q -w 1 -c 1 `ip r | grep -m 1 default | cut -d ' ' -f 3` >/dev/null || exit
-notify-send -i "$PIX/larbs.gif" "Checking for pacakge updates..."
+notify-send -i "$PIX/larbs.svg" "Checking for pacakge updates..."
sudo pacman -Syyuw --noconfirm || notify-send "Error downloading updates.
diff --git a/.scripts/cron/newsup b/.scripts/cron/newsup
index 598cced..a760daa 100755
--- a/.scripts/cron/newsup
+++ b/.scripts/cron/newsup
@@ -4,7 +4,7 @@
ping -q -t 1 -c 1 `ip r | grep -m 1 default | cut -d ' ' -f 3` >/dev/null || exit
-/usr/bin/notify-send -i "$PIX/rss.gif" "Updating RSS feeds..."
+/usr/bin/notify-send -i "$HOME/.pix/rss.svg" "Updating RSS feeds..."
pgrep -x newsboat >/dev/null && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name newsboat)" R && exit
@@ -13,4 +13,4 @@ pkill -RTMIN+6 i3blocks
/usr/bin/newsboat -x reload
rm -f ~/.config/newsboat/.update
pkill -RTMIN+6 i3blocks
-/usr/bin/notify-send -i "$PIX/rss.gif" "RSS feed update complete."
+/usr/bin/notify-send -i "$HOME/.pix/rss.svg" "RSS feed update complete."
diff --git a/.scripts/i3cmds/dmenumount b/.scripts/i3cmds/dmenumount
index 4de7438..a270886 100755
--- a/.scripts/i3cmds/dmenumount
+++ b/.scripts/i3cmds/dmenumount
@@ -17,21 +17,21 @@ getmount() { \
mountusb() { \
chosen="$(echo "$usbdrives" | dmenu -i -p "Mount which drive?" | awk '{print $1}')"
- sudo -A mount "$chosen" && notify-send "$chosen mounted." && exit 0
+ sudo -A mount "$chosen" && notify-send -i "$PIX/usb.svg" "$chosen mounted." && exit 0
getmount "/mnt /media /mount /home -maxdepth 5 -type d"
partitiontype="$(lsblk -no "fstype" "$chosen")"
case "$partitiontype" in
"vfat") sudo -A mount -t vfat "$chosen" "$mp" -o rw,umask=0000;;
*) sudo -A mount "$chosen" "$mp"; user="$(whoami)"; ug="$(groups | awk '{print $1}')"; sudo -A chown "$user":"$ug" 741 "$mp";;
esac
- notify-send "$chosen mounted to $mp."
+ notify-send -i "$PIX/usb.svg" "$chosen mounted to $mp."
}
mountandroid() { \
chosen=$(echo "$anddrives" | dmenu -i -p "Which Android device?" | cut -d : -f 1)
getmount "$HOME -maxdepth 3 -type d"
simple-mtpfs --device "$chosen" "$mp"
- notify-send "Android device mounted to $mp."
+ notify-send -i "$PIX/android.svg" "Android device mounted to $mp."
}
asktype() { \
diff --git a/.scripts/i3cmds/dmenuumount b/.scripts/i3cmds/dmenuumount
index a267010..3191ec5 100755
--- a/.scripts/i3cmds/dmenuumount
+++ b/.scripts/i3cmds/dmenuumount
@@ -7,13 +7,13 @@ unmountusb() {
[ -z "$drives" ] && exit
chosen=$(echo "$drives" | dmenu -i -p "Unmount which drive?" | awk '{print $1}')
[ -z "$chosen" ] && exit
- sudo -A umount "$chosen" && pgrep -x dunst && notify-send "$chosen unmounted."
+ sudo -A umount "$chosen" && pgrep -x dunst && notify-send -i "$PIX/usb.svg" "$chosen unmounted."
}
unmountandroid() { \
chosen=$(awk '/simple-mtpfs/ {print $2}' /etc/mtab | dmenu -i -p "Unmount which device?")
[ -z "$chosen" ] && exit
- fusermount -u "$chosen" && pgrep -x dunst && notify-send "$chosen unmounted."
+ fusermount -u "$chosen" && pgrep -x dunst && notify-send -i "$PIX/android.svg" "$chosen unmounted."
}
asktype() { \