XOSD_SET_VERTICAL_OFFSET(3)

πŸ“¦
version 2.2.15 Β· 2 versions
, in arch rolling, debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– xosd_set_vertical_offset β€” Library Functions Manual πŸ’–

ok bestie, welcome to the xosd_set_vertical_offset(3) page, it's giving "how far from the edge do u want ur little on-screen text to vibe" and honestly? iconic. let's get into it πŸ¦‹


✨ NAME ✨

xosd_set_vertical_offset β€” change the offset of the XOSD window, periodt πŸ’…


✨ SYNOPSIS ✨

#include <xosd.h>

int xosd_set_vertical_offset (xosd* osd, int offset);

like yes that's the whole thing, she's short and she slays 🌸


✨ DESCRIPTION ✨

okay so. xosd_set_vertical_offset changes the number of pixels the XOSD window is offset from the top or bottom of the screen. literally just moves ur text away from the very edge, no cap.

and the reason u care: this is normally set to a value such as 48 to avoid desktop-panels, such as those provided by GNOME or KDE. bc nothing is more tragic than ur osd text hiding underneath a panel 😭 main character energy blocked. set it to 48 and let her breathe 🫢


✨ ARGUMENTS ✨

  • osd β€” the on-screen display object to act on. this is ur lil guy, the one ur poking at ✨
  • offset β€” offset from the top or bottom of the screen, in pixels. a number, bestie, just a number πŸ’œ

✨ RETURN VALUE ✨

  • On success, a zero is returned. 0! slay! πŸŽ€
  • On error, -1 is returned. not slay πŸ’€

✨ SEE ALSO ✨

go read those too, they're the rest of the friend group 🌈


lowkey reminder: the offset is in pixels, from the top or the bottom of the screen. don't be out here guessing units, iykyk πŸ™ˆ

and that's the whole page bestie, ur officially fluent πŸ’– this one comes to u from the X OSD Library, dated 2002-06-25 β€” yeah she's vintage, and vintage is always iconic πŸ‘‘βœ¨ bye pookie πŸ¦‹