xosd_set_pos(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_pos β€” the xosd library manual, bestie edition ✨

okay so we're in the xosd_set_pos(3) page of the Library Functions Manual, and honestly? it's giving "tiny function, big main character energy." let's get into it πŸ’…


πŸŽ€ NAME πŸŽ€

xosd_set_pos β€” change the position of the XOSD window 🌈

like. you had a spot. now you want a different spot. this is the function for that. periodt.


🌸 SYNOPSIS 🌸

#include <xosd.h>

int xosd_set_pos (xosd* osd, xosd_pos pos);

yes bestie, that's the whole thing. two args, one int back. no cap. πŸ¦‹


πŸ’– DESCRIPTION πŸ’–

xosd_set_pos changes the position of the XOSD window β€” the one that was initially set way back when xosd_init(3) got called. so if you woke up and chose a different vibe for where your on-screen display lives, this is the glow-up button. ✨


πŸ‘‘ ARGUMENTS πŸ‘‘

  • osd β€” the on-screen display object we're acting on. your lil osd bb. 🫢
  • pos β€” one of XOSD_top or XOSD_bottom (that's the top of the screen or the bottom of the screen, respectively). literally just two options. pick your fighter. πŸ”₯

⭐ RETURN VALUE ⭐

On success, a zero is returned. On error, -1 is returned. that's it. that's the tea. πŸ“

ngl, 0 = slay, -1 = not slay. there is no in-between, she does not do nuance. πŸ’€

🌈 SEE ALSO 🌈

  • xosd_init(3)
  • xosd_set_offset(3)

go read those too, bestie, they're part of the same friend group iykyk πŸ’œ


X OSD Library Β· 2002-06-25 β€” mwah, that's the source, the version, and the date all wrapped up in a lil bow πŸŽ€ tysm for reading, ily, go position something iconic πŸ§šπŸ’–