Skip to content

u/ctdunc

In this archive from Oct 2019 to Apr 2020

1
posts
17
comments
1
media
214
score

Top posts

Top comments

TBH I started using suckless utilities as a way to force myself to learn C.

​

It's still not going that well but I'm trying. I've found that typically when you apply patches, if the hunk fails you can (a), follow the compiler output to try and fix the error, or (b), change the order you patch in. Some patches conflict. I also haven't added much except for some sensible shortcuts.

5 points

Thanks brother (but said in the way that Hulk Hogan says it)

I'm still kind of in the process of cleaning out my dotfiles + getting everything uploaded nicely (stagit is so simple that I can't use it w/ my current file permission setup oops), so here's a code snippet to tide you over. It's inspired from something, but I actually don't remember what it is. Otherwise, I'd have posted a link :)

​

 /* 8 normal colors */
        [0] = "#000000", /* black   */
        [1] = "#b797f0", /* red     */
        [2] = "#14db49", /* green   */
        [3] = "#403d70", /* yellow  */
        [4] = "#385a70", /* blue    */
        [5] = "#869bff", /* magenta */
        [6] = "#8d33cd", /* cyan    */
        [7] = "#999999", /* white   */

        /* 8 bright colors */
        [8]  = "#38372c", /* black   */
        [9]  = "#7c54b0", /* red     */
        [10] = "#a2e655", /* green   */
        [11] = "#9c6f59", /* yellow  */
        [12] = "#323f5c", /* blue    */
        [13] = "#5e6c99", /* magenta */
        [14] = "#667d77", /* cyan    */
        [15] = "#ffffff", /* white   */

        /* special colors */
        [256] = "#000000", /* background */
        [257] = "#ffffff", /* foreground */
4 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.