Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

My Tint2 and Conky Configs (borrowed of course)

Started by Lizbeth, May 29, 2015, 06:24:40 AM

Previous topic - Next topic

Lizbeth

my tint2 will show opn top of the screen with the date on the left followed by however many virtual desktops you have and then the system tray.  the desktops are translucent except the one you are on so you can tell the difference. use obconf to adjust the number of desktops.  obconf is a gui and easy to use.

conky will show in the bottom left and is a minimal conky

because of the background i have that is light on top and dark on the bottom my tint2 uses a darker text and conky uses a lighter text

info on hexidecimal colors here: http://www.w3schools.com/tags/ref_colorpicker.asp


also here is a link to the tintwizard independent binary that i just made but havent tested yet.  it can be useful for tweaking tint2 but remember to open your tint2rc in /home/user/.config/tint2 before making changes and saving.  it doesn't open your tint2 by default it just shows a tint config and if you save it over top your own you will not be happy.  speaking from experience.


https://drive.google.com/file/d/0B0G59dAu-O3BakFNOEZjYXRQV2M/view?usp=sharing 

tint2



#---- Generated by tint2conf 969d ----
#-------------------------------------
# Backgrounds
# Background 1
rounded = 3
border_width = 2
background_color = #000000 40
border_color = #828282 0

# Background 2
rounded = 3
border_width = 2
background_color = #d8d8d8 30
border_color = #d8d8d8 30

# Background 3
rounded = 3
border_width = 2
background_color = #000000 0
border_color = #000000 0

# Background 4
rounded = 3
border_width = 2
background_color = #888888 20
border_color = #ed2323 60

# Background 5
rounded = 3
border_width = 2
background_color = #100000 0
border_color = #100000 0

# Background 6
rounded = 3
border_width = 2
background_color = #d8d8d8 8
border_color = #d8d8d8 0

# Background 7
rounded = 3
border_width = 1
background_color = #222222 38
border_color = #222222 90

# Background 8
rounded = 3
border_width = 2
background_color = #888888 20
border_color = #888888 20

#-------------------------------------
# Panel
panel_items = CTS
panel_size = 95% 28
panel_margin = 0 0
panel_padding = 0 0 2
panel_background_id = 0
wm_menu = 1
panel_dock = 0
panel_position = top center horizontal
panel_layer = bottom
panel_monitor = all
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 1.5
autohide_height = 6
strut_policy = follow_size
panel_window_name = tint2
disable_transparency = 0
font_shadow = 0

#-------------------------------------
# Taskbar
taskbar_mode = multi_desktop
taskbar_padding = 2 2 0
taskbar_background_id = 1
taskbar_active_background_id = 0
taskbar_name = 0
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 0
taskbar_name_padding = 2 2
taskbar_name_background_id = 2
taskbar_name_active_background_id = 2
taskbar_name_font = Liberation Sans 9
taskbar_name_font_color = #000000 100
taskbar_name_active_font_color = #fbfbfb 100
taskbar_distribute_size = 0
taskbar_sort_order = none

#-------------------------------------
# Task
task_text = 0
task_icon = 1
task_centered = 0
urgent_nb_of_blink = 20
task_maximum_size = 40 40
task_padding = 2 2 2
task_font = Liberation Sans 06_55 6
task_tooltip = 1
task_font_color = #828282 60
task_active_font_color = #828282 100
task_urgent_font_color = #ffffff 100
task_iconified_font_color = #d8d8d8 60
task_icon_asb = 80 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 80 0 0
task_background_id = 3
task_active_background_id = 2
task_urgent_background_id = 4
task_iconified_background_id = 3
mouse_left = toggle_iconify
mouse_middle = none
mouse_right = toggle
mouse_scroll_up = toggle
mouse_scroll_down = iconify

#-------------------------------------
# System tray (notification area)
systray_padding = 4 2 3
systray_background_id = 0
systray_sort = right2left
systray_icon_size = 24
systray_icon_asb = 80 20 50
systray_monitor = 1

#-------------------------------------
# Launcher
launcher_padding = 8 4 4
launcher_background_id = 0
launcher_icon_size = 24
launcher_icon_asb = 0 -100 -100
launcher_icon_theme_override = 0
startup_notifications = 0
launcher_tooltip = 0

#-------------------------------------
# Clock
time1_format = %I:%M %P  %A %d %B %Y
time2_format =
time1_font = Liberation Sans 11
time1_timezone =
time2_timezone =
time2_font = Sans 12
clock_font_color = #1a0e0e 100
clock_padding = 12 4
clock_background_id = 0
clock_tooltip =
clock_tooltip_timezone =
clock_lclick_command = gsimplecal
clock_rclick_command = gsimplecal

#-------------------------------------
# Battery
battery_low_status = 20
battery_low_cmd = notify-send "battery low"
bat1_font = Liberation Mono 8
bat2_font = Liberation Mono 8
battery_font_color = #b5b5b5 100
battery_padding = 2 0
battery_background_id = 0
battery_hide = 96

#-------------------------------------
# Tooltip
tooltip_show_timeout = 0
tooltip_hide_timeout = 0
tooltip_padding = 2 2
tooltip_background_id = 7
tooltip_font_color = #d8d8d8 100
tooltip_font = Liberation Sans normal 9.0





conky


background yes
use_xft yes
xftfont Liberation Sans:size=14
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
#own_window_argb_visual yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 300 100
# maximum_width 240
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color FFFFFF
default_shade_color 000000
default_outline_color 828282
alignment bl
gap_x 12
gap_y 6
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
##############################################
#  Output
##############################################
TEXT
S Y S T E M    I N F O
${hr}
Host:$alignr$nodename
Uptime:$alignr$uptime
RAM:$alignr$mem/$memmax
Swap usage:$alignr$swap/$swapmax
Disk usage:$alignr${fs_used /}/${fs_size /}
CPU usage:$alignr${cpu cpu0}%

Lizbeth

also here is a debian independent binary for tint2 ver 0.12rc5 that is supposed to have a tint2conf, a gui tool to edit tint2.  also i haven't tested it yet.  the source is here:  https://gitlab.com/o9000/tint2


if you wish to make your own debian binary of it

start by installing some dependencies:


sudo apt-get install build-essential autoconf automake autotools-dev dh-make debhelper devscripts fakeroot xutils lintian pbuilder dh-make cmake git


also we need some more specific dependencies that require the enabling of source repos which sparky has by enabled default so


sudo apt-get build-dep tint2



now create a directory to build it in

mkdir build directory

cd build directory

mkdir tint2

cd tint2


now we clone the git directory where the new tint2 is located

git clone https://gitlab.com/o9000/tint2.git

to build the source we need an original tarball in a specific format but the git directory doesn't include the required version number for the tarball to be built so

mv tint2 tint2-0.12

cd tint2-0.12


now we need to build an origional source tarball

dh_make -p tint2-0.12 --createorig

this puts that compressed file in the next higher directory in the tree. 

it will ask what type of binary you want to build.  press i for indpendent and hit return twice

when it finishes, continue the build

now per the build instructions for the package

mkdir build

cd build

cmake -DCMAKE_INSTALL_PREFIX=/usr ../


i got an error asking for librsvg-2.0 so i then searched synaptic for the file

sudo synaptic

enter librsvg-2 into the search field and installed the file that matches that as well as it's -dev version

reran the

Quotecmake -DCMAKE_INSTALL_PREFIX=/usr ../

with no errors.  if you get other errors just search synaptic, install the matching file and its -dev version, usually right below or above it in synaptic

then did

make


now the build instructions ask us to sudo make install but instead, since we are building the independent binary, we will

cd ..

dpkg-buildpackage -b


when that finishes

cd ..

sudo dpkg -i tint2-0.12_0.12-1_all.deb

and now you just need to restart tint2.  i vote for using the taskl manager, lxtask, and seacring for tint2 and killing that by right clicking over it and selecting kill and then running tint2 from the main menu->run command and typing tint2 in the gexec window

i havent tested the build yet in debian but on another distro i could edit tint2 with the command tint2conf and it should show in the applications under preferences or system



Lizbeth

I happened to be in an ubuntu based distro that came with me meerkat (intel nuc from system76) and built it on there and tested it and it works great

pavroo

It's done.
Tint2 0.12-rc5 is installable from our repos now.
I put it in 'unstable' repos due the status of the project.
Anyway the config GUI works well.

Installation (both i386 and amd64):
Add 'unstable' repos:
deb http://sparkylinux.org/repo unstable main
to the file:
/etc/apt/sources.list.d/sparky.list
Refresh package list & install:
sudo apt-get update
sudo apt-get install tint2
Nothing is easy as it looks. Danielle Steel

pavroo

There is a newer version of Tint2 0.12-rc6 available in Sparky unstable repos now.
Nothing is easy as it looks. Danielle Steel


statmonkey

Thanks for this.  I had not looked at tint2 in quite a while.

pavroo

The stable version (released today) of tint2-0.12 is available in sparky repos now.
Nothing is easy as it looks. Danielle Steel

View the most recent posts on the forum