Files
scripts-bash/showfps.sh
2026-03-30 15:48:25 -06:00

8 lines
260 B
Bash
Executable File

#!/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