1download_controlpanel 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. export MAIN_DIALOG='
  3. <window title="1download control panel" icon-name="gtk-dialog-warning">
  4. <vbox>
  5. <hbox>
  6. <text><label>Pause after current package has downloaded:</label></text>
  7. <button>
  8. <label>Pause</label>
  9. <action>echo 'Pause' > /tmp/1download-status-request</action>
  10. </button>
  11. </hbox>
  12. <hbox>
  13. <text><label>Resume downloading if currently paused:</label></text>
  14. <button>
  15. <label>Resume</label>
  16. <action>echo 'Resume' > /tmp/1download-status-request</action>
  17. </button>
  18. </hbox>
  19. <hbox>
  20. <text><label>Quit 1download script after current pkg has download:</label></text>
  21. <button>
  22. <label>Quit</label>
  23. <action>echo 'Quit' > /tmp/1download-status-request</action>
  24. <action type="exit">Exit</action>
  25. </button>
  26. </hbox>
  27. <text><label>Note: If you Quit, 1download can be run again and will continue from where it left off. That is, previously downloaded packages will not be re-downloaded.</label></text>
  28. </vbox>
  29. </window>
  30. '
  31. gtkdialog3 --program=MAIN_DIALOG &
  32. echo -n $! > /tmp/1download_controlpanel_pid