Skip to content

Instantly share code, notes, and snippets.

@Bluey26
Bluey26 / InvertCss.js
Last active October 24, 2024 21:27
UserScript to invert colors on-click which only is reminded for current tab. Should be added to UserScript manager (tested and working in Firemonkey+Firefox). Present in all sites, except in the ones matched by @ exclude
// ==UserScript==
// @name InvertCSS
// @exclude https://*.github.com/*
// @match *://*/*
// ==/UserScript==
function addGlobalStyle(css) {
let head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
@Bluey26
Bluey26 / GammaStep.sh
Created May 6, 2024 20:53
GammaStep filedialog, which uses 'qarma' to set an specific screen temperature and close the window. Has to be used with a .desktop file pointing to this .sh
#!/bin/bash
menu=("4500" "3500" "RemoveEffect")
answer=`zenity --list --column=Menu ${menu[@]} --title "GammastepColor" --height 200`
if [ "$answer" = "4500" ]; then
#We Verify if there is a gammastep process running and if its running, we kill it before applying new temperature:
processo=$(pidof gammastep)
if [[ -n $processo ]]; then