diff options
-rwxr-xr-x | libsisyphus | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/libsisyphus b/libsisyphus index 339cc5e..7be2ca6 100755 --- a/libsisyphus +++ b/libsisyphus @@ -4,7 +4,42 @@ export local showdialog="yad --title "sisyphus" --text-info --width 800 --height 600 --center --no-buttons --on-top --sticky --fixed --skip-taskbar --listen --tail &" export local showprogress="yad --title "sisyphus" --progress --pulsate --width 800 --center --no-buttons --on-top --sticky --fixed --undecorated --skip-taskbar --auto-close &" -# main ui functions +# games category ui function +export local gameswindow=' +<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 Games> + <hbox space-expand="true" space-extend="true"> + <table hscrollbar-policy="1" vscrollbar-policy="1" exported-column="1"> + <variable>game</variable> + <label>Application Category|Application Name|Application Description</label> + <item>app-emulation|steam|Digital distribution client bootstrap package</item> + <item>games-action|armagetronad|A Tron Clone in 3D</item> + <item>games-action|chromium-bsu|A fast paced top scrolling shooter</item> + <item>games-action|supertuxkart|Kart racing game featuring Tux and his friends</item> + <item>games-action|teeworlds|Fast-paced multiplayer 2D shooter game</item> + <item>games-board|aisleriot|A collection of patience games written in guile scheme</item> + <item>games-fps|urbanterror|A team-based tactical shooter based on the Quake 3 Engine</item> + <item>games-fps|xonotic|Fork of Nexuiz, Deathmatch FPS based on DarkPlaces, an advanced Quake 1 engine</item> + <item>games-simulation|openttd|An engine for running Transport Tycoon Deluxe</item> + <item>games-strategy|0ad|Cross-platform, 3D and historically-based real-time strategy game</item> + </table> + </hbox> + <hbox space-expand="false" space-extend="false"> + <button space-expand="true" space-extend="true" label-text="install"> + <label>Install Selected Application</label> + <action>epkg autoinstall $game|$showdialog</action> + </button> + <button space-expand="true" space-extend="true" label-text="uninstall"> + <label>Uninstall Selected Application</label> + <action>epkg autoremove $game|$showdialog</action> + </button> + </hbox> +</frame> +</vbox> +</window>' + +# main ui function export local mainwindow=' <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> @@ -47,6 +82,7 @@ export local mainwindow=' </button> <button tooltip-text="Games"> <label>Games</label> + <action>gtkdialog --space-expand=true --space-fill=true --program=gameswindow</action> </button> <button tooltip-text="Graphics"> <label>Graphics</label> |