diff --git a/.local/bin/dmenulib b/.local/bin/dmenulib new file mode 100755 index 0000000..c451b6a --- /dev/null +++ b/.local/bin/dmenulib @@ -0,0 +1,20 @@ + #!/bin/sh + +files="$(find -L "$HOME/Tower/Library")" + +options=$(echo $files | xargs --delimiter="\n" basename -a) + +# Get user selection via dmenu from emoji file. +chosen=$(cut -d ';' -f1 ~/.local/share/emojis | 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 "$chosen" | xclip -selection clipboard + notify-send "'$chosen' copied to clipboard." & +fi diff --git a/.local/share/wallpapers b/.local/share/wallpapers new file mode 120000 index 0000000..5db9ad7 --- /dev/null +++ b/.local/share/wallpapers @@ -0,0 +1 @@ +/home/chris/Tower/Pictures/Wallpapers/Dual 4K \ No newline at end of file