summaryrefslogtreecommitdiff
path: root/libsisyphus.sh
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2016-12-24 21:21:56 +0000
committerV3n3RiX <venerix@redcorelinux.org>2016-12-24 21:21:56 +0000
commit6b3099135638121af264e3b37e0232a44585d3d7 (patch)
tree65f48fe098ffd213149e6a3c61c0a61f85be6d34 /libsisyphus.sh
parentbeb36e61bf918d6ef455a30b1c200394ec12e18e (diff)
use xterm instead of zenity clone yad. Better control of env variables, and we have interactive mode, one can abort an operation at any time
Diffstat (limited to 'libsisyphus.sh')
-rwxr-xr-xlibsisyphus.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/libsisyphus.sh b/libsisyphus.sh
index 38b7bd4..6b38c72 100755
--- a/libsisyphus.sh
+++ b/libsisyphus.sh
@@ -1,7 +1,8 @@
#!/usr/bin/env bash
-# export yad worker variable
-export local showdialog="yad --title "sisyphus" --text-info --width 800 --height 600 --center --no-buttons --on-top --sticky --fixed --skip-taskbar --listen --tail &"
+# 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
@@ -28,23 +29,23 @@ export local mainui='
<hbox>
<button tooltip-text="Search for package(s)">
<label>Search package(s)</label>
- <action>epkg search $pkgname | $showdialog</action>
+ <action>$showresults epkg search $pkgname</action>
</button>
<button tooltip-text="Install new package(s) (no confirmation)">
<label>Install package(s)</label>
- <action>epkg autoinstall $pkgname | $showdialog</action>
+ <action>$showprogress epkg autoinstall $pkgname</action>
</button>
<button tooltip-text="Uninstall package(s) safely (no confirmation)">
<label>Remove package(s)</label>
- <action>epkg autoremove $pkgname | $showdialog</action>
+ <action>$showprogress epkg autoremove $pkgname</action>
</button>
<button tooltip-text="Upgrade system (no confirmation)">
<label>Upgrade System</label>
- <action>epkg autoupgrade | $showdialog</action>
+ <action>$showprogress epkg autoupgrade</action>
</button>
<button tooltip-text="Remove orphan packages(s) aka no longer needed (no confirmation)">
<label>Remove orphan package(s)</label>
- <action>epkg autoclean | $showdialog</action>
+ <action>$showprogress epkg autoclean</action>
</button>
</hbox>
</frame>