summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-10-07 15:20:23 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-10-07 15:20:23 +0100
commit9f4293703f5860432801ab68da90c07a4eb728e2 (patch)
treeea5f358bcc11d9116f82edd506ba4f18de5db585
parent606a10de6f176908511cf748ab70fbe0c4d325c8 (diff)
add initial prealpha version...it works, but much more needs to be done
-rwxr-xr-xsisyphus76
1 files changed, 76 insertions, 0 deletions
diff --git a/sisyphus b/sisyphus
new file mode 100755
index 0000000..cac7521
--- /dev/null
+++ b/sisyphus
@@ -0,0 +1,76 @@
+#!/bin/bash
+
+export local showprogress="yad --title "sisyphus" --text-info --width 640 --height 480 --center --listen --tail &"
+export local SISYPHUS='
+<window title="Sisyphus - Package Manager" window-position="1" icon-name="gtk-about" modal="true" resizable="false" width-request="1000" height-request="600">
+<vbox>
+<frame Manage Packages>
+ <hbox>
+ <text>
+ <label>Enter package(s)</label>
+ </text>
+ <entry>
+ <variable>pkgname</variable>
+ </entry>
+ </hbox>
+ <hbox>
+
+ <button tooltip-text="Install new package(s) (no confirmation)">
+ <label>Install package(s)</label>
+ <action>epkg autoinstall $pkgname | $showprogress</action>
+ <action>sleep 1</action>
+ <action>wmctrl -F -a "sisyphus" -b add,above</action>
+ </button>
+ <button tooltip-text="Search for package(s)">
+ <label>Search package(s)</label>
+ <action>epkg search $pkgname | $showprogress</action>
+ <action>sleep 1</action>
+ <action>wmctrl -F -a "sisyphus" -b add,above</action>
+ </button>
+ <button tooltip-text="Uninstall package(s) safely (no confirmation)">
+ <label>Uninstall package(s)</label>
+ <action>epkg autoremove $pkgname | $showprogress</action>
+ <action>sleep 1</action>
+ <action>wmctrl -F -a "sisyphus" -b add,above</action>
+ </button>
+ <button tooltip-text="Update portage tree, portage configs && Kogaion overlay">
+ <label>Update Databases</label>
+ <action>epkg update | $showprogress</action>
+ <action>sleep 1</action>
+ <action>wmctrl -F -a "sisyphus" -b add,above</action>
+ </button>
+ <button tooltip-text="Upgrade system (no confirmation)">
+ <label>Upgrade System</label>
+ <action>epkg autoupgrade | $showprogress </action>
+ <action>sleep 1</action>
+ <action>wmctrl -F -a "sisyphus" -b add,above</action>
+ </button>
+ <button tooltip-text="Display information about installed core packages and portage configuration">
+ <label>Sysinfo</label>
+ <action>epkg sysinfo | $showprogress</action>
+ <action>sleep 1</action>
+ <action>wmctrl -F -a "sisyphus" -b add,above</action>
+ </button>
+ </hbox>
+</frame>
+<frame Terminal Emulator>
+ <hbox>
+ <terminal argv0="/bin/bash">
+ <variable>vte1</variable>
+ <input>echo epkg</input>
+ </terminal>
+ </hbox>
+</frame>
+<frame Exit>
+ <hbox>
+ <button>
+ <label>Exit</label>
+ <action>EXIT:ok</action>
+ </button>
+ </hbox>
+</frame>
+</vbox>
+</window>
+'
+
+gtkdialog --space-expand=true --space-fill=true --program=SISYPHUS