waybar-sway-scratchpad(5)

✨ waybar-sway-scratchpad ✨

okay bestie, so this is the manual page for waybar-sway-scratchpad β€” it lives in section 5 of the File Formats Manual and it's literally all about the sway scratchpad module for waybar. yes, the one that tells you what's chilling in your scratchpad. iconic. πŸ’…


🌸 NAME 🌸

waybar β€” the sway scratchpad module. that's it. that's the whole name. short, sweet, slaying. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

the scratchpad module displays the scratchpad status in Sway. it's giving "hey bestie, here's what's hiding in your scratchpad right now". no cap. ✨


πŸ’– CONFIGURATION πŸ’–

this whole module gets addressed by sway/scratchpad. so that's your key in the config, got it? 🫢


  • format β€” typeof: string, default: {icon} {count}. this is the format, aka how the info should be displayed. you decide the vibe of the readout. ✨
  • show-empty β€” typeof: bool, default: false. the option to show the module even when the scratchpad is empty. so like, do you want it visible when there's nothing in there? your call. πŸ™ˆ
  • format-icons β€” typeof: array/object. based on the current scratchpad window counts, the corresponding icon gets selected. so more windows = different icon, basically a lil vibe check per count. 🌈
  • tooltip β€” typeof: bool, default: true. the option to disable the tooltip on hover. turn it off if the hover popup isn't your main character energy. πŸ’€
  • tooltip-format β€” typeof: string, default: {app}: {title}. the format, aka how the info inside the tooltip should be displayed. πŸ“
  • menu β€” typeof: string. the action that popups the menu. yes, it really says "popups". we love her. πŸ’œ
  • menu-file β€” typeof: string. location of the menu descriptor file. there needs to be an element of type GtkMenu with id menu in there, bestie β€” don't forget that part or it's not gonna work. 😭
  • menu-actions β€” typeof: array. the actions corresponding to the buttons of the menu. one per button, matching up like a little buddy system. 🧚
  • expand β€” typeof: bool, default: false. enables this module to consume all leftover space dynamically. she's HUNGRY. she wants the whole bar. πŸ‘‘

⭐ FORMAT REPLACEMENTS ⭐

these are the little magic words you can drop into your formats, and they get swapped out for real info:

  • {icon} β€” the icon, as defined in format-icons.
  • {count} β€” number of windows in the scratchpad.
  • {app} β€” name of the application in the scratchpad.
  • {title} β€” title of the application in the scratchpad.

periodt. 🌟


πŸ”₯ EXAMPLES πŸ”₯

here's a whole config block, copy it exactly if you want, it's literally free:

"sway/scratchpad": {
     "format": "{icon} {count}",
     "show-empty": false,
     "format-icons": ["", ""],
     "tooltip": true,
     "tooltip-format": "{app}: {title}"
}

ate. no crumbs. πŸ’…


πŸ’… STYLE πŸ’…

the CSS selectors you can style, bestie:

  • #scratchpad
  • #scratchpad.empty

go off with the colors, queen. πŸŽ€


fr fr that's the whole page, nothing skipped, nothing invented. every flag, every default, every replacement token β€” all here. iykyk. 🫢

later bestie!! this was written from the File Formats Manual, waybar-sway-scratchpad(5), dated 2026-02-08 β€” go forth and scratchpad responsibly. βœ¨πŸ’–πŸŒΈ

πŸ“¦ where this page comes from