Last active
March 29, 2021 18:46
-
-
Save geoffmyers/3fee8449ca187dff6e063fcad1ad9787 to your computer and use it in GitHub Desktop.
Revisions
-
geoffmyers revised this gist
Apr 15, 2020 . 1 changed file with 6 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -14,19 +14,21 @@ if [[ "$1" = "color" ]]; then fi fi if [[ "$1" = "fan" ]]; then $LIQUIDCTL set fan speed "$2" fi if [[ "$1" = "pump" ]]; then $LIQUIDCTL set pump speed "$2" fi echo "π§${LIQUID_TEMP} Β°C π${PUMP_RPM} rpm | size=12" echo "---" echo "Status" echo "$STATUS" echo "---" echo "Color" -
geoffmyers revised this gist
Apr 15, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ LIQUIDCTL="/usr/local/bin/liquidctl" STATUS=$($LIQUIDCTL status) LIQUID_TEMP=$(echo $STATUS | grep "Liquid temperature" | egrep -o "[0-9]{2,3}") FAN_RPM=$(echo $STATUS | grep "Fan speed" | egrep -o "[0-9]{3,4}") PUMP_RPM=$(echo $STATUS | grep "Pump speed" | egrep -o "[0-9]{3,4}") -
geoffmyers created this gist
Apr 15, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,63 @@ #!/usr/local/bin/zsh LIQUIDCTL="/usr/local/bin/liquidctl" STATUS=$($LIQUIDCTL status) LIQUID_TEMP=$(echo $STATUS | egrep -o "[0-9]{2}\.[0-9]{1}") FAN_RPM=$(echo $STATUS | grep "Fan speed" | egrep -o "[0-9]{3,4}") PUMP_RPM=$(echo $STATUS | grep "Pump speed" | egrep -o "[0-9]{3,4}") if [[ "$1" = "color" ]]; then if [[ "$4" ]]; then $LIQUIDCTL set "$2" color "$3" "$4" else $LIQUIDCTL set "$2" color "$3" fi fi if [[ "$1" = "pump" ]]; then $LIQUIDCTL set pump speed "$2" fi if [[ "$1" = "fan" ]]; then $LIQUIDCTL set fan speed "$2" fi echo "π§${LIQUID_TEMP} Β°C π${PUMP_RPM} rpm | size=12" echo "---" echo "Status" echo "$STATUS" echo "---" echo "Color" echo "π΄ Static β Red | color='#ff0000' bash='$0' param1='color' param2='sync' param3='fixed' param4='ff0000' terminal=false refresh=true" echo "π Static β Orange | color='#ff8000' bash='$0' param1='color' param2='sync' param3='fixed' param4='ff8000' terminal=false refresh=true" echo "π‘ Static β Yellow | color='#ffff00' bash='$0' param1='color' param2='sync' param3='fixed' param4='ffff00' terminal=false refresh=true" echo "π’ Static β Green | color='#00ff00' bash='$0' param1='color' param2='sync' param3='fixed' param4='00ff00' terminal=false refresh=true" echo "π΅ Static β Blue | color='#0000ff' bash='$0' param1='color' param2='sync' param3='fixed' param4='0000ff' terminal=false refresh=true" echo "π£ Static β Purple | color='#ff00ff' bash='$0' param1='color' param2='sync' param3='fixed' param4='ff00ff' terminal=false refresh=true" echo "βͺ Static β White | color='#ffffff' bash='$0' param1='color' param2='sync' param3='fixed' param4='ffffff' terminal=false refresh=true" echo "π Effect β Loading | bash='$0' param1='color' param2='ring' param3='loading' param4='0000ff' terminal=false refresh=true" echo "π₯ Effect β Marquee | bash='$0' param1='color' param2='ring' param3='marquee-6' terminal=false refresh=true" echo "π₯ Effect β Marquee (Backwards) | bash='$0' param1='color' param2='ring' param3='backwards-marquee-6' terminal=false refresh=true" echo "π Effect β Spectrum Wave | bash='$0' param1='color' param2='sync' param3='spectrum-wave' terminal=false refresh=true" echo "π Effect β Spectrum Wave (Backwards) | bash='$0' param1='color' param2='sync' param3='backwards-spectrum-wave' terminal=false refresh=true" echo "π Effect β Water Cooler | bash='$0' param1='color' param2='ring' param3='water-cooler' terminal=false refresh=true" echo "π¦ Effect β Wings | bash='$0' param1='color' param2='ring' param3='wings' param4='0000ff' terminal=false refresh=true" echo "β Off | bash='$0' param1='color' param2='sync' param3='off' terminal=false refresh=true" echo "---" echo "πͺ Fan Speed" echo "25% | bash='$0' param1='fan' param2='25' terminal=false refresh=true" echo "50% | bash='$0' param1='fan' param2='50' terminal=false refresh=true" echo "75% | bash='$0' param1='fan' param2='75' terminal=false refresh=true" echo "100% | bash='$0' param1='fan' param2='100' terminal=false refresh=true" echo "---" echo "π Pump Speed" echo "25% | bash='$0' param1='pump' param2='25' terminal=false refresh=true" echo "50% | bash='$0' param1='pump' param2='50' terminal=false refresh=true" echo "75% | bash='$0' param1='pump' param2='75' terminal=false refresh=true" echo "100% | bash='$0' param1='pump' param2='100' terminal=false refresh=true"