Skip to content

Instantly share code, notes, and snippets.

View arthurx07's full-sized avatar
:octocat:
coding

Artur Leivar arthurx07

:octocat:
coding
  • Barcelona, Spain
  • 12:22 (UTC +01:00)
View GitHub Profile
@ConnerWill
ConnerWill / ANSI-escape-sequences.md
Last active January 5, 2026 14:59
ANSI Escape Sequences cheatsheet

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@gbgabo
gbgabo / dwm-monocle-patch.c
Last active January 23, 2023 16:28
dwm vanity gaps for monocle layout
// snippet of refactored monocle() function, to support gaps on monocle layout too
// just substitute the monocle() function located on your dwm.c file to this snippet
// this change requires vanity-gaps patch on your dwm build - https://dwm.suckless.org/patches/vanitygaps/
// disable/enable gaps and gaps controls work just like in tile layout
// credits to breakfict for this contribution: https://www.reddit.com/r/suckless/comments/m88dwg/monocle_gaps/grxs54k/?context=3
void
monocle(Monitor *m)
{
unsigned int n = 0, oe = enablegaps;