Unix3r

Build. Break. Learn. Repeat.

Starting0%
Skip to content

unix3r/dotfiles

Public
main
U Unix3r Initial commit: sway + waybar dotfiles (Catppuccin Mocha) eb290df
12 lines · 528 B Raw History
1#!/usr/bin/env bash
2# emoji.sh — pick an emoji/symbol, copy it and type it into the focused window.
3# The list lives in ~/.config/sway/scripts/emoji.txt — add your own lines.
4source "$(dirname "$0")/_lib.sh"
5list="$(dirname "$(readlink -f "$0")")/emoji.txt"
6[[ -f $list ]] || { notify emoji dialog-error "Emoji list missing" "$list"; exit 1; }
7
8pick=$(menu "Emoji" --width 500 --height 400 < "$list") || exit 0
9char=${pick%% *}
10printf '%s' "$char" | wl-copy
11has wtype && wtype "$char"
12notify emoji face-smile "Copied $char"