Skip to content

Instantly share code, notes, and snippets.

View barolo's full-sized avatar
💀
terminally online

Greg Shuiske barolo

💀
terminally online
  • Portugal/Poland
View GitHub Profile
@jkcdarunday
jkcdarunday / kde-autobrightness.lua
Last active April 2, 2024 16:27
An MPV script for KDE users that sets the screen brightness to max when going fullscreen while playing a video
-- Author: Jan Keith Darunday <github@jkcdarunday.mozmail.com>
-- Description: An MPV script for KDE users that sets the screen brightness to max when going fullscreen while playing a video
local dbus_path = "/org/kde/Solid/PowerManagement/Actions/BrightnessControl"
local service_name = "local.org_kde_powerdevil"
local max_brightness = tonumber(io.popen("qdbus " .. service_name .. " " .. dbus_path .. " brightnessMax"):read("*all"))
local default_brightness
function get_current_brightness()
@leiteg
leiteg / back.html
Last active September 4, 2022 20:41
Anki theme with Dracula-inspired colors.
{{FrontSide}}
<div class="outside"> Answer</div>
<div class="card-back shadow">
<div class="back">{{Back}}</div>
{{#BackOpt}}
<hr />
<div class="backopt">{{BackOpt}}</div>
@charveey
charveey / 75-noto-color-emoji.conf
Created June 29, 2019 07:14
How to better enable Color Emojis! Fontconfig ships with some config files that are simply not enough to enable color emojis globally (the 45-generic.conf and 60-generic.conf) and just by installing Noto Color Emoji font will also not enable colorful emojis on all websites or some apps. However, this can easily be configured by creating a config…
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Add generic family. -->
<match target="pattern">
<test qual="any" name="family"><string>emoji</string></test>
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
</match>
@cryzed
cryzed / fix-infinality.md
Last active June 24, 2024 02:24
A set of instructions on how to fix the harfbuzz + Infinality issue and restoring good-looking, Infinality-like font rendering.

Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.

Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.

Check the gist's comments for any further tips and instructions, especially if you are running into problems!

Screenshots

Results after following the guide as of 11.01.2017 13:08:

@natyusha
natyusha / pix_reddit.css
Last active November 2, 2017 21:25
pix_ reddit DEPRECATED
/*
//pix_ reddit
//by twnsnd // natyusha
*/
@-moz-document domain('reddit.com') {
/* gfycat/mediacrush fix*/
.gfyRVid.loaded, .video.loaded {
position: relative !important;