You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have implemented a customized version of this that will only change the colors of my large thumb keys. A few questions I have.
Is there a way to have it detect changes when a terminal window/tab is switched? I ask because I use neovim and tmux and I have several sessions open. When I switch from one session to another and slide open the terminal (not a new start of terminal) then the colors can get into a missmatch mode where it displays the wrong color. In order to resolve this I have to source my zshrc file every time I switch windows in tmux. Since the script runs in all terminals that I have open I wonder if there is a way to detect that I changed to a different terminal. I tried to execute commands like ls but that did not seem to work either.
Since I am only changing a single key I am wondering if there is a way to keep all other keys as defined in my keymapp layout, for instance when I go to different layers I have different keys that are colored for easy use. However, when I use this script even though I am only changing the thumb keys the led's on all other keys go out and when I hold a layer key the other keys are not colored. Sure I could write all of these colors into my script but would rather not do that since then it could vary from my layout setup in keymapp. I have tried to use restore-rgb-leds before I change the colors of my keys and that seems to use my regular colors from keymapp but as soon as I apply the color to the thumb keys all other key led's turn off. For the time being I have my normal color by using set-rgb-all and using my Icelandic Blue color but again in doing this I lose all my my layer custom key colors.
I have noticed that the sub-process runs in the background and have seen instances where modifying the script and saving it would cause colors to flip back and forth a few times, I am guessing this is because the sleep method that is in the sub-process is still running. Is there a way outside of a reboot to stop this sub-process? I have seen about 15 of then in ps ax previously.
ps ax | grep sleep
21637 ?? SN 0:00.00 sleep 1
21638 ?? SN 0:00.00 sleep 1
21639 ?? SN 0:00.00 sleep 1
21640 ?? SN 0:00.00 sleep 1
21641 ?? SN 0:00.00 sleep 1
21644 ?? SN 0:00.00 sleep 1
21659 ?? SN 0:00.00 sleep 1
21667 ?? SN 0:00.00 sleep 1
21618 s000 SN 0:00.00 sleep 1
21636 s001 SN 0:00.00 sleep 1
21683 s001 S+ 0:00.00 grep sleep
21672 s002 SN 0:00.00 sleep 1
21674 s003 SN 0:00.00 sleep 1
21673 s004 SN 0:00.00 sleep 1
21671 s005 SN 0:00.00 sleep 1
21665 s006 SN 0:00.00 sleep 1
21619 s007 SN 0:00.00 sleep 1
21670 s008 SN 0:00.00 sleep 1
21675 s009 SN 0:00.00 sleep 1
21668 s010 SN 0:00.00 sleep 1
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have implemented a customized version of this that will only change the colors of my large thumb keys. A few questions I have.
Is there a way to have it detect changes when a terminal window/tab is switched? I ask because I use neovim and tmux and I have several sessions open. When I switch from one session to another and slide open the terminal (not a new start of terminal) then the colors can get into a missmatch mode where it displays the wrong color. In order to resolve this I have to source my zshrc file every time I switch windows in tmux. Since the script runs in all terminals that I have open I wonder if there is a way to detect that I changed to a different terminal. I tried to execute commands like
lsbut that did not seem to work either.Since I am only changing a single key I am wondering if there is a way to keep all other keys as defined in my keymapp layout, for instance when I go to different layers I have different keys that are colored for easy use. However, when I use this script even though I am only changing the thumb keys the led's on all other keys go out and when I hold a layer key the other keys are not colored. Sure I could write all of these colors into my script but would rather not do that since then it could vary from my layout setup in keymapp. I have tried to use
restore-rgb-ledsbefore I change the colors of my keys and that seems to use my regular colors from keymapp but as soon as I apply the color to the thumb keys all other key led's turn off. For the time being I have my normal color by usingset-rgb-alland using my Icelandic Blue color but again in doing this I lose all my my layer custom key colors.I have noticed that the sub-process runs in the background and have seen instances where modifying the script and saving it would cause colors to flip back and forth a few times, I am guessing this is because the sleep method that is in the sub-process is still running. Is there a way outside of a reboot to stop this sub-process? I have seen about 15 of then in
ps axpreviously.Beta Was this translation helpful? Give feedback.
All reactions