Skip to content

Instantly share code, notes, and snippets.

@asdfman
asdfman / trayfix.patch
Created April 23, 2012 17:59
Compton patch for error 9 caused by Java AWT tray icon creation. Occurs occasionally with Tint2 and possibly other system trays. You can find Compton at https://github.com/chjj/compton. Put the patch in the source folder and execute "patch < trayfix.patch
--- compton.c 2012-04-23 20:49:21.000000000 +0300
+++ compnew.c 2012-04-23 20:49:09.000000000 +0300
@@ -1005,6 +1005,11 @@
continue;
}
+ /* patch for error 9 caused by java AWT tray icons */
+ if (w->a.width < 2 && w->a.height < 2) {
+ continue;
@asdfman
asdfman / conv.sed
Created April 26, 2012 08:34
ShimejiEE -> Shimeji configuration conversion script
#!/bin/sed -f
# conv.sed - converts Shimeji EE configuration files to the standard Japanese format
#
# Usage : Execute in the directory containing the script and all 4 configuration files :
# conv.sed actions.xml > Actions.xml
# conv.sed behaviors.xml > Behavior.xml
#
# ------------------
# IMPORTANT : Make sure you use a Japanese 'Mascot.xsd' schema file with your converted
@asdfman
asdfman / batch-drop-shadow.scm
Created April 29, 2012 08:16
Simple GIMP script for applying filters to an entire batch of (Shimeji) images.
; Simple GIMP script for batch filter operations. Will retain transparency. Intended input image format is PNG.
; Made this for the purpose of adding drop shadows and other filters to Shimeji imagesets. Save this file
; to ~/.gimp scripts/ . Execute in the directory containing the images you wish to modify :
; gimp-console -b '(batch-drop-shadow "*.png" 0 0 4)' -b '(gimp-quit 0)'
; Where 0 0 4 is the x offset, y offset and the radius for the drop shadow.
; For more information on how to apply other filters, check out Filters -> Script-Fu -> Console -> Browse in GIMP
(define (batch-drop-shadow pattern
offsetx