This file contains 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 | |
# | |
# 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 |
This file contains 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
{ pkgs ? import <nixpkgs> {} }: | |
let | |
fixWrapper = pkgs.runCommand "fix-wrapper" {} '' | |
mkdir -p $out/bin | |
for i in ${pkgs.gcc.cc}/bin/*-gnu-gcc*; do | |
ln -s ${pkgs.gcc}/bin/gcc $out/bin/$(basename "$i") | |
done | |
for i in ${pkgs.gcc.cc}/bin/*-gnu-{g++,c++}*; do | |
ln -s ${pkgs.gcc}/bin/g++ $out/bin/$(basename "$i") |