-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathterkey.py
More file actions
37 lines (29 loc) · 929 Bytes
/
Copy pathterkey.py
File metadata and controls
37 lines (29 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import os
from time import sleep
a ='\033[92m'
b ='\033[91m'
c ='\033[0m'
def setup():
try:
os.mkdir('/data/data/com.termux/files/home/.termux')
except:
pass
key = "extra-keys = [['ESC','/','-','HOME','UP','END','PGUP'],['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN']]"
open('/data/data/com.termux/files/home/.termux/termux.properties','w').write(key)
os.system('termux-reload-settings')
def banner():
os.system('clear')
print(a+'Shortcut for help you'.center(40))
print(b+'Jere Ganzz'.center(40))
print("".join([i for i in "\n"*3]))
if __name__=='__main__':
banner()
from threading import Thread as td
t = td(target=setup)
t.start()
while t.is_alive():
for i in "-\|/-\|/":
print('\rPlease wait '+i+' ',end="",flush=True)
sleep(0.1)
banner()
print(c+'Follow '+a+'https://github.com/JereGanzz'+c+' Woi')