RES(1)

πŸ“¦
version 2021-03 Β· 2 versions
, in nixos 26.05

πŸ’– RES(1) πŸ’–

okay so real talk, this is a page from the General Commands Manual and it's literally about the res command. bestie, it's giving "small tool, big main character energy" ✨


🌸 NAME 🌸

res β€” get screen resolution. that's it. that's the whole vibe. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

res [format]

πŸŽ€ DESCRIPTION πŸŽ€

so res retrieves the screen resolution β€” and ngl it only does this in an X11 session, so keep that in mind. 🫢

✨ FORMAT SPECIFIERS ✨

these are the little placeholder cuties you can drop into your format string:

  • ${height} β€” height of screen in pixels.
  • ${width} β€” width of screen in pixels.

like, that's the whole specifier menu. short, sweet, iconic. πŸ‘‘


πŸ’œ EXAMPLES πŸ’œ

executing res with no format, like so:

res

runs res with the default format, '${height}x${width}'. sample result: '1920x1080' β€” lowkey a classic. 😌

a custom format can be used, e.g.:

res '${height}px high, ${width}px wide'

sample result: '1920px high, 1080px wide' β€” see how it ate that? πŸ”₯


πŸ’€ KNOWN ISSUES πŸ’€

  • res does not work on Wayland. no cap, it just doesn't. 😭

πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? please report any bugs to https://github.com/lptstr/fetchutils/issues or to kiedtl@tilde.team. the maintainers wanna hear from you, fr fr. πŸ’Œ


🌈 SEE ALSO 🌈

fetchutils(1)

also, quick heads up: the full documentation for res is not maintained as a Texinfo manual. if the info and res programs are properly installed on your system, the command

info res

should not give you access to the complete manual. yeah. that's the whole bit. πŸ’€


πŸ‘‘ LICENSE πŸ‘‘

Copyright Β© 2020 KiΓ«d Llaentenn and contributors

This utility is licensed under the MIT license. slay. πŸŽ€


okay that's the whole page!! hope that cleared things up bestie, go get those pixels πŸ’–βœ¨

this was res(1), dated 1980-01-01 β€” yes, before most of us existed, and it's still serving. bye bestie!! πŸ¦‹πŸ’…

πŸ“¦ where this page comes from