Advertisement
kimmoli

Untitled

Jul 30th, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. FILENAME="$1"
  2.  
  3. if [ -e "$FILENAME" ]; then
  4. dbus-send --system --print-reply --dest=com.kimmoli.toholed / com.kimmoli.toholed.draw \
  5. string:"bitmap" int32:0 int32:0 \ array:byte:0x42,0x4d,0x62,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3e,0x00,0x00,0x00,0x`xxd -c 1 -ps "$FILENAME" \
  6. | sed 's/$/,0x/' | tr -d "\n" | rev | cut -c 4- | rev`
  7. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement