#!/bin/bash if [ `cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor`="performance" ]; then echo '{"text": "perf", "alt": "perf", "class": "performance", "tooltip": "Governor Performance"}' #echo '' elif [ `cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor`="schedutil" ]; then echo '{"text": "sched", "class": "schedutil", "tooltip": "Governor Schedutil"}' fi