Skip to content

Instantly share code, notes, and snippets.

View meganukebmp's full-sized avatar

Nexrem meganukebmp

View GitHub Profile
@meganukebmp
meganukebmp / mshot.sh
Last active April 30, 2019 06:42
A simple maim wrapper with xclip. Used with xfce4 keybinds.
#!/bin/bash
screenshot () {
# o - no openGL 3.0 (legacy mode)
# u - hide cursor
# b - border thickness (negative for inset)
# c - border color (RGBA)
# n - decoration level (window borders)
maim \
-n 0\
# SendMessage(HWND_BROADCAST,WM_SYSCOMMAND, SC_MONITORPOWER, POWER_OFF)
# HWND_BROADCAST 0xffff
# WM_SYSCOMMAND 0x0112
# SC_MONITORPOWER 0xf170
# POWER_OFF 0x0002
Add-Type -TypeDefinition '
using System;
using System.Runtime.InteropServices;
var Jimp = require("jimp"); // load image manipulator
var plist = require("plist"); // load plist parser
var fs = require("fs"); // load filesystem
var selected = "spider_02"; // INPUT change value for different icons
var COL1 = [255, 0, 0];
var COL2 = [255, 255, 0];
var inputData = plist.parse(fs.readFileSync("./input.plist", "utf8")); // parse plist
var data = inputData.frames; // get frames