I3/Sway plugin containing programming wisdom to meditate over during long coding sessions.
Programming Wisdom
is a simple snippet for various tiling wm bar plugins which displays excerpts, proverbs, quotes and other wisdoms from across programming spectrum, based on 600+ assorted texts. Currently supported plugins:
- polybar
- waybar
- i3blocks
Download programming_wisdom
script
curl -o programming_wisdom https://raw.githubusercontent.com/exaroth/programming-wisdom/main/programming_wisdom
Make it executable:
chmod +x programming_wisdom
And put it in the location of your choice
[module/programming-wisdom]
type = custom/script
exec = /path/to/programming_wisdom
tail = true
"custom/programming-wisdom": {
"escape": "true",
"exec": "/path/to/programming_wisdom",
"max-length": 60,
"min-length": 60
}
[PROGRAMMING_WISDOM]
command=SNIPPET_OUTPUT_PANGO=1 /path/to/programming_wisdom
color=#959692
interval=persist
markup=pango
Snippet can be configured by passing various env vars to the script, most straightforward way to do it is to pass them as a prefix when calling the executable, eg.
ENV_VAR=val /path/to/programming_wisdom
Available settings:
SNIPPET_INTERVAL
- Defines how often to swap quotes (in seconds) (default:10 minutes
)SNIPPET_DELAY
- Refresh interval when outputting text (default6
)SNIPPET_WIDTH
- Width of the snippet (default60
)SNIPPET_ALIGN
- Set text alignment when outputting text, available values:left
,right
,center
(defaultleft
)SNIPPET_SHOW_AUTHOR
- Set whether to print author as part of the snippet output, available values:0
/1
SNIPPET_OUTPUT_PANGO
- Output text inpango
format (with monospace font set),0
/1
See LICENSE
file for details