ffplay -hide_banner -fflags nobuffer -f rawvideo -pixel_format rgba -video_size 4x4 -i /dev/input/miceBy running
OUTPUT=$(niri msg --json focused-output); niri msg output $(echo $OUTPUT | jq -r .name) scale $([ $(echo $OUTPUT | jq .logical.scale) = 1.0 ] && echo 2.0 || echo 1.0)the current output's scale is toggled between 1.0 and 2.0.
Can be bound to a keystroke like this:
e.g. Mod+Shift+U:
-
On the device, enable USB debugging (in developer options).
-
Connect device to computer via USB.
-
Run the following on computer:
adb shell awk '"BEGIN{print $(cat /sys/class/power_supply/battery/charge_full) / $(cat /sys/class/power_supply/battery/charge_full_design)}"'
- The number printed is the quotient between the reported current max charge and designed max charge.