-
Notifications
You must be signed in to change notification settings - Fork 0
/
trash.py
53 lines (39 loc) · 1.2 KB
/
trash.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
import os
def trash():
print("""
--------------------------------------------------------------
| Type 1 if you need to enable a trash can icon on the desktop |
| Type 2 if you need to disable the trash icon |
--------------------------------------------------------------
""")
x = int (input("--> "))
if x == 1:
os.system("gsettings set org.gnome.shell.extensions.ding show-trash true")
print ("""
-----------------------------------
| All done, now check it out! |
| Press any button (Enter) to go on |
-----------------------------------
""")
input()
os.system("clear")
elif x == 2:
os.system("gsettings set org.gnome.shell.extensions.ding show-trash false")
print ("""
-----------------------------------
| All done, now check it out! |
| Press any button (Enter) to go on |
-----------------------------------
""")
input()
os.system("clear")
else:
print ("""
--------------------------------------
| Hmmm... Reopen script, and try again |
| Type 1 or 2 next time (hit ENTER) |
--------------------------------------
""")
input()
os.system("clear")
pass