Skip to content

Instantly share code, notes, and snippets.

@farhaven
Created March 7, 2019 19:07
Show Gist options
  • Save farhaven/80844bd7bc692269a83c9e136f1450e9 to your computer and use it in GitHub Desktop.
Save farhaven/80844bd7bc692269a83c9e136f1450e9 to your computer and use it in GitHub Desktop.
#!/bin/ksh
# Place sets in ~/.config/clipstuff/$NAME
# Sets are lines of
# name | item
# item will be placed in the X-Selection after it's selected with dmenu.
SET="unicode"
if [ $# -gt 0 ]; then
SET="$1"
fi
SETF="${HOME}/.config/clipstuff/$SET"
if ! test -f "$SETF"; then
notify-send "Set '$SET' doesn't seem to exist :/"
exit 1
fi
choice=$(cat "$SETF" | dmenu -p "$SET")
if [ -z "$choice" ]; then
exit 0
fi
echo -n $choice | cut -d'|' -f2- | cut -d' ' -f2- | tr -d '\n' | xclip
rabota | работа
books | 📚
book closed | 📕
book open | 📖
poop | 💩
checkbox | ☑
uncheckbox | ☐
crossbox | ☒
checkmark | ✓
crossmark | ✗
heart | ♥
star | ★
smiley | ☺
warning | ⚠
arrow left | ←
arrow right | →
arrow up | ↑
arrown down | ↓
triangle left | ◀
triangle right | ▶
triangle up | ▲
triangle down | ▼
alpha | α
beta | β
gamma | γ
delta | δ
Delta | Δ
epsilon | ε
lambda | λ
Lambda | Λ
Theta | θ
pi | π
sigma | σ
sum / Sigma | ∑
rho | ρ
eta | η
zeta | ζ
xi | ξ
Psi | Ψ
Phi | Φ
infinity | ∞
squared | ²
cubed | ³
approx | ≈
element | ∈
not element | ∉
cdot, bullet | ∙
union, cup | ∪
intersection, cap | ∩
not equal | ≠
implies, arrow right double | ⇒
equivalent, arrow both double | ⇔
and | ∧
or | ∨
not | ¬
shrug | ¯\_(ツ)_/¯
party | ᕕ( ᐛ )ᕗ
dude | ಠ_ಠ
table flip | (╯°□°)╯︵ ┻━┻
table levitate | (/¯◡ ‿ ◡)/¯ ~ ┻━┻
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment