Files
dotfiles/env/.local/bin/system/kaomoji-picker.sh
iceyrazor 5c4872f306 Squashed commit of the following:
- auto game restart after killing game thread
    - detect_leaks 0 for dap
    - excludes to backup
    - fixed typo "suff"
    - another one
    - added new mime
    - added serv sync script
    - unset qt theme for mumble
    - switched to printf on kaomoji-picker
    - moved stuff from wayland to hyprland
    - keybind to kill GameThread
2025-12-12 22:57:51 -06:00

20 lines
574 B
Bash
Executable File

#!/bin/bash
# set up to work with https://github.com/Aptivi-Analytics/KaomojiList.git
KAO_FILE="$HOME/stuff/manual-programs/KaomojiList/kaomojis.json"
choices=$(jq '.[]|.categories|.[]|.name' "$KAO_FILE" | sed 's/"//g')
choice=$(echo "$choices" | sed /^$/d | rofi -dmenu "$prompt_message")
emojlist=$(jq -r --arg sel "$choice" '..| select(.name==$sel)? | .emoticons | .[]' "$KAO_FILE")
emoj=$(echo "$emojlist" | sed /^$/d | rofi -dmenu "$prompt_message")
if [ "$WAYLAND_DISPLAY" ]; then
printf -- "$emoj" | wl-copy
else
printf -- "$emoj" | xclip -sel clip
fi