This file contains hidden or 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 | |
FILE=${1:-ERROR} | |
MOUNTPATH=${2:-/mnt/image/} | |
OWD=$PWD | |
if [ "x$FILE" = "xERROR" ] | |
then | |
echo "No file specified" | |
exit 1 | |
fi |
This file contains hidden or 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 | |
capturefile="$HOME/Dropbox/Public/screenshot_`date +%F_%H-%M-%S`.png" | |
#echo $capturefile | |
scrot -s "$capturefile" | |
URL=$(dropbox puburl "$capturefile") | |
echo -n "$URL" | xclip -selection p | |
echo -n "$URL" | xclip -selection c | |
notify-send "Screenshot Uploaded" "Screenshot uploaded as $URL" | |
echo "$URL" |
This file contains hidden or 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/perl -w | |
use strict; | |
use threads; | |
use threads::shared; | |
my $script_dir = $ENV{"HOME"}."/.dwm/dwstat"; | |
my $divider = " | "; |
This file contains hidden or 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 | |
# Easy to use! | |
# awsetbg -u /path/to/multi-bg-set.sh -r /path/to/images | |
# Or, just call it by itself: /path/to/multi-bg-set.sh /path/to/some/image.ext | |
INPUT=$1 | |
if [ ! -f "$INPUT" ] | |
then | |
echo "Input file must exist!" | |
exit 1 |
NewerOlder