Fix misplaced focus after full screen
This commit is contained in:
parent
1c8a60c6fd
commit
03132a2284
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
current_wid=$(xdo id)
|
||||||
selection=$(rofi -i -dmenu $@ < $(dirname $0)/kaomoji.txt)
|
selection=$(rofi -i -dmenu $@ < $(dirname $0)/kaomoji.txt)
|
||||||
kaomoji=$(echo $selection | sed "s|$(echo -e "\ufeff").*||")
|
kaomoji=$(echo $selection | sed "s|$(echo -e "\ufeff").*||")
|
||||||
echo -n "$kaomoji" | xclip -selection clipboard
|
echo -n "$kaomoji" | xclip -selection clipboard
|
||||||
xdotool key --clearmodifiers ctrl+v
|
xdotool key --window $current_wid --clearmodifiers ctrl+v
|
||||||
|
|
Loading…
Reference in New Issue