Quickly generate RGB codes


I needed to quickly generate a bunch of RGB hex codes. I also needed them to be available in the clipboard.

The best solution that I could find was to use pastel.

The magic command is the following.

pastel random -n 1 | pastel format | xclip -sel clip

Now put on a keybind, with something like i3 and you have a handy code at the stroke of a few buttons.

Read more ⟶