Skip to content

Instantly share code, notes, and snippets.

@furui
furui / 90-custom-keyboard.hwdb
Created Dec 15, 2019
Keychron K2 udev hwdb to remap PgUp, PgDn, Home, and End to laptop style layout (Home, PgUp, PgDn, End)
View 90-custom-keyboard.hwdb
evdev:input:b0003v05ACp024F*
KEYBOARD_KEY_7004b=home
KEYBOARD_KEY_7004e=pageup
KEYBOARD_KEY_7004a=pagedown
@furui
furui / backlight-daemon.sh
Created Dec 22, 2017
Set xbacklight to ACPI brightness (ROG GL702VM but probably GL502VM as well)
View backlight-daemon.sh
#!/bin/bash
while true
do
inotifywait -e modify /sys/class/backlight/acpi_video0/brightness
echo brightness set to: $(cat /sys/class/backlight/acpi_video0/brightness)
xbacklight -set $(cat /sys/class/backlight/acpi_video0/brightness)
done
@furui
furui / ExtendedChips.vue
Created Mar 18, 2017
Auto-completing Chips for Quasar
View ExtendedChips.vue
<template>
<div
class="q-chips group textfield"
@click="focus"
:class="{active: active, disabled: disable, readonly: readonly}"
>
<span
class="chip label bg-light text-grey-9"
v-for="(label, index) in value"
:key="index"
You can’t perform that action at this time.