slitaz-arm rev 75
Add slim support and custom rpi theme
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 23 14:37:38 2014 +0100 (2014-03-23) |
parents | 263748c62e71 |
children | 0490102f1cd5 |
files | flavors/rpi-desktop/packages.list rootfs/etc/init.d/rcS rootfs/etc/rcS.conf rootfs/etc/xdg/jwm/system.jwmrc rpi/rootfs/etc/rcS.conf rpi/rootfs/etc/slim.conf rpi/rootfs/usr/share/slim/themes/rpi/background.png rpi/rootfs/usr/share/slim/themes/rpi/panel.png rpi/rootfs/usr/share/slim/themes/rpi/slim.theme |
line diff
1.1 --- a/flavors/rpi-desktop/packages.list Sat Mar 22 20:14:49 2014 +0100 1.2 +++ b/flavors/rpi-desktop/packages.list Sun Mar 23 14:37:38 2014 +0100 1.3 @@ -55,7 +55,6 @@ 1.4 xorg-libXpm 1.5 xorg-libXext 1.6 xorg-libXmu 1.7 -xorg-libXinerama 1.8 xorg-libXau 1.9 xorg-libXdmcp 1.10 xorg-libXt 1.11 @@ -71,7 +70,6 @@ 1.12 xorg-libpciaccess 1.13 xorg-libXxf86vm 1.14 xorg-libXfont 1.15 -xorg-libXinerama 1.16 xorg-libXcursor 1.17 xorg-libXrandr 1.18 xorg-libXdamage 1.19 @@ -100,3 +98,4 @@ 1.20 shutterbug 1.21 calculator 1.22 links 1.23 +slim
2.1 --- a/rootfs/etc/init.d/rcS Sat Mar 22 20:14:49 2014 +0100 2.2 +++ b/rootfs/etc/init.d/rcS Sun Mar 23 14:37:38 2014 +0100 2.3 @@ -92,6 +92,14 @@ 2.4 done 2.5 fi 2.6 2.7 +# Start X session 2.8 +if [ "$LOGIN_MANAGER" ] && [ -x "/etc/init.d/$LOGIN_MANAGER" ]; then 2.9 + #mkdir -p /var/run/dbus 2.10 + #/etc/init.d/dbus start 2.11 + colorize 36 "Starting X environment..." 2.12 + /etc/init.d/$LOGIN_MANAGER start >/dev/null & 2.13 +fi 2.14 + 2.15 newline 2.16 colorize 32 "$MESSAGE" 2.17
3.1 --- a/rootfs/etc/rcS.conf Sat Mar 22 20:14:49 2014 +0100 3.2 +++ b/rootfs/etc/rcS.conf Sun Mar 23 14:37:38 2014 +0100 3.3 @@ -14,5 +14,8 @@ 3.4 # Daemons/services to start later in boot process. 3.5 RUN_DAEMONS="" 3.6 3.7 +# X Login manager: slim or empty to disable X 3.8 +LOGIN_MANAGER="slim" 3.9 + 3.10 # Pre login bold message. 3.11 MESSAGE="Welcome to SliTaz ARM"
4.1 --- a/rootfs/etc/xdg/jwm/system.jwmrc Sat Mar 22 20:14:49 2014 +0100 4.2 +++ b/rootfs/etc/xdg/jwm/system.jwmrc Sun Mar 23 14:37:38 2014 +0100 4.3 @@ -7,7 +7,7 @@ 4.4 <Menu icon="applications-accessories.png" label="Accessories"> 4.5 <Program icon="galculator.png" label="Calculator">calculator</Program> 4.6 <Program icon="gnome-screenshot.png" label="Screenshot">shutterbug</Program> 4.7 - <Program icon="joe.png" label="Joe Editor">terminal -e joe</Program> 4.8 + <Program icon="joe.png" label="Text Editor">terminal -e joe</Program> 4.9 </Menu> 4.10 <Menu icon="applications-system.png" label="System Tools"> 4.11 <Program icon="utilities-system-monitor.png" label="Top Monitor">terminal -e top</Program> 4.12 @@ -15,7 +15,7 @@ 4.13 <Program icon="gnome-settings.png" label="System Config">terminal -e 'su -c slitaz-config'</Program> 4.14 </Menu> 4.15 <Menu icon="applications-internet.png" label="Network"> 4.16 - <Program icon="links.png" label="Links Web browser">links -g</Program> 4.17 + <Program icon="links.xpm" label="Links Web browser">links -g</Program> 4.18 <Program icon="internet-web-browser.png" label="Lynx Web browser">terminal -e lynx</Program> 4.19 <Program icon="xchat.png" label="TazIRC IRC client">terminal -e 'tazirc --ask'</Program> 4.20 </Menu> 4.21 @@ -25,10 +25,10 @@ 4.22 </RootMenu> 4.23 4.24 <RootMenu height="22" onroot="3"> 4.25 - <Program icon="system-shut-down.png" label="Shut down system">halt</Program> 4.26 + <Restart label="Restart JWM" icon="system-restart.png" /> 4.27 + <Exit label="Exit JWM" confirm="true" icon="system-suspend.png" /> 4.28 <Program icon="system-restart.png" label="Reboot system">reboot</Program> 4.29 - <Exit label="Exit JWM" confirm="true" icon="system-suspend.png"/> 4.30 - <Restart label="Restart JWM" icon="system-restart.png"/> 4.31 + <Program icon="system-shut-down.png" label="Shutdown system">halt</Program> 4.32 </RootMenu> 4.33 4.34 <!-- Additional tray attributes: autohide, width, border, layer, layout -->
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/rpi/rootfs/etc/rcS.conf Sun Mar 23 14:37:38 2014 +0100 5.3 @@ -0,0 +1,21 @@ 5.4 +# /etc/rcS.conf - Initial boot script configuration for SliTaz ARM 5.5 +# Config file used by /etc/init.d/rcS 5.6 +# 5.7 + 5.8 +# Syslogd: Max size (KB) before rotation. 5.9 +SYSLOGD_SIZE="40" 5.10 + 5.11 +# Kernel modules to load earlier in boot. 5.12 +LOAD_MODULES="snd-bcm2835" 5.13 + 5.14 +# Scripts to run at boot time. Important: system.sh after network.sh. 5.15 +RUN_SCRIPTS="network.sh system.sh local.sh" 5.16 + 5.17 +# Daemons/services to start later in boot process. 5.18 +RUN_DAEMONS="" 5.19 + 5.20 +# X Login manager: slim or empty to disable X 5.21 +LOGIN_MANAGER="slim" 5.22 + 5.23 +# Pre login bold message. 5.24 +MESSAGE="Welcome to SliTaz RaspberryPi"
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/rpi/rootfs/etc/slim.conf Sun Mar 23 14:37:38 2014 +0100 6.3 @@ -0,0 +1,94 @@ 6.4 +# /etc/slim.conf: Slim LogIn Manger configuration file 6.5 +# 6.6 + 6.7 +# Path, X server and arguments (if needed) 6.8 +# Note: -xauth $authfile is automatically appended 6.9 +default_path ./:/bin:/usr/bin:/usr/local/bin 6.10 +default_xserver /usr/bin/Xorg 6.11 +#xserver_arguments -dpi 75 6.12 + 6.13 +# Commands for halt, login, etc. 6.14 +halt_cmd /sbin/poweroff 6.15 +reboot_cmd /sbin/reboot 6.16 +console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -l -c "exec /bin/login" 6.17 +#suspend_cmd /usr/sbin/suspend 6.18 + 6.19 +# Full path to the xauth binary 6.20 +xauth_path /usr/bin/xauth 6.21 + 6.22 +# Xauth file for server 6.23 +authfile /var/run/slim.auth 6.24 + 6.25 + 6.26 +# Activate numlock when slim starts. Valid values: on|off 6.27 +# numlock on 6.28 + 6.29 +# Hide the mouse cursor (note: does not work with some WMs). 6.30 +# Valid values: true|false 6.31 +hidecursor true 6.32 + 6.33 +# This command is executed after a succesful login. 6.34 +# you can place the %session and %theme variables 6.35 +# to handle launching of specific commands in .xinitrc 6.36 +# depending of chosen session and slim theme 6.37 +# 6.38 +# NOTE: if your system does not have bash you need 6.39 +# to adjust the command according to your preferred shell, 6.40 +# i.e. for freebsd use: 6.41 +# login_cmd exec /bin/sh - ~/.xinitrc %session 6.42 +login_cmd exec /bin/sh -l ~/.xinitrc %session 6.43 + 6.44 +# Commands executed when starting and exiting a session. 6.45 +# They can be used for registering a X11 session with 6.46 +# sessreg. You can use the %user variable 6.47 +# 6.48 +# sessionstart_cmd some command 6.49 +# sessionstop_cmd some command 6.50 + 6.51 +# Start in daemon mode. Valid values: yes | no 6.52 +# Note that this can be overriden by the command line 6.53 +# options "-d" and "-nodaemon" 6.54 +# daemon yes 6.55 + 6.56 +# Available sessions (first one is the default). 6.57 +# The current chosen session name is replaced in the login_cmd 6.58 +# above, so your login command can handle different sessions. 6.59 +# see the xinitrc.sample file shipped with slim sources 6.60 +sessions jwm 6.61 + 6.62 +# Executed when pressing F11 (requires imagemagick) 6.63 +#screenshot_cmd mtpaint -s /root/slim-shot.png 6.64 + 6.65 +# welcome message. Available variables: %host, %domain 6.66 +welcome_msg Welcome to %host 6.67 + 6.68 +# Session message. Prepended to the session name when pressing F1 6.69 +# session_msg Session: 6.70 + 6.71 +# shutdown / reboot messages 6.72 +shutdown_msg The system is going down... 6.73 +reboot_msg The system is rebooting... 6.74 + 6.75 +# default user, leave blank or remove this line 6.76 +# for avoid pre-loading the username. 6.77 +default_user root 6.78 + 6.79 +# Focus the password field on start when default_user is set 6.80 +# Set to "yes" to enable this feature 6.81 +#focus_password no 6.82 + 6.83 +# Automatically login the default user (without entering 6.84 +# the password. Set to "yes" to enable this feature 6.85 +#auto_login no 6.86 + 6.87 + 6.88 +# current theme, use comma separated list to specify a set to 6.89 +# randomly choose from 6.90 +current_theme rpi 6.91 + 6.92 +# Lock file 6.93 +lockfile /var/lock/slim.lock 6.94 + 6.95 +# Log file 6.96 +logfile /var/log/slim.log 6.97 +
7.1 Binary file rpi/rootfs/usr/share/slim/themes/rpi/background.png has changed
8.1 Binary file rpi/rootfs/usr/share/slim/themes/rpi/panel.png has changed
9.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 9.2 +++ b/rpi/rootfs/usr/share/slim/themes/rpi/slim.theme Sun Mar 23 14:37:38 2014 +0100 9.3 @@ -0,0 +1,37 @@ 9.4 +# SliTaz theme for SLiM 9.5 +# 9.6 + 9.7 +# Messages 9.8 +msg_color #000000 9.9 +msg_font Vera:size=18:bold:dpi=75 9.10 +msg_x 50% 9.11 +msg_y 35% 9.12 +#msg_shadow_color #FFFFFF 9.13 +#msg_shadow_xoffset 1 9.14 +#msg_shadow_yoffset 1 9.15 + 9.16 +# valid values: stretch, tile 9.17 +background_style tile 9.18 +background_color #ffffff 9.19 + 9.20 +# Input controls 9.21 +input_panel_x 50% 9.22 +input_panel_y 40% 9.23 +input_name_x 60 9.24 +input_name_y 326 9.25 +input_font Vera:size=12:dpi=75 9.26 +input_fgcolor #000000 9.27 + 9.28 +# Username / password request 9.29 +username_font Vera:size=20:bold:dpi=75 9.30 +username_color #cfcfcf 9.31 +username_x 50% 9.32 +username_y 275 9.33 +password_x 50% 9.34 +password_y 275 9.35 +#username_shadow_color #000000 9.36 +#username_shadow_xoffset 1 9.37 +#username_shadow_yoffset 1 9.38 + 9.39 +username_msg Login name: 9.40 +password_msg Password: