Skip to content

Instantly share code, notes, and snippets.

@mildmojo
mildmojo / rotate_desktop.sh
Created June 18, 2014 06:47
Script to rotate the screen and touch devices on modern Linux desktops. Great for convertible laptops.
#!/bin/bash
#
# rotate_desktop.sh
#
# Rotates modern Linux desktop screen and input devices to match. Handy for
# convertible notebooks. Call this script from panel launchers, keyboard
# shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.).
#
# Using transformation matrix bits taken from:
# https://wiki.ubuntu.com/X/InputCoordinateTransformation
@npcardoso
npcardoso / acpi_wakeups.sh
Created June 10, 2014 14:56
A script to enable/disable all acpi wakeup events
#!/bin/bash
if [[ $# > 1 || ($1 != "enable" && $1 != "disable") ]]; then
echo "Usage: $0 <enable|disable>"
exit 1
fi
if [[ $1 == "enable" ]]; then
TOGGLE=`grep '\*disabled' /proc/acpi/wakeup | cut -d ' ' -f1`
else
@ql-owo-lp
ql-owo-lp / straight.google.user.js
Last active September 3, 2020 18:51
Straight Google
// ==UserScript==
// @name Straight Google
// @id straight_google_pokerface
// @version 1.17.13
// @author Pokerface - Kevin
// @namespace in.co.tossing.toolkit.google
// @description Remove URL redirection from google products
// @license GPL v3 or later version
// @downloadURL https://userscripts.org/scripts/source/121261.user.js
// @updateURL https://userscripts.org/scripts/source/121261.meta.js