Skip to content

Instantly share code, notes, and snippets.

Avatar
🔨
Hammerin' on some 🦀 code

Daniel Prilik daniel5151

🔨
Hammerin' on some 🦀 code
View GitHub Profile
@daniel5151
daniel5151 / hotkey_hax.sh
Created Feb 1, 2019
very hacky function key support for Aero 15x - originally by @sparklespdx
View hotkey_hax.sh
#!/bin/bash
# Hotkeys Hax
#
# I'm still figuring out how to add HID drivers for this keyboard.
# I'm not sure if it's possible given that most of the keys that I care about
# (brightness controls, airplane mode, fan toggle) don't seem to register
# key releases; only key presses. The keyboard seems to be using a custom
# implementation for these keys, the codes don't follow the HID standard.
# I will document this behavior further in the README.
View mutter-144hz.patch
diff --git a/clutter/clutter/clutter-main.c b/clutter/clutter/clutter-main.c
index 1753048f8..74a191c66 100644
--- a/clutter/clutter/clutter-main.c
+++ b/clutter/clutter/clutter-main.c
@@ -96,7 +96,7 @@ static gboolean clutter_use_fuzzy_picking = FALSE;
static gboolean clutter_enable_accessibility = TRUE;
static gboolean clutter_sync_to_vblank = TRUE;
-static guint clutter_default_fps = 60;
+static guint clutter_default_fps = 144;
@daniel5151
daniel5151 / callback_manager.h
Last active May 2, 2020
Generic Callback Manager
View callback_manager.h
#pragma once
#include <vector>
#include <cstddef>
/**
* Generic Callback Manager
*
* @tparam ...cb_args Types of callback arguments (aside from userdata)
*/