# HG changeset patch # User Christophe Lincoln # Date 1400165640 -7200 # Node ID 6188e4a86b4491cf8a7db6a94e1cedd74b3349a3 # Parent b72b16fba4af91d8019d7b2b1d0a9b0fe8577cfc Add tint2 config diff -r b72b16fba4af -r 6188e4a86b44 Makefile --- a/Makefile Mon Apr 28 01:08:48 2014 +0200 +++ b/Makefile Thu May 15 16:54:00 2014 +0200 @@ -17,6 +17,7 @@ install -m 0755 -d $(IMAGES) cp -a sts* $(DESTDIR)$(PREFIX)/bin cp -a openbox $(DATA)/slitaz/sts + cp -a tint2 $(DATA)/slitaz/sts cp -a lxpanel $(DATA)/slitaz/sts cp -a applications $(DATA) cp -a images/sts-background.jpg $(IMAGES) diff -r b72b16fba4af -r 6188e4a86b44 lxpanel/sts/panels/panel --- a/lxpanel/sts/panels/panel Mon Apr 28 01:08:48 2014 +0200 +++ b/lxpanel/sts/panels/panel Thu May 15 16:54:00 2014 +0200 @@ -56,7 +56,7 @@ type = launchbar Config { Button { - id=/usr/share/applications/sts-keyboard.desktop + id=/usr/share/applications/sts-kill.desktop } } } @@ -109,13 +109,3 @@ iface=wlan0 } } - -Plugin { - type = launchbar - Config { - Button { - id=/usr/share/applications/sts-kill.desktop - } - } -} - diff -r b72b16fba4af -r 6188e4a86b44 openbox/autostart --- a/openbox/autostart Mon Apr 28 01:08:48 2014 +0200 +++ b/openbox/autostart Thu May 15 16:54:00 2014 +0200 @@ -9,8 +9,11 @@ # Desktop background hsetroot -fill /usr/share/images/sts-background.jpg & -# Desktop panel +# Desktop panel with LXpanel lxpanel -p sts & -# Desktop icons +# Desktop panel with Tint2 +#tint2 -c ${STS_CONFIG_HOME}/tint2rc + +# Desktop icons with Idesk #(sleep 2; idesk &) & diff -r b72b16fba4af -r 6188e4a86b44 sts --- a/sts Mon Apr 28 01:08:48 2014 +0200 +++ b/sts Thu May 15 16:54:00 2014 +0200 @@ -11,8 +11,9 @@ case "$1" in info) if [ "$STS_DESKTOP_WM" ]; then - echo "STS_DESKTOP_WM : $STS_DESKTOP_WM" - echo "STS_DESKTOP_ID : $STS_DESKTOP_ID" + echo "STS_DESKTOP_ID : $STS_DESKTOP_ID" + echo "STS_DESKTOP_WM : $STS_DESKTOP_WM" + echo "STS_CONFIG_HOME : $STS_CONFIG_HOME" else echo "The sts desktop is not running" fi ;; diff -r b72b16fba4af -r 6188e4a86b44 sts-session --- a/sts-session Mon Apr 28 01:08:48 2014 +0200 +++ b/sts-session Thu May 15 16:54:00 2014 +0200 @@ -3,12 +3,14 @@ # Start SliTaz Tiny/Touch Screens desktop session # -export STS_DESKTOP_WM="openbox" -export STS_DESKTOP_ID="$$" export XDG_CACHE_HOME="$HOME/.cache" export XDG_CONFIG_HOME="$HOME/.config" export XDG_DATA_HOME="$HOME/.local/share" +export STS_DESKTOP_ID="$$" +export STS_DESKTOP_WM="openbox" +export STS_CONFIG_HOME="$XDG_CONFIG_HOME/sts" + data="/usr/share/slitaz/sts" sts="${XDG_CONFIG_HOME}/sts" @@ -24,8 +26,13 @@ chmod +x ${sts}/autostart fi -# LXpanel configs -if [ ! -d "${XDG_CONFIG_HOME}/lxpanel/sts" ]; then +# Tint2 panel +if [ ! -f "${XDG_CONFIG_HOME}/sts/tint2rc" ]; then + cp ${data}/tint2/tint2rc ${XDG_CONFIG_HOME}/sts +fi + +# LXpanel configs support +if [ -x "/usr/bin/lxpanel" ] && [ ! -d "${XDG_CONFIG_HOME}/lxpanel/sts" ]; then cp -rf ${data}/lxpanel ${XDG_CONFIG_HOME} fi diff -r b72b16fba4af -r 6188e4a86b44 tint2/tint2rc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tint2/tint2rc Thu May 15 16:54:00 2014 +0200 @@ -0,0 +1,116 @@ +# Tint2 config file +# Generated by tintwizard (http://code.google.com/p/tintwizard/) +# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure + +# Background definitions +# ID 1 +rounded = 7 +border_width = 0 +background_color = #000000 60 +border_color = #FFFFFF 12 + +# ID 2 +rounded = 5 +border_width = 0 +background_color = #FFFFFF 40 +border_color = #FFFFFF 44 + +# ID 3 +rounded = 5 +border_width = 0 +background_color = #FFFFFF 12 +border_color = #FFFFFF 64 + +# Panel +panel_monitor = all +panel_position = top center horizontal +panel_size = 100% 36 +panel_margin = 0 0 +panel_padding = 7 0 7 +panel_dock = 0 +wm_menu = 0 +panel_layer = top +panel_background_id = 1 + +# Panel Autohide +autohide = 0 +autohide_show_timeout = 0.3 +autohide_hide_timeout = 2 +autohide_height = 2 +strut_policy = follow_size + +# Taskbar +taskbar_mode = single_desktop +taskbar_padding = 2 3 2 +taskbar_background_id = 0 +taskbar_active_background_id = 0 + +# Tasks +urgent_nb_of_blink = 8 +task_icon = 1 +task_text = 0 +task_centered = 0 +task_maximum_size = 34 32 +task_padding = 5 1 +task_background_id = 3 +task_active_background_id = 2 +task_urgent_background_id = 2 +task_iconified_background_id = 3 + +# Task Icons +task_icon_asb = 70 0 0 +task_active_icon_asb = 100 0 0 +task_urgent_icon_asb = 100 0 0 +task_iconified_icon_asb = 70 0 0 + +# Fonts +task_font = Sans 10 +task_font_color = #FFFFFF 64 +task_active_font_color = #FFFFFF 80 +task_urgent_font_color = #FFFFFF 80 +task_iconified_font_color = #FFFFFF 64 +font_shadow = 0 + +# System Tray +systray = 1 +systray_padding = 0 4 5 +systray_sort = ascending +systray_background_id = 0 +systray_icon_size = 32 +systray_icon_asb = 70 0 0 + +# Clock +time1_format = %H:%M +time1_font = Sans Bold 10 +clock_font_color = #FFFFFF 70 +clock_padding = 1 0 +clock_background_id = 0 +clock_rclick_command = orage + +# Tooltips +tooltip = 1 +tooltip_padding = 8 8 +tooltip_show_timeout = 0.7 +tooltip_hide_timeout = 0.3 +tooltip_background_id = 1 +tooltip_font = Sans 16 +tooltip_font_color = #FFFFFF 80 + +# Mouse +mouse_middle = none +mouse_right = close +mouse_scroll_up = toggle +mouse_scroll_down = iconify + +# Battery +battery = 0 +battery_low_status = 10 +battery_low_cmd = notify-send "battery low" +battery_hide = 98 +bat1_font = sans 8 +bat2_font = sans 6 +battery_font_color = #FFFFFF 70 +battery_padding = 1 0 +battery_background_id = 0 + +# End of config \ No newline at end of file