From 03132a22845caecc53254c74dd50d2894ce99309 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sat, 27 Apr 2019 21:29:29 +0530 Subject: [PATCH] Fix misplaced focus after full screen --- kaomoji.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kaomoji.sh b/kaomoji.sh index 6fbb628..53421ec 100755 --- a/kaomoji.sh +++ b/kaomoji.sh @@ -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