Skip to content

Instantly share code, notes, and snippets.

View lacksfish's full-sized avatar
👨‍💻

lacksfish

👨‍💻
View GitHub Profile
@Migacz85
Migacz85 / autorotation.sh
Last active May 4, 2024 14:46
Autorotation of your linux display script. Tested on Manjaro KDE, firstly go to https://github.com/hadess/iio-sensor-proxy, make and install (dont worry that is for GNOME ). When installed correctly monitor-sensor should work from command line giving you outputs from sensors. On the end make that script, and execute. It should work. Enjoy :)
#!/bin/bash
#This script will automaticly rotate your screen and change correctly touches from the screen.
#Before running the script:
#go to https://github.com/hadess/iio-sensor-proxy and and follow all steps to install the code.
#find your TOUCHPAD, and TRANSFORM, variables. You can find them using
#typing in terminal:
#xinput list
#tested on hp x360 13s-s150sa, manjaro kde
#in case when you dont want install iio-sensor-proxy you can use this script:
#https://gist.github.com/tuxflo/5b400c86a5ebde871d94c6bff94ad6cb
@dmurawsky
dmurawsky / index.js
Last active May 22, 2024 19:01
How to make a page full height in Next.js
const FullHeightPage = () => (
<div>
Hello World!
<style global jsx>{`
html,
body,
body > div:first-child,
div#__next,
div#__next > div {
height: 100%;