Skip to content

Instantly share code, notes, and snippets.

View eslindsey's full-sized avatar

Eric Lindsey eslindsey

  • Southwest Florida, United States
  • 21:09 (UTC -04:00)
View GitHub Profile
@eslindsey
eslindsey / span.sh
Created August 9, 2019 19:39
Span an X window across all screens
#!/bin/bash
# USAGE
# span.sh command [arguments]
#
# DESCRIPTION
# Executes command, waits for a new window to appear, then stretches that window across the entire screen area.
#
# REQUIREMENTS
# wmctrl - for finding and controlling X windows
@eslindsey
eslindsey / avatar.sh
Last active June 28, 2017 08:00
Set avatar for Discord bot
#!/bin/bash
# This script allows you to update the avatar for a Discord bot you created
# (regardless of whether your framework includes that feature or not). Discord
# uses the App Icon when you first create a bot, but after that it requires an
# API call if you want to change it. This script performs that API call.
if [ $# -lt 2 ]; then
echo
echo "Usage: $0 bot-token filename"