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
1 changed files with 2 additions and 1 deletions

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