dotfiles with stow

This commit is contained in:
Michael Chalupiak
2024-09-05 19:14:30 -04:00
parent 2c44971f2f
commit 00f346b438
99 changed files with 28618 additions and 0 deletions

18
config/.scripts/dmenu_emoji Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
# The famous "get a menu of emojis to copy" script.
# Get user selection via dmenu from emoji file.
chosen=$(cut -d ';' -f1 ~/.scripts/store/* | dmenu -i -l 30 | sed "s/ .*//")
# Exit if none chosen.
[ -z "$chosen" ] && exit
# If you run this command with an argument, it will automatically insert the
# character. Otherwise, show a message that the emoji has been copied.
if [ -n "$1" ]; then
xdotool type "$chosen"
else
printf "%s" "$chosen" | xclip -selection clipboard
notify-send "'$chosen' copied to clipboard." &
fi