Skip to content

Instantly share code, notes, and snippets.

View tombh's full-sized avatar

Thomas Buckley-Houston tombh

View GitHub Profile
const RESET: &str = "\x1b[m";
/// Print all the colours of the terminal to STDOUT.
fn print_native_palette() {
println!("โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ");
for y in 0u8..8 {
print!("โ”‚");
print_true_colour_full_bg(255, y, 0);
print_true_colour_full_bg(0, 0, 255);
for x in 0u8..15 {
@tombh
tombh / emoji.bash
Last active March 28, 2025 23:50
A homemade emoji picker
# Dependencies: `uni`, `wl-copy`, `kitty`, `wtype`, `fzf`
# `uni` project: https://github.com/source-foundry/uni
# Usage: `chmod a+x emoji.bash`, then run the script whenever you to pick emojis
export EMOJI_CHAR_PATH="/tmp/unicode_result-$USER.txt"
touch "$EMOJI_CHAR_PATH"
function _unicode_search {
local type=$1