-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathlxqt.py
135 lines (111 loc) · 4.1 KB
/
lxqt.py
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#!/data/data/com.termux/files/usr/bin/python
#
from os import system
from time import sleep
from colorama import *
import os
#
init(autoreset=True)
#
RED = Fore.RED
GREEN = Fore.GREEN
BLUE = Fore.BLUE
YELLOW = Fore.YELLOW
MAGENTA = Fore.MAGENTA
CYAN = Fore.CYAN
BOLD = '\033[1m'
BRIGHT = Style.BRIGHT
BACKRED = Back.RED
BACKGREEN = Back.GREEN
BACKYELLOW = Back.YELLOW
BACKMAGENTA = Back.MAGENTA
RESET = Style.RESET_ALL
#
class pkgs:
X11 = 'pkg install -y x11-repo'
PKGS = 'pkg install -y xcompmgr audacious xpdf qt5-qtbase-gtk-platformtheme qt5-qttools qt5-qtx11extras lxqt lxqt-build-tools otter-browser qgit featherpad gtk2 gtk3 python-tkinter tigervnc xorg-xhost openbox geany qt5-qtwebsockets qt5-qtxmlpatterns qt5-qtdeclarative termux-api geany-plugins xorg-xprop neofetch galculator qt5-qttools glade feathernotes xorg-xprop mtpaint xorg-xhost'
UNSTABLE = 'pkg install -y gobject-introspection at-spi2-atk '
def icons():
system('wget https://github.com/Yisus7u7/termux-desktop-lxqt/releases/download/data/termux_desktop_lxqt_data.tar.xz')
system('tar -xvf termux_desktop_lxqt_data.tar.xz')
system('rm termux_desktop_lxqt_data.tar.xz')
def themes():
system('mv materia-theme/* $PREFIX/share/themes/')
system('rm -rf materia-theme')
system('wget https://github.com/Yisus7u7/termux-desktop-lxqt/releases/download/data/breeze-cursor-theme_5.20.5-4_all.deb')
system('apt install ./breeze-cursor-theme_5.20.5-4_all.deb')
system('rm breeze-cursor-theme_5.20.5-4_all.deb')
class extra:
def access_storage():
system('termux-setup-storage')
def symbolic_link():
system('ln -s $HOME/storage/music $HOME/Music')
#
def setting_desktop():
system('mv $HOME/.config $HOME/.config.old')
system('mv $HOME/.local $HOME/.local.old ')
system('rm -rf $HOME/.config ')
system('rm -rf $HOME/.local')
system('rm -rf $HOME/.themes')
system('rm -rf $HOME/.icons')
system('rm -rf $HOME/.vnc')
system('rm -rf $HOME/Pictures')
system('rm $PREFIX/bin/start-desktop')
system('rm $PREFIX/bin/stop-desktop')
system('rm $PREFIX/bin/vnc-config')
system('rm $PREFIX/bin/vnc-autostart-config')
system('cp -rf $HOME/termux-desktop-lxqt/start-desktop $PREFIX/bin')
system('cp -rf $HOME/termux-desktop-lxqt/stop-desktop $PREFIX/bin')
system('cp -rf $HOME/termux-desktop-lxqt/vnc-config $PREFIX/bin')
system('cp -rf $HOME/termux-desktop-lxqt/vnc-autostart-config $PREFIX/bin')
def folders():
system('mkdir $HOME/Desktop')
system('mkdir $HOME/Downloads')
system('mkdir $HOME/Templates')
system('mkdir $HOME/Public')
system('mkdir $HOME/Documents')
system('mkdir $HOME/Video')
system('chmod +x ~/.vnc/xstartup')
def exit_py():
pass
#
def main():
pass
os.chdir(r'/data/data/com.termux/files/home')
interface = BRIGHT + MAGENTA + "Termux-Desktop "
print(interface.center(60))
sleep(1)
print(BRIGHT + MAGENTA + " ENVIRONMENT :" + RESET + BRIGHT + CYAN + " LXQT ")
sleep(0.2)
print(BRIGHT + MAGENTA + " VERSION :" + RESET + BRIGHT + GREEN + " 2.1.3 ")
sleep(0.2)
print(BRIGHT + MAGENTA + " CREATED BY :" + RESET + BRIGHT + YELLOW + " Yisus7u7")
sleep(1)
print(BRIGHT + MAGENTA + "\n\t Push " + BRIGHT + YELLOW + "ENTER " + BRIGHT + MAGENTA + "to continue ... ")
input(BRIGHT + GREEN + " >> ")
print(BRIGHT + MAGENTA + "REMOVING OLD FILES IF EXISTS" + RESET)
setting_desktop()
print(BRIGHT + MAGENTA + "REMOVING UNNECESSARY FILES AND CLEARING CACHE")
system('apt clean')
system('apt autoremove')
print(RESET + BRIGHT + MAGENTA + "INSTALLING PACKAGES AND APPLICATIONS " + BRIGHT + GREEN )
sleep(0.5)
system(pkgs.X11)
system(pkgs.PKGS)
system(pkgs.UNSTABLE)
print(RESET + BRIGHT + MAGENTA + " \tFetching Themes and Icon File ")
sleep(0.5)
icons()
themes()
print(RESET + MAGENTA + "\t Settingup Directories")
sleep(0.5)
folders()
print(RESET + BRIGHT + MAGENTA + "\t Almost Done ...")
sleep(0.2)
extra.access_storage()
extra.symbolic_link()
print(RESET + BRIGHT + MAGENTA + "\tPROCESS FINISHED ")
sleep(0.5)
print(RESET + BRIGHT + GREEN + " If You Facing Any Issues in LXQT Post that in : ")
print(RESET + BRIGHT + BACKMAGENTA + " https://github.com/Yisus7u7/termux-desktop-lxqt/issues ")
sleep(1)