This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import fdt | |
import argparse | |
# Return root node for given dtb file | |
def get_root(dtb): | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tag=$1 | |
tmpfile=/tmp/`openssl rand -base64 10 | tr -cd '[:alpha:][:digit:]'`.jpg | |
echo "Downloading" | |
curl -Ls "https://source.unsplash.com/2880x1800/?$tag" -o "$tmpfile" | |
echo "Setting wallpaper" | |
osascript -e "tell application \"Finder\" to set desktop picture to POSIX file \"$tmpfile\"" | |
sleep 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A script to fetch the Image of the day from Bing and set it as wallpaper on Ubuntu Gnome. | |
wallpaper='/tmp/wallpaper.jpg' | |
width=1366 | |
wget "https://bing.biturl.top/?resolution=$width&format=image&index=0&mkt=en-US" -O $wallpaper | |
gsettings set org.gnome.desktop.background picture-uri $wallpaper |