-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathkeyboard_chroma.sh
More file actions
executable file
·12 lines (12 loc) · 1.85 KB
/
keyboard_chroma.sh
File metadata and controls
executable file
·12 lines (12 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
devn=`find -L /sys/bus/hid/drivers/razerkbd/ -maxdepth 2 -iname matrix_custom_frame`
dev="$(dirname "$devn")"
# dev=/sys/bus/hid/drivers/razerkbd/0003\:1532\:023A.0006
# \RRR_GGG_BBB\RRR_GGG_BBB\RRR_GGG_BBB\RRR_GGG_BBB\RRR_GGG_BBB\RRR_GGG_BBB\RRR_GGG_BBB\RRR_GGG_BBB\RRR_GGG_BBB\RRR_GGG_BBB\RRR_GGG_BBB\RRR_GGG_BBB\RRR_GGG_BBB\RRR_GGG_BBB\RRR_GGG_BBB
echo -ne '\x00\x00\x0f\x00\x00\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\xff\xff\x00\xff\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00' > $dev/matrix_custom_frame
echo -ne '\x01\x00\x0f\x00\x00\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00' > $dev/matrix_custom_frame
echo -ne '\x02\x00\x0f\x00\x00\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00' > $dev/matrix_custom_frame
echo -ne '\x03\x00\x0f\x00\x00\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00' > $dev/matrix_custom_frame
echo -ne '\x04\x00\x0f\x00\x00\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\xff\x00\x00\xff\x00\x00\x00\xff\x00' > $dev/matrix_custom_frame
echo -ne '\x05\x00\x0f\x00\x00\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\x00\x00\x00\xff\x00\x00\xff\x00\x00\xff\x00\xff\x00\x00\xff\x00\x00\xff\x00\x00\x00\xff\x00' > $dev/matrix_custom_frame
echo -n '1' > $dev/matrix_effect_custom