A few things to work with FreeBSD

This commit is contained in:
Colin Powell
2020-01-27 01:01:51 -05:00
parent 9d9fc04c39
commit adc472661f
3 changed files with 13 additions and 29 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# This Script downloads National Geographic Photo of the day, and sets it as desktop background (gnome, unity)
# Copyright (C) 2012 Saman Barghi - All Rights Reserved
# Permission to copy, modify, and distribute is granted under GPLv3
@ -7,6 +7,7 @@
# For feh, we need display set properly
export DISPLAY=:0.0
export XAUTHORITY=/home/powellc/.Xauthority
# Get daily Astrobin PotD

View File

@ -1,13 +1,6 @@
#!/bin/sh
STATE=`nmcli networking connectivity`
if [ $STATE = 'full' ]
then
notmuch search --output=files tag:deleted | xargs -l rm
notmuch new
muchsync rhea.unbl.ink
exit 0
fi
echo "No internet connection"
notmuch search --output=files tag:deleted | xargs -0 rm
notmuch new
muchsync rhea.unbl.ink
exit 0