first commit
This commit is contained in:
.local/bin
backup-mcbin-cpcleanercleanertmpcmus-shelldmenumountdmenuumountdmenuunicodeeix-repos-syncf2pyf2py3f2py3.6geoipgetforecastgit-init-folderhosts-updatemailsyncminecraft-launchermouse-setnightobshraspscreen-switcherscreenshotscreenshot-areaset-wallpapershut-sup-restspeedtest-clissh-permissionsstream-twitchstream-youtubesuspend-at-timetempterm-wmitwitchupdateupdate-kernelwelcomerwelcomer-serwerwheelwylaczoffyatqayt-mp3yt-video
.tmux.conf.vim
.viminfo.vimrc.zshrc
18
.local/bin/dmenuunicode
Executable file
18
.local/bin/dmenuunicode
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
# Give dmenu list of all unicode characters to copy.
|
||||
# Shows the selected character in dunst if running.
|
||||
|
||||
# Must have xclip installed to even show menu.
|
||||
xclip -h >/dev/null || exit
|
||||
|
||||
chosen=$(grep -v "#" ~/dwm/emoji | dmenu -i -l 20 -fn Monospace-18)
|
||||
|
||||
[ "$chosen" != "" ] || exit
|
||||
|
||||
c=$(echo "$chosen" | sed "s/ .*//")
|
||||
echo "$c" | tr -d '\n' | xclip -selection clipboard
|
||||
notify-send "'$c' copied to clipboard." &
|
||||
|
||||
s=$(echo "$chosen" | sed "s/.*; //" | awk '{print $1}')
|
||||
echo "$s" | tr -d '\n' | xclip
|
||||
notify-send "'$s' copied to primary." &
|
Reference in New Issue
Block a user