first commit
This commit is contained in:
7
showfps.sh
Executable file
7
showfps.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user