#!/bin/bash while true; do FPS=$(hyprctl -j activeworkspace | jq '.monitorID' | xargs -I {} hyprctl -j monitors | jq ".[] | select(.id=={}) | .lastFrameTime" | awk '{ printf "%.0f", 1000 / $1 }') echo "{\"text\":\"🎮 ${FPS} FPS\"}" sleep 1 done