Skip to content

Instantly share code, notes, and snippets.

View daniel5151's full-sized avatar
🔨
Hammerin' on some 🦀 code

Daniel Prilik daniel5151

🔨
Hammerin' on some 🦀 code
View GitHub Profile
@daniel5151
daniel5151 / hotkey_hax.sh
Created February 1, 2019 02:27
very hacky function key support for Aero 15x - originally by @sparklespdx
#!/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.
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 February 3, 2022 09:07
Generic Callback Manager
#pragma once
#include <vector>
#include <cstddef>
/**
* Generic Callback Manager
*
* @tparam ...cb_args Types of callback arguments (aside from userdata)
*/