Skip to content

Instantly share code, notes, and snippets.

[root@Master hid]# cat 0003:256C:006D.*/rdesc
05 0d 09 01 a1 01 85 08 09 20 a0 14 25 01 75 01 09 42 09 44 09 46 95 03 81 02 95 03 81 03 09 32 95 01 81 02 95 01 81 03 95 01 a4 05 01 65 13 55 fd 75 18 34 09 30 27 5c d0 00 00 47 04 29 00 00 81 02 09 31 27 fc 80 00 00 47 64 19 00 00 81 02 b4 09 30 75 10 27 ff 1f 00 00 81 02 54 65 14 35 c4 45 3c 15 c4 25 3c 75 08 95 02 09 3d 09 3e 81 02 c0 c0 05 01 09 07 a1 01 85 f7 14 25 01 75 01 05 0d 09 39 a0 09 44 95 01 81 02 05 01 09 30 09 31 95 02 81 02 95 15 81 01 05 09 19 01 29 0a 95 0a 81 02 c0 05 01 09 05 a0 05 09 19 01 29 03 95 03 81 02 95 33 81 01 c0 c0 05 01 09 07 a1 01 85 f8 14 05 0d 09 39 a0 25 01 75 01 05 09 09 01 95 01 81 02 95 07 81 01 75 08 95 02 81 01 05 0d 0a ff ff 26 ff 00 95 01 81 02 05 01 09 38 95 01 15 00 25 07 81 02 09 30 09 31 14 25 01 75 01 95 02 81 02 95 2e 81 01 c0 c0 05 01 09 07 a1 01 85 f9 14 05 0d 09 39 a0 25 01 75 01 95 01 81 01 05 09 09 01 95 01 81 02 95 06 81 01 75 08 95 02 81 01 05 0d 0a ff ff 26 ff 00 95 01 81 02 05 01 09 38 95 01 15 ff 25 01
@NeoTheFox
NeoTheFox / pg9167.conf
Created July 24, 2020 15:43
xboxdrv config for PG-9167
#iPEGA PG-9167 Config
[xboxdrv]
evdev-debug = false
evdev-grab = true
rumble = false
mimic-xpad = true
[evdev-absmap]
ABS_HAT0X = dpad_x
Rage.1700.342015 win-x86 Release Oct 10 2012 14:14:10
------ Initializing File System ------
Current search path:
C:/users/steamuser/Saved Games/id Software/Rage/base/
Z:/var/games/steam/steamapps/common/RAGE/base/
file system initialized.
BenchmarkGameData: ofs 0 and 0x1208090624x
46 microseconds
20 microseconds
20 microseconds
@NeoTheFox
NeoTheFox / waybar solarized.css
Created June 21, 2019 11:01
My take on solarized waybar
/* List of colors */
/* {
--base03: #002b36;
--base02: #073642;
--base01: #586e75;
--base00: #657b83;
--base0: #839496;
--base1: #93a1a1;
--base2: #eee8d5;
#!/bin/sh
if [ -z "$1" ]
then
echo "No argument supplied"
else
export DISPLAY=$1
fi
if pgrep Xorg > /dev/null
then
@NeoTheFox
NeoTheFox / keybase
Created October 2, 2018 14:48
Keybase Proof
### Keybase proof
I hereby claim:
* I am NeoTheFox on github.
* I am neothefox (https://keybase.io/neothefox) on keybase.
* I have a public key whose fingerprint is 8F6D 5625 1B75 F6F2 388B 3C63 AADE F32B D45E 6587
To claim this, I am signing this object:
#!/bin/bash
#This is a simple calc for looking glass
#Licenced by WTFPL
#by NeoTheFox 2018
#USAGE:
#glasscalc.sh WidthxHeight
function printhelp
SUBSYSTEM=="usb", ATTR{idVendor}=="0603", ATTR{idProduct}=="0008", RUN+="/bin/sudo -u neothefox /bin/sh /usr/local/bin/init_keyboard.sh :0"
# Shadow
shadow = false;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
# shadow-opacity = 0.7;
# shadow-red = 0.0;
@NeoTheFox
NeoTheFox / powerswitch.sh
Last active October 30, 2017 20:55
A script to switch the governor if steam is running
#!/bin/bash
GOVERNOR=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
if [ $1 == "-d" ]
then
while :
do
GOVERNOR=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)