Created
April 28, 2020 00:35
-
-
Save mrt0rtikize/2b4964b3f2f62006c94744c92dbf97e5 to your computer and use it in GitHub Desktop.
changing RGB led of logitech keyboards (using g810-led utility) script fow pywal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
g810-led -g logo $(bash -c "sed -n '2p' $HOME/.cache/wal/colors | sed 's/#//'") | |
g810-led -g indicators $(bash -c "sed -n '2p' $HOME/.cache/wal/colors | sed 's/#//'") | |
g810-led -g fkeys $(bash -c "sed -n '2p' $HOME/.cache/wal/colors | sed 's/#//'") | |
g810-led -g modifiers $(bash -c "sed -n '2p' $HOME/.cache/wal/colors | sed 's/#//'") | |
g810-led -g multimedia $(bash -c "sed -n '2p' $HOME/.cache/wal/colors | sed 's/#//'") | |
g810-led -g arrows $(bash -c "sed -n '3p' $HOME/.cache/wal/colors | sed 's/#//'") | |
g810-led -g numeric $(bash -c "sed -n '2p' $HOME/.cache/wal/colors | sed 's/#//'") | |
g810-led -g functions $(bash -c "sed -n '2p' $HOME/.cache/wal/colors | sed 's/#//'") | |
g810-led -g keys $(bash -c "sed -n '3p' $HOME/.cache/wal/colors | sed 's/#//'") | |
g810-led -k caps_lock $(bash -c "sed -n '2p' $HOME/.cache/wal/colors | sed 's/#//'") | |
g810-led -k capslock $(bash -c "sed -n '2p' $HOME/.cache/wal/colors | sed 's/#//'") | |
g810-led -k tab $(bash -c "sed -n '2p' $HOME/.cache/wal/colors | sed 's/#//'") | |
# vim arrows | |
#g810-led -k h $(bash -c "sed -n '4p' $HOME/.cache/wal/colors | sed 's/#//'") | |
#g810-led -k j $(bash -c "sed -n '4p' $HOME/.cache/wal/colors | sed 's/#//'") | |
#g810-led -k k $(bash -c "sed -n '4p' $HOME/.cache/wal/colors | sed 's/#//'") | |
#g810-led -k l $(bash -c "sed -n '4p' $HOME/.cache/wal/colors | sed 's/#//'") | |
# WASD | |
g810-led -k w $(bash -c "sed -n '7p' $HOME/.cache/wal/colors | sed 's/#//'") | |
g810-led -k a $(bash -c "sed -n '7p' $HOME/.cache/wal/colors | sed 's/#//'") | |
g810-led -k s $(bash -c "sed -n '7p' $HOME/.cache/wal/colors | sed 's/#//'") | |
g810-led -k d $(bash -c "sed -n '7p' $HOME/.cache/wal/colors | sed 's/#//'") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment