A few things to work with FreeBSD
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user