slitaz-arm rev 86

Add custom Links home and splitt JWM menus
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 01 16:34:16 2014 +0200 (2014-04-01)
parents fc765bf5cd6f
children d670034c1f00
files cgi-adm/data/header.html rootfs/etc/xdg/jwm/menus.jwmrc rootfs/etc/xdg/jwm/system.jwmrc rootfs/usr/share/webhome/links.html
line diff
     1.1 --- a/cgi-adm/data/header.html	Sun Mar 30 20:21:03 2014 +0100
     1.2 +++ b/cgi-adm/data/header.html	Tue Apr 01 16:34:16 2014 +0200
     1.3 @@ -5,7 +5,8 @@
     1.4  	<title>SliTaz ARM - _TITLE_</title>
     1.5  	<link rel="stylesheet" type="text/css" href="data/style.css" />
     1.6  </head>
     1.7 -<body>
     1.8 +<!-- bgcolor is for Links -->
     1.9 +<body bgcolor="#ffffff">
    1.10  
    1.11  <header>
    1.12  	<div id="logo"></div>
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/rootfs/etc/xdg/jwm/menus.jwmrc	Tue Apr 01 16:34:16 2014 +0200
     2.3 @@ -0,0 +1,36 @@
     2.4 +<?xml version="1.0"?>
     2.5 +
     2.6 +<JWM>
     2.7 +	
     2.8 +	<!-- Applications menu -->
     2.9 +	<RootMenu height="22" onroot="12">
    2.10 +		<Menu icon="applications-accessories.png" label="Accessories">
    2.11 +			<Program icon="galculator.png" label="Calculator">calculator</Program>
    2.12 +			<Program icon="gnome-screenshot.png" label="Screenshot">shutterbug</Program>
    2.13 +			<Program icon="joe.png" label="Text Editor">terminal -e joe</Program>
    2.14 +		</Menu>
    2.15 +		<Menu icon="applications-system.png" label="System Tools">
    2.16 +			<Program icon="utilities-system-monitor.png" label="Top Monitor">terminal -e top</Program>
    2.17 +			<!--<Program icon="raspberrypi.png" label="TazBerry Tool">terminal -e 'su -c tazberry'</Program>-->
    2.18 +			<Program icon="gnome-settings.png" label="System Config">terminal -e 'su -c slitaz-config'</Program>
    2.19 +			<Program icon="slitaz-icon.png" label="Web Admin">links -g http://localhost/adm</Program>
    2.20 +		</Menu>
    2.21 +		<Menu icon="applications-internet.png" label="Network">
    2.22 +			<Program icon="links.xpm" label="Links Web browser">links -g /usr/share/webhome/links.html</Program>
    2.23 +			<Program icon="internet-web-browser.png" label="Lynx Web browser">terminal -e lynx</Program>
    2.24 +			<Program icon="xchat.png" label="TazIRC IRC client">terminal -e 'tazirc --ask'</Program>
    2.25 +		</Menu>
    2.26 +		<Program icon="file-manager.png" label="File manager">PathFinder</Program>
    2.27 +		<Program icon="text-editor.png" label="Text editor">adie</Program>
    2.28 +		<Program icon="xterm.png" label="Terminal">terminal</Program>
    2.29 +	</RootMenu>
    2.30 +	
    2.31 +	<!-- System menus -->
    2.32 +	<RootMenu height="22" onroot="3">
    2.33 +		<Restart label="Restart JWM" icon="system-restart.png" />
    2.34 +		<Exit label="Exit JWM" confirm="true" icon="system-suspend.png" />
    2.35 +		<Program icon="system-restart.png" label="Reboot system">reboot</Program>
    2.36 +		<Program icon="system-shut-down.png" label="Shutdown system">halt</Program>
    2.37 +	</RootMenu>
    2.38 +
    2.39 +</JWM>
     3.1 --- a/rootfs/etc/xdg/jwm/system.jwmrc	Sun Mar 30 20:21:03 2014 +0100
     3.2 +++ b/rootfs/etc/xdg/jwm/system.jwmrc	Tue Apr 01 16:34:16 2014 +0200
     3.3 @@ -1,35 +1,9 @@
     3.4  <?xml version="1.0"?>
     3.5  
     3.6  <JWM>
     3.7 -
     3.8 -	<!-- The root menu, if this is undefined you will not get a menu. -->
     3.9 -	<RootMenu height="22" onroot="12">
    3.10 -		<Menu icon="applications-accessories.png" label="Accessories">
    3.11 -			<Program icon="galculator.png" label="Calculator">calculator</Program>
    3.12 -			<Program icon="gnome-screenshot.png" label="Screenshot">shutterbug</Program>
    3.13 -			<Program icon="joe.png" label="Text Editor">terminal -e joe</Program>
    3.14 -		</Menu>
    3.15 -		<Menu icon="applications-system.png" label="System Tools">
    3.16 -			<Program icon="utilities-system-monitor.png" label="Top Monitor">terminal -e top</Program>
    3.17 -			<!--<Program icon="raspberrypi.png" label="TazBerry Tool">terminal -e 'su -c tazberry'</Program>-->
    3.18 -			<Program icon="gnome-settings.png" label="System Config">terminal -e 'su -c slitaz-config'</Program>
    3.19 -		</Menu>
    3.20 -		<Menu icon="applications-internet.png" label="Network">
    3.21 -			<Program icon="links.xpm" label="Links Web browser">links -g</Program>
    3.22 -			<Program icon="internet-web-browser.png" label="Lynx Web browser">terminal -e lynx</Program>
    3.23 -			<Program icon="xchat.png" label="TazIRC IRC client">terminal -e 'tazirc --ask'</Program>
    3.24 -		</Menu>
    3.25 -		<Program icon="file-manager.png" label="File manager">PathFinder</Program>
    3.26 -		<Program icon="text-editor.png" label="Text editor">adie</Program>
    3.27 -		<Program icon="xterm.png" label="Terminal">terminal</Program>
    3.28 -	</RootMenu>
    3.29  	
    3.30 -	<RootMenu height="22" onroot="3">
    3.31 -		<Restart label="Restart JWM" icon="system-restart.png" />
    3.32 -		<Exit label="Exit JWM" confirm="true" icon="system-suspend.png" />
    3.33 -		<Program icon="system-restart.png" label="Reboot system">reboot</Program>
    3.34 -		<Program icon="system-shut-down.png" label="Shutdown system">halt</Program>
    3.35 -	</RootMenu>
    3.36 +	<!-- SliTaz menus -->
    3.37 +	<Include>/etc/xdg/jwm/menus.jwmrc</Include> 
    3.38  
    3.39     <!-- Additional tray attributes: autohide, width, border, layer, layout -->
    3.40     <Tray x="0" y="+0" height="24">
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/rootfs/usr/share/webhome/links.html	Tue Apr 01 16:34:16 2014 +0200
     4.3 @@ -0,0 +1,34 @@
     4.4 +<html>
     4.5 +<head>
     4.6 +	<title>SliTaz web Home</title>
     4.7 +</head>
     4.8 +<body bgcolor="#ffffff" topmargin="20">
     4.9 +	
    4.10 +<h1>SliTaz Web Home</h1>
    4.11 +<hr />
    4.12 +
    4.13 +<table align="center">
    4.14 +	<tr>
    4.15 +		<td>
    4.16 +			<form method="get" action="https://duckduckgo.com/">
    4.17 +				<input type="text" name="q" size="46" maxlength="255" />
    4.18 +				<input type="submit" name="" value="Search" />
    4.19 +				<input type="hidden" name="t" value="slitaz" />
    4.20 +			</form>
    4.21 +		</td>
    4.22 +	</tr>
    4.23 +	<tr><td><p></p></td></tr>
    4.24 +	<tr>
    4.25 +		<td>
    4.26 +			SliTaz Network: 
    4.27 +			<a href="http://arm.slitaz.org">SliTaz ARM</a> -
    4.28 +			<a href="http://arm.slitaz.org/codex/">Codex</a> -
    4.29 +			<a href="http://forum.slitaz.org/forum/arm">Forum</a> -
    4.30 +			<a href="http://cook.slitaz.org/cross/arm/">Cooker</a> -
    4.31 +			<a href="http://hg.slitaz.org/slitaz-arm/summary">Hg</a>
    4.32 +		</td>
    4.33 +	</tr>
    4.34 +</table>
    4.35 +
    4.36 +</body>
    4.37 +</html>