== /usr/bin/lxterminal2 ========================
1 lxterminal
2 python getfocus.py
==========================================
== ~/getfocus.py ============================
1 import os
2 import subprocess
3 batcmd="xdotool search lx"
4 result = subprocess.check_output(batcmd, shell=True)
5 result = result.split('\n')
6 result.sort()
7 target = result[len(result)-1]
8 cmd = "xdotool windowactivate " + target
9 os.system(cmd)
==========================================
and link hot-key command with "lxterminal2"
댓글 없음:
댓글 쓰기