summaryrefslogtreecommitdiff
path: root/ui/systemui.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ui/systemui.sh')
-rwxr-xr-xui/systemui.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/ui/systemui.sh b/ui/systemui.sh
new file mode 100755
index 0000000..9a3e95e
--- /dev/null
+++ b/ui/systemui.sh
@@ -0,0 +1,36 @@
+#!/usr/bin/env bash
+
+# create system user interface
+export local systemui='
+<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 System>
+ <hbox space-expand="true" space-extend="true">
+ <table hscrollbar-policy="1" vscrollbar-policy="1" exported-column="1">
+ <variable>system</variable>
+ <label>Application Category|Application Name|Application Description</label>
+ <item>sys-boot|unetbootin-static|Universal Netboot Installer creates Live USB systems for various OS distributions</item>
+ </table>
+ </hbox>
+ <hbox space-expand="false" space-extend="false">
+ <button space-expand="true" space-extend="true" label-text="install">
+ <label>Install package</label>
+ <action>$showprogress epkg autoinstall $system</action>
+ </button>
+ <button space-expand="true" space-extend="true" label-text="uninstall">
+ <label>Uninstall package</label>
+ <action>$showprogress epkg autoremove $system</action>
+ </button>
+ <button space-expand="true" space-extend="true" label-text="home">
+ <label>Back home</label>
+ <action signal="button-press-event">gtkdialog --space-expand=true --space-fill=true --program=mainui &</action>
+ <action signal="button-release-event">EXIT:ok</action>
+ </button>
+ <button space-expand="true" space-extend="true" label-text="exit">
+ <label>Exit</label>
+ <action>EXIT:ok</action>
+ </button>
+ </hbox>
+</frame>
+</vbox>
+</window>'