1
0
mirror of https://gitlab.com/ceda_ei/kaomoji-rofi synced 2025-03-12 10:06:54 +01:00

Fix misplaced focus after full screen

This commit is contained in:
Ceda EI 2019-04-27 21:29:29 +05:30
parent 1c8a60c6fd
commit 03132a2284

View File

@ -1,6 +1,7 @@
#!/usr/bin/env bash
current_wid=$(xdo id)
selection=$(rofi -i -dmenu $@ < $(dirname $0)/kaomoji.txt)
kaomoji=$(echo $selection | sed "s|$(echo -e "\ufeff").*||")
echo -n "$kaomoji" | xclip -selection clipboard
xdotool key --clearmodifiers ctrl+v
xdotool key --window $current_wid --clearmodifiers ctrl+v