Skip to content

Instantly share code, notes, and snippets.

@furui
furui / ExtendedChips.vue
Created March 18, 2017 10:10
Auto-completing Chips for Quasar
<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"
@furui
furui / backlight-daemon.sh
Created December 22, 2017 04:26
Set xbacklight to ACPI brightness (ROG GL702VM but probably GL502VM as well)
#!/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 / 90-custom-keyboard.hwdb
Created December 15, 2019 02:59
Keychron K2 udev hwdb to remap PgUp, PgDn, Home, and End to laptop style layout (Home, PgUp, PgDn, End)
evdev:input:b0003v05ACp024F*
KEYBOARD_KEY_7004b=home
KEYBOARD_KEY_7004e=pageup
KEYBOARD_KEY_7004a=pagedown
@furui
furui / instructions.txt
Created December 23, 2020 22:34
Motile M142 ryzenadj and zenstates services [35W TDP and 1.2 undervolt]
Linux Mint 20 (Ubuntu) instructions:
git clone https://github.com/r4m0n/ZenStates-Linux
modify zenstates.py to use python3
copy zenstates.py to /usr/local/bin/zenstates
git clone https://github.com/FlyGoat/RyzenAdj
build ryzenadj
copy ryzenadj to /usr/local/bin/ryzenadj