emoji picker -> tofi

This commit is contained in:
John Mertz 2024-08-22 21:48:11 -06:00
parent 1ec8462e91
commit 53873256f4
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,8 @@
# Modified from: https://github.com/dln/wofi-emoji
sed '1,/^### DATA ###$/d' $0 | wofi --show dmenu -i -c $HOME/.dotfiles/wofi/sidebar -s $HOME/.dotfiles/wofi/style.css | cut -d ' ' -f 1 | tr -d '\n' | wl-copy --primary
HEIGHT=$(swaymsg -t get_outputs | tr '\n' ' ' | sed -e 's/ */ /g' | sed -e 's/\(.*"focused": [a-z]*\),/\1\n/' | less | grep '"focused": true' | sed -e 's/.*"rect": {[^}]*"height": \([0-9]*\).*/\1/')
sed '1,/^### DATA ###$/d' $0 | ${HOME}/.local/bin/tofi --prompt-text "❓" --config $HOME/.dotfiles/tofi/sidebar.toml --height $HEIGHT --width 400 | cut -d ' ' -f 1 | tr -d '\n' | wl-copy --primary
exit
### DATA ###
😀 grinning face face smile happy joy :D grin