Squashed commit of the following:
- rofi kaomoji-picker.sh and keybind in i3
- rofi edit for vimish motions
- indent change
- swapped tmux keys
- echo port on auto port
- added proxy ignore to newsboat autofetch
- added xorg-xwayland
- autoport mc script using socat
- removed /dev from cam alias
This commit is contained in:
19
env/.local/bin/system/kaomoji-picker.sh
vendored
Executable file
19
env/.local/bin/system/kaomoji-picker.sh
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/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 --arg sel "$choice" '..| select(.name==$sel)? | .emoticons | .[]' "$KAO_FILE")
|
||||
|
||||
emoj=$(echo "$emojlist" | sed /^$/d | rofi -dmenu "$prompt_message")
|
||||
|
||||
if [ "$WAYLAND_DISPLAY" ]; then
|
||||
echo "$emoj" | wl-copy
|
||||
else
|
||||
echo "$emoj" | xclip -sel clip
|
||||
fi
|
||||
Reference in New Issue
Block a user