LinuxScrips/Keyboard_RGB/kbd-layout_logitech_g513.sh

35 lines
1.9 KiB
Bash
Raw Permalink Normal View History

2022-02-01 23:49:29 +01:00
#!/bin/bash
g513-led -a 000000;sleep 0.025
g513-led -k esc FF0000, sleep 0.025
for i in {f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12}; do g513-led -k $i FF00FF;sleep 0.025; done
for i in {printscr,scrolllock,pausebreak}; do g513-led -k $i FFFFFF;sleep 0.025; done
for i in {tilde,1,2,3,4,5,6,7,8,9,0,minus,equal}; do g513-led -k $i 00FF00;sleep 0.025; done
g513-led -k back FF8800;sleep 0.025
for i in {ins,home,pageup}; do g513-led -k $i 00FFFF;sleep 0.025; done
g513-led -k tab FF8800;sleep 0.025
for i in {q,w,e,r,t,y,u,i,o,p,open_bracket,close_bracket}; do g513-led -k $i 00FF00;sleep 0.025; done
g513-led -k enter FF0000; sleep 0.025
for i in {del,end,pagedown}; do g513-led -k $i 00FFFF;sleep 0.025; done
g513-led -k capslock FF8800;sleep 0.025
for i in {a,s,d,f,g,h,j,k,l,semicolon,quote,dollar}; do g513-led -k $i 00FF00;sleep 0.025; done
g513-led -k enter FF8800; sleep 0.025
g513-led -k shiftleft FF8800; sleep 0.025
for i in {intl_backslash,z,x,c,v,b,n,m,comma,period,slash}; do g513-led -k $i 00FF00;sleep 0.025; done
g513-led -k shiftright FF8800; sleep 0.025
g513-led -k arrowtop 0000FF; sleep 0.025
for i in {ctrll,winl,altl}; do g513-led -k $i FF8800;sleep 0.025; done
g513-led -k space 00FF00;sleep 0.025
for i in {altr,winr,menu,ctrlr}; do g513-led -k $i FF8800;sleep 0.025; done
for i in {arrowleft,arrowbottom,arrowright}; do g513-led -k $i 0000FF;sleep 0.025; done
for i in {numlock,numslash,numasterisk,numminus,numplus}; do g513-led -k $i FFFF00;sleep 0.025; done
for i in {num9,num8,num7,num4,num5,num6,numplus,numenter}; do g513-led -k $i FF8800;sleep 0.025; done
for i in {num3,num2,num1,num0,num.,numenter}; do g513-led -k $i FF0000;sleep 0.025; done
g513-led -k esc FF0000;sleep 0.5
g513-led -k esc 000000;sleep 0.5
g513-led -k esc FF0000;sleep 0.5
g513-led -k esc 000000;sleep 0.5
g513-led -k esc FF0000;sleep 0.5
g513-led -k esc 000000;sleep 0.5
g513-led -k esc FF0000