Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#1
Install tint2 in synaptic or

Code: Select all

sudo apt-get update && sudo apt-get install tint2
My tint2rc file inside of ~/.config/tint2/tint2rc

Code: Select all

.#---------------------------------------------
# TINT2 CONFIG FILE mouseover
#---------------------------------------------

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
#1 panel background
rounded = 7
border_width = 1
#background_color = #002050 00
background_color = #000510 70
#background_color = #404040 20
border_color = #ffffff 18

#2 active window
rounded = 5
border_width = 1
background_color = #ffffff 18
border_color = #ffff00 100

#3 normal window
rounded = 5
border_width = 2
background_color = #ffffff 18
border_color = #ffffff 0

#4 urgent window
rounded = 5
border_width = 0
background_color = #ba5d00 100
border_color = #ffffff 50

#5 systray
rounded = 2
border_width = 0
background_color = #000000 0
border_color = #ffffff 40

#6 hovered window
rounded = 5
border_width = 1
background_color = #ffffff 18
border_color = #ffffff 100

#7 hovered active window
rounded = 5
border_width = 1
background_color = #ffffff 18
border_color = #aaaa55 100

#8 hovered urgent window
rounded = 5
border_width = 1
background_color = #ba5d00 100
border_color = #ffffff 100

#9 tooltip background
rounded = 7
border_width = 1
background_color = #000000 0
border_color = #ffffff 18

#---------------------------------------------
# PANEL
#---------------------------------------------
panel_items = CSTL
panel_monitor = all
panel_position = bottom left vertical
#panel_position = bottom right vertical
#panel_position = bottom right horizontal
panel_size = 100% 152
panel_margin = 0 0
panel_padding = 5 0
font_shadow = 0
panel_background_id = 1
wm_menu = 1
panel_dock = 0
strut_policy = follow_size
#strut_policy = none
panel_layer = top

#---------------------------------------------
# TASKBAR
#---------------------------------------------
taskbar_mode = multi_desktop
taskbar_padding = 2 3 2
taskbar_background_id = 0

taskbar_name = 1
taskbar_name_padding = 6 3
taskbar_name_font = Liberation Sans 8
taskbar_name_font_color = #ffffff 100
taskbar_name_active_font_color = #ffffff 100
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
#---------------------------------------------
# TASKS
#---------------------------------------------
task_icon = 1
task_text = 1
task_maximum_size = 140 35
task_centered = 1
task_padding = 6 3
task_font = Liberation Sans 8
task_font_color = #ffffff 100
task_background_id = 3
task_icon_asb = 100 0 0
# replace STATUS by 'urgent', 'active' or 'iconfied'
#task_STATUS_background_id = 2
#task_STATUS_font_color = #ffffff 85
#task_STATUS_icon_asb = 100 0 0
# example:
task_active_background_id = 2
task_urgent_background_id = 4
# use STATUShovered for mouseover effects
task_normalhovered_background_id = 6
task_activehovered_background_id = 7
task_urgenthovered_background_id = 8
urgent_nb_of_blink = 100000

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray = 1
systray_padding = 4 4 4
systray_background_id = 5
systray_sort = left2right
# maximum icon size
systray_icon_size = 28
systray_icon_asb = 100 0 0

#---------------------------------------------
# APPLICATION LAUNCHER
#---------------------------------------------
launcher_padding = 2 4 2
launcher_background_id = 5
# Icon size
launcher_icon_size = 24

# Each launcher_item_app must be a full path to a .desktop file
launcher_item_app = /usr/share/applications/geany.desktop
launcher_item_app = /usr/share/applications/iceweasel.desktop
#launcher_item_app = /usr/share/applications/leafpad.desktop
launcher_item_app = /usr/share/applications/roxterm.desktop
launcher_item_app = /usr/share/applications/gnome-mplayer.desktop
launcher_item_app = /usr/share/applications/spacefm.desktop
#---------------------------------------------
# CLOCK
#---------------------------------------------
time1_format = %H:%M
time1_font = sans bold 9
time2_format = %A %d %B
time2_font = Liberation Sans 8
clock_font_color = #ffffff 90
clock_padding = 1 0
clock_background_id = 0
clock_lclick_command = korganizer
clock_rclick_command = zenity --calendar --text""
clock_tooltip = %A %0d %B %Y %nWeek %W
#time1_timezone = :US/Hawaii
#time2_timezone = :Europe/Berlin
#clock_tooltip_timezone = :/usr/share/zoneinfo/Europe/Paris

#---------------------------------------------
# BATTERY
#---------------------------------------------
#battery = 0
#battery_hide = 80
#battery_low_status = 10
#battery_low_cmd = notify-send -u critical -t 1000000 -i battery-caution"Low battery""Level: 10%"
#bat1_font = sans 8
#bat2_font = sans 6
#battery_font_color = #ffaa00 100
#battery_padding = 1 0
#battery_background_id = 0

#---------------------------------------------
# TOOLTIP
#---------------------------------------------
tooltip = 1
tooltip_padding = 2 2
tooltip_show_timeout = 0.3
tooltip_hide_timeout = 0.1
tooltip_background_id = 9
tooltip_font_color = #ffffcc 100
tooltip_font = Sans 8

#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify

#---------------------------------------------
# AUTOHIDE OPTIONS
#---------------------------------------------
autohide = 1
autohide_show_timeout = 0.1
autohide_hide_timeout = 0.1
autohide_height = 2
My

Code: Select all

launcher_icon_size = 24
icon size is 24 because I am on a netbook with a 9 inch screen

Code: Select all

$ xrandr
Screen 0: minimum 8 x 8, current 1024 x 600, maximum 32767 x 32767
LVDS1 connected 1024x600+0+0 (normal left inverted right x axis y axis) 195mm x 113mm
   1024x600      60.00*+
   800x600       60.32    56.25  
   640x480       59.94  
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
You can set the size larger to like 36 o0r 48 if using a larger screen.
My screenshot shows everything showing.
Slit can be set to autohide.
My tint2rc is already set to autohide. So if you use it. You need to mouse over to have it pop out.
I moved slit to the top and set width at 70.

My ~/.fluxbox/startup file is set up like this (if you do not have redshift or whatever installed or running. Just comment"#" that line out)

Code: Select all

# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# You can set your favourite wallpaper here if you don't want
# to do it from your style.
# fbsetbg -l
#
# This sets a black background
# /usr/bin/fbsetroot -solid black

# This shows the fluxbox-splash-screen
# fbsetbg -C /usr/share/fluxbox/splash.jpg

# Other examples. Check man xset for details.
# Turn off beeps:
# xset -b
# Increase the keyboard repeat-rate:
# xset r rate 195 35
# Your own fonts-dir:
# xset +fp ~/.font
#
# Your favourite mouse cursor:
# xsetroot -cursor_name right_ptr
#
# Change your keymap:
# xmodmap ~/.Xmodmap

#Automount drive spacefm
spacefm -d &

# Set live keyboard
setxkbmap -layout"us" -option"grp:alt_shift_toggle,terminate:ctrl_alt_bksp,grp_led:scroll" -variant""

#toram-eject
(sleep 5 && toram-eject) &
(sleep 5 && sudo persist-config --startup) &
gtk-redshift -l 30:103 &
tint2 &

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

exec /usr/bin/fluxbox
# or if you want to keep a log:
# exec /usr/bin/fluxbox -log ~/.fluxbox/log

Lastly. I plan on blowing this away (eventually, still updated and current), because I need to reinstall AntiX on this netbook because it is beta testing and I procrastinated updating to current AntiX 15 on this unit like I already did on my other netbook with the same specs.

Code: Select all

$ inxi -Fxz 
System:    Host: antix1 Kernel: 3.16.0-4-686-pae i686 (32 bit gcc: 4.8.4)
           Desktop: Fluxbox 1.3.5
           Distro: antiX-15-beta1-V_386-full Killah P 16 March 2015
Machine:   System: Intel product: Intel powered classmate PC v: 3rd Gen
           Mobo: QCI model: Intel powered classmate PC v: 3rd Gen
           Bios: Phoenix v: HP94510A.86A.0035.2009.0427.2020 date: 04/27/2009
CPU:       Single core Intel Atom N270 (-HT-) cache: 512 KB
           flags: (nx pae sse sse2 sse3 ssse3) bmips: 3192
           clock speeds: max: 1600 MHz 1: 1333 MHz 2: 1600 MHz
Graphics:  Card: Intel Mobile 945GSE Express Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: X.Org 1.17.3 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1024x600@60.00hz
           GLX Renderer: Mesa DRI Intel 945GME x86/MMX/SSE2
           GLX Version: 2.1 Mesa 11.1.1 Direct Rendering: Yes
Audio:     Card Intel NM10/ICH7 Family High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k3.16.0-4-686-pae
Network:   Card-1: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller
           driver: r8169 v: 2.3LK-NAPI port: 2000 bus-ID: 02:00.0
           IF: eth0 state: down mac: <filter>
           Card-2: Ralink RT2870/RT3070 Wireless Adapter
           driver: rt2800usb v: 2.3.0 usb-ID: 003-004
           IF: wlan0 state: N/A mac: N/A
Drives:    HDD Total Size: 60.0GB (26.3% used)
           ID-1: /dev/sda model: TOSHIBA_MK6028GA size: 60.0GB
Partition: ID-1: / size: 15G used: 5.8G (43%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 4.24GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
           ID-3: swap-2 size: 0.26GB used: 0.00GB (0%) fs: swap dev: /dev/zram0
           ID-4: swap-3 size: 0.26GB used: 0.00GB (0%) fs: swap dev: /dev/zram1
Sensors:   System Temperatures: cpu: 45.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 117 Uptime: 1:10 Memory: 384.4/2012.9MB
           Init: SysVinit runlevel: 5 Gcc sys: 5.3.1
           Client: Shell (bash 4.3.421) inxi: 2.2.31 
The tint2rc is pretty self explanatory. I am no expert but eugene-b requested how I did this.
So here it is. Disregard the zram swap stuff. I played around alot with the setup on this netbook while testing beta.
So any seen mistakes. OH Well. I don't care. I have not really been that anal when it comes to computers.

Happy trailz, Rok
Posts: 307
eugen-b
Joined: 23 Aug 2015
#2
Hey, Roky! Thanks for sharing!
When I asked how you did it, I thought your vertical panel is the native Fluxbox taskbar and not tint2.
Funny thing is, I got the idea to use tint2 on Fluxbox myself.
But your design is quite visionary. Now Deepin has got a similar Control Centre, previously it was Voyager, and also the last Version of Budgie has a similar thing. Well, you panel doesn't have the full functionality of a control centre, but it look like these a little bit.