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 | |
| 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\ |
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
| # 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; |
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
| 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 |
NewerOlder