This guide outlines replacement of the broken EDID metadata file for the device in Linux Operating Systems.
Last-Modified: Sunday, April 11, 2021
• • •
# https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html, aggregate list from each section | |
address-book-new The icon used for the action to create a new address book. | |
application-exit The icon used for exiting an application. Typically this is seen in the application's menus as File->Quit. | |
appointment-new The icon used for the action to create a new appointment in a calendaring application. | |
call-start The icon used for initiating or accepting a call. Should be similar to the standard cellular call pickup icon, a green handset with ear and mouth pieces facing upward. | |
call-stop The icon used for stopping a current call. Should be similar to the standard cellular call hangup icon, a red handset with ear and mouth pieces facing downward. | |
contact-new The icon used for the action to create a new contact in an address book application. | |
document-new The icon used for the action to create a new document. | |
document-open The icon used for the action to open a document. | |
document-open-recent T |
1. Flashing the recovery image: | |
fastboot flash recovery recovery.img | |
2. Flash the kernel and bootloader: | |
fastboot flash boot boot.img | |
3. Erase a partition: | |
fastboot erase cache |
#!/usr/bin/env bash | |
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error | |
# Make sure that the .gnupg directory and its contents is accessibile by your user. | |
chown -R $(whoami) ~/.gnupg/ | |
# Also correct the permissions and access rights on the directory | |
chmod 600 ~/.gnupg/* | |
chmod 700 ~/.gnupg |
import logging | |
import crayons | |
# Define logging colors here | |
LOGGING_STYLES = { | |
'debug': {'color': 'white', 'bold': False}, | |
'info': {'color': 'green', 'bold': True}, | |
'warning': {'color': 'magenta', 'bold': True}, | |
'error': {'color': 'yellow', 'bold': True}, |
0 | |
00 | |
01 | |
02 | |
03 | |
1 | |
1.0 | |
10 | |
100 | |
1000 |
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) { | |
.blurred-container { | |
-webkit-backdrop-filter: blur(10px); | |
backdrop-filter: blur(10px); | |
} | |
} | |
/* slightly transparent fallback for Firefox (not supporting backdrop-filter) */ | |
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) { | |
.blurred-container { |
import canvas from '@napi-rs/canvas' // For canvas. | |
import fs from 'fs' // For creating files for our images. | |
import cwebp from 'cwebp' // For converting our images to webp. | |
// Load in the fonts we need | |
GlobalFonts.registerFromPath('./fonts/Inter-ExtraBold.ttf', 'InterBold'); | |
GlobalFonts.registerFromPath('./fonts/Inter-Medium.ttf','InterMedium'); | |
GlobalFonts.registerFromPath('./fonts/Apple-Emoji.ttf', 'AppleEmoji'); | |
// This function accepts 6 arguments: |
Recently i bought a zuoya gmk67 keyboard, it doesn't have a function keys row and has a knob for volume control. Unfortunately, if you plug your gmk67 in a archlinux machine you will notice that using fn+1
will not produce f1
as expected, it will produce a screen brightness decrease, and if you change the physical switch in the back for the macOS mode, the function keys now work, but the modifier keys don't, quite stressful.
Fear not, you can either alter your system configuration so the keyboard functions normally, as in this gist, or remap the keys, as seen in the gist Using GMK67 keyboard in linux with key remaps!.
For this gist we are going to alter the configuration for the apple hid driver on archlinux, since this keyboard uses it, and alter the functionality of the Fn key.
This is tested on archlinux, for any other distro you might have to figure out yourself the correponding commands!
export function detangle() { | |
let blocked = false | |
return callback => (...args) => { | |
if (blocked) return | |
blocked = true | |
callback(...args) |