Skip to content

Instantly share code, notes, and snippets.

View hobbs's full-sized avatar

Zach Hobbs hobbs

  • San Francisco, CA
View GitHub Profile
#!/bin/bash
pushd ${HOME}/.unsplash/
rm *.jpg
unsplash-wallpaper -r -f -w 3840 -h 2160
OUTPUT=`ls -Art | tail -n 1`
dbus-send --session --dest=org.kde.plasmashell --type=method_call /PlasmaShell org.kde.PlasmaShell.evaluateScript 'string:
var Desktops = desktops();
STATUS=5
for (( ; ; ))
do
NEW_STATUS=1
LOG=`date +%s`
LOG="$LOG"
PING_OUT=`ping -t 2 -c 1 google.com 2> /dev/null | grep "1 packets received"`
if [ -z "$PING_OUT" ]