Skip to content

Instantly share code, notes, and snippets.

Avatar
📚
Studding

Erfan Abdi erfanoabdi

📚
Studding
View GitHub Profile
View bingwallpaper_mac.sh
#!/bin/bash
# this script is not written by me. Just using it and sharing it here.
# export DBUS_SESSION_BUS_ADDRESS environment variable useful when the script is set as a cron job
#PID=$(pgrep gnome-session)
#export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
# $bing is needed to form the fully qualified URL for