To use this script
-
Install xdotool:
$ sudo apt install xdotool
-
Install this script to /usr/local/bin:
$ sudo cp path/to/file/permafocus.sh /usr/local/bin/
(path/to/file should be replaced by the actual path to the folder containing script, for example ~/Downloads/)