XOSD_SET_VERTICAL_OFFSET(3)
π 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,
-1is returned. not slay π
β¨ SEE ALSO β¨
xosd_init(3)xosd_set_pos(3)
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 π¦
π¦ where this page comes from
- arch rolling: xosd 2.2.14-12 Β· GPL2
- debian bookworm: libxosd-dev 2.2.14-2.1+b1
- debian trixie: libxosd-dev 2.2.15-1 Β· GPL-2.0-or-later
- ubuntu jammy: libxosd-dev 2.2.14-2.1build1
- ubuntu noble: libxosd-dev 2.2.14-2.1build1
- ubuntu questing: libxosd-dev 2.2.15-1.1
- ubuntu resolute: libxosd-dev 2.2.15-1.1build1 Β· GPL-2.0-or-later
- ubuntu stonking: libxosd-dev 2.2.15-1.1build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms