blob: 6b455129ef9bac7810fa5d8372ec252dab97e607 (
plain)
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
|
#!/usr/bin/env bash
# export xterm flags
export local showprogress="xterm -maximized -e"
export local showresults="xterm -maximized -hold -e"
# import user interfaces
source /usr/lib64/sisyphus/accesoriesui.sh
source /usr/lib64/sisyphus/gamesui.sh
source /usr/lib64/sisyphus/graphicsui.sh
source /usr/lib64/sisyphus/internetui.sh
source /usr/lib64/sisyphus/multimediaui.sh
source /usr/lib64/sisyphus/officeui.sh
source /usr/lib64/sisyphus/systemui.sh
# create main user interface
export local mainui='
<window title="Sisyphus - A simple Epkg GUI" window-position="1" icon-name="gtk-search" modal="true" resizable="false" width-request="800" height-request="600">
<vbox>
<frame>
<hbox space-expand="false" space-extend="false">
<text space-expand="true" space-extend="true">
<label>MANAGE PACKAGES</label>
</text>
</hbox>
<hbox space-expand="false" space-extend="false">
<entry space-expand="true" space-extend="true">
<default>Enter package(s)</default>
<variable>pkgname</variable>
</entry>
</hbox>
<hbox space-expand="false" space-extend="false">
<button space-expand="true" space-extend="true" tooltip-text="Search package(s)">
<input file>/usr/share/sisyphus/search.svg</input>
<action>$showresults epkg search $pkgname</action>
</button>
<button space-expand="true" space-extend="true" tooltip-text="Install package(s)">
<input file>/usr/share/sisyphus/install.svg</input>
<action>$showprogress epkg autoinstall $pkgname</action>
</button>
<button space-expand="true" space-extend="true" tooltip-text="Uninstall package(s)">
<input file>/usr/share/sisyphus/remove.svg</input>
<action>$showprogress epkg autoremove $pkgname</action>
</button>
<button space-expand="true" space-extend="true" tooltip-text="Upgrade system">
<input file>/usr/share/sisyphus/upgrade.svg</input>
<action>$showprogress epkg autoupgrade</action>
</button>
<button space-expand="true" space-extend="true" tooltip-text="Remove orphan packages(s) aka no longer needed">
<input file>/usr/share/sisyphus/purge.svg</input>
<action>$showprogress epkg autoclean</action>
</button>
</hbox>
<hseparator space-expand="true" space-extend="true"></hseparator>
<hbox space-expand="false" space-extend="false">
<text space-expand="true" space-extend="true">
<label>BROWSE PACKAGES</label>
</text>
</hbox>
<hbox space-expand="true" space-extend="true">
<button tooltip-text="Accesories">
<input file>/usr/share/sisyphus/accesories.svg</input>
<action signal="button-press-event">gtkdialog --space-expand=true --space-fill=true --program=accesoriesui &</action>
<action signal="button-release-event">EXIT:ok</action>
</button>
<button tooltip-text="Games">
<input file>/usr/share/sisyphus/games.svg</input>
<action signal="button-press-event">gtkdialog --space-expand=true --space-fill=true --program=gamesui &</action>
<action signal="button-release-event">EXIT:ok</action>
</button>
<button tooltip-text="Graphics">
<input file>/usr/share/sisyphus/graphics.svg</input>
<action signal="button-press-event">gtkdialog --space-expand=true --space-fill=true --program=graphicsui &</action>
<action signal="button-release-event">EXIT:ok</action>
</button>
<button tooltip-text="Internet">
<input file>/usr/share/sisyphus/internet.svg</input>
<action signal="button-press-event">gtkdialog --space-expand=true --space-fill=true --program=internetui &</action>
<action signal="button-release-event">EXIT:ok</action>
</button>
</hbox>
<hbox space-expand="true" space-extend="true">
<button tooltip-text="Sound & Video">
<input file>/usr/share/sisyphus/multimedia.svg</input>
<action signal="button-press-event">gtkdialog --space-expand=true --space-fill=true --program=multimediaui &</action>
<action signal="button-release-event">EXIT:ok</action>
</button>
<button tooltip-text="Office">
<input file>/usr/share/sisyphus/office.svg</input>
<action signal="button-press-event">gtkdialog --space-expand=true --space-fill=true --program=officeui &</action>
<action signal="button-release-event">EXIT:ok</action>
</button>
<button tooltip-text="System Tools">
<input file>/usr/share/sisyphus/system.svg</input>
<action signal="button-press-event">gtkdialog --space-expand=true --space-fill=true --program=systemui &</action>
<action signal="button-release-event">EXIT:ok</action>
</button>
</hbox>
</frame>
</vbox>
</window>
'
|