Code changes.

This commit is contained in:
rootniformaticaservice 2023-04-16 01:08:08 -03:00
parent 57943bd687
commit 7429ae7980
1 changed files with 12 additions and 3 deletions

View File

@ -1,7 +1,16 @@
#!/bin/bash
#!/bin/sh
. $HOME/.config/wms/wms_var
emoji=$(cat ~/.emojis | $XMENU | awk '{print $3}')
# pull up the file with dmenu and pipe into xclip to be copied into the clipboard
$XMENU < ~/.emojis | cut -d ' ' -f 3- | xclip
echo "$emoji" | xsel -b && xsel -ob | xsel -i
# To paste somewhere else other than an X application
xclip -o | xclip -sel c
## .emojis file example:
# acid - ⊂(◉‿◉)つ
# afraid - (ㆆ_ㆆ)
# angel - ☜(⌒▽⌒)☞
# angry - (•`_´•)