Author Topic: Tint2 Configs and scrots  (Read 33779 times)

PackRat

  • Posts: 2330
    • View Profile
    • PackRat configs on github
Re: Tint2 Configs and scrots
« Reply #15 on: May 04, 2019, 08:22:02 PM »
   
tint2 without taskbar/pager since Fvwm has built-in IconBox, FvwmIconMan, or FvwmPager if I want those.

tint2 being used for jgmenu launcher (the void logo), system information using psuinfo executors, battery, system tray and clock. Using the extensible spacer panel item to center the system information.

Code: [Select]
# 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 = 0
border_width = 0
border_sides = T
background_color = #212121 100
border_color = #4B6EB3 100

# urgent background
# ID 2
rounded = 1
border_width = 1
background_color = #A43949 100
border_color = #DDDDDD 100

# tooltip background
# ID 3
rounded = 4
border_width = 1
background_color = #F7F7F7 100
border_color = #F3F3F3 100

# ID 4
rounded = 1
border_width = 0
background_color = #34393B 100
border_color = #171717 100

# separators define all used

separator=new
separator_background_id = 0
separator_color = #101010
separator_style = line
separator_size = 1
separator_padding = 0 0

separator=new
separator_background_id = 0
separator_color = #101010
separator_style = line
separator_size = 1
separator_padding = 0 0

separator=new
separator_background_id = 0
separator_color = 0
separator_style = empty
separator_size = 1
separator_padding = 0 0

# executor sysinfo
execp = new
execp_font = Roboto Mono Regular 11
execp_font_color = #CF9A34 100
execp_background_id = 0
execp_centered = 1
execp_padding = 12 0 0
execp_command = psuinfo -Cuack -N -S3
# execp_command = psuinfo -Cuac -N -S3
execp_interval = 2
execp_rclick_command = urxvt -e htop --sort-key PERCENT_MEM

# buttons P
button = new
button_icon = /home/doug/.config/tint2/void-trlogo.png
#button_text =
button_tooltip = Application Menu
#button_font =
button_font_color = #FFFFFF 100
button_background_id = 0
button_centered = 1
button_padding = 6 1 1
button_max_icon_size = 64
button_lclick_command = jgmenu --config-file=/home/doug/.config/jgmenu/tint2menurc
# button_lclick_command = jgmenu_run
# button_mclick_command = text
button_rclick_command = session-exit
#button_uwheel_command = text
#button_dwheel_command = text

# Panel
# panel_items = PFSFBC
panel_items = PFEBFSC
panel_monitor = all
panel_position = bottom center horizontal
panel_size = 0 30
panel_margin = 0 0
panel_padding = 0 2 0
panel_dock = 0
wm_menu = 1
panel_layer = normal
panel_background_id = 1

# Panel Autohide
autohide = 0
autohide_show_timeout = 0.7
autohide_hide_timeout = 1.5
autohide_height = 2
## strut_policy = follow_size/minimum/none
strut_policy = follow_size

# Taskbar
taskbar_mode = multi_desktop
taskbar_hide_if_empty = 0
taskbar_padding = 1 1 8
taskbar_background_id = 0
taskbar_active_background_id = 4
taskbar_name = 0
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 0
taskbar_hide_different_desktop = 0
taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 4 2
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
taskbar_name_font_color = #e3e3e3 100
taskbar_name_active_font_color = #ffffff 100
taskbar_distribute_size = 0
taskbar_sort_order = none
task_align = left

# Tasks
task_text = 0
task_icon = 1
task_centered = 1
urgent_nb_of_blink = 100000
task_maximum_size = 36 36
task_padding = 4 1
task_tooltip = 1
task_thumbnail = 0
task_thumbnail_size = 210
task_background_id = 0
task_active_background_id = 0
task_urgent_background_id = 2
task_iconified_background_id = 0
mouse_left = toggle_iconify
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify

# Task Icons
task_icon_asb = 100 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 = Roboto Regular 10
task_font_color = #DFDFDF 80
task_active_font_color = #DFDFDF 80
task_urgent_font_color = #DFDFDF 100
task_iconified_font_color = #999999 80
font_shadow = 0

# System Tray
systray = 1
systray_padding = 1 0 4
systray_sort = ascending
systray_background_id = 0
systray_icon_size = 20
systray_icon_asb = 100 0 0

# Clock
time1_format = %k:%M
time1_font = Roboto Mono Regular 11
time2_format =
time2_font =
clock_font_color = #DDDDDD 100
clock_tooltip =
clock_padding = 12 0
clock_background_id = 0
clock_rclick_command = yad --calendar --class="fbox_cal" --title="`date "+%A %e %B %Y   %k:%M"`" --width=368 --height=240 --skip-taskbar --sticky --text ""
time1_timezone = :US/Eastern
time2_timezone =

# Tooltips
tooltip_padding = 2 2
tooltip_show_timeout = 0.8
tooltip_hide_timeout = 0.3
tooltip_background_id = 3
tooltip_font = Monospace 11
tooltip_font_color = #050314 100

# Battery
battery = 1
battery_hide = never
battery_low_status = 20
battery_low_cmd = notify-send "battery low"
# battery_full_cmd = notify-send "battery full"
bat1_font = Roboto Mono Regular 11
bat2_font = Sans Regular 0
battery_font_color = #CF9A34 100
#
#==============================================#
#
# %s: State (charging, discharging, full, unknown).
# %m: Minutes left until completely charged/discharged (estimated).
# %h: Hours left until completely charged/discharged (estimated).
# %t: Time left. Shows "hrs:mins" when charging/discharging, or "Ful\" when full.
# %p: Percentage. Includes the % sign.

bat1_format = BAT0: %p
bat2_format =
battery_padding = 8 0
battery_background_id = 0
battery_tooltip_enabled = 0
# these options don't seem to work ======================================#
# battery_lclick_command =
# battery_rclick_command =
# battery_mclick_command = "pkill -s -SIGUSR1 tint2"
# battery_uwheel_command = text : Command to execute on wheel scroll up. (since 0.12.1)
# battery_dwheel_command = text : Command to execute on wheel scroll down. (since 0.12.1)
#=========================================================================#
ac_connected_cmd = notify-send "AC Power Connected"
ac_disconnected_cmd = notify-send "AC Power Disconnected"

# End of config
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

PackRat

  • Posts: 2330
    • View Profile
    • PackRat configs on github
Re: Tint2 Configs and scrots
« Reply #16 on: December 06, 2021, 04:11:51 AM »
Latest tint2 configuration. Near monochrome to match up with pretty much any fluxbox style I create these days.
jgmenu for the menu:

Code: [Select]
#========================================================================================#
#
# tint2 configuration -- https://gitlab.com/o9000/tint2/blob/master/doc/tint2.md
# created 03-03-2020
# by PackRat
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details see <http://www.gnu.org/licenses/>.
#
#========================================================================================#

# Backgrounds and gradients

# Background 1: Panel
rounded = 0
border_width = 1
border_sides = TBLR
background_color = #161617 100
border_color = #0C0C0C 100
background_color_hover = #161617 100
border_color_hover = #161617 100
background_color_pressed = #161617 100
border_color_pressed = #131313 100

# Background 2 - button, taskbar, systemtray, battery
rounded = 0
border_width = 1
border_sides = R
border_color = #0C0C0C 100
border_color_hover = #0C0C0C 55
border_color_pressed = #0C0C0C 55
background_color = #161617 5
background_color_hover = #161617 5
background_color_pressed = #161617 5
border_color_pressed = #0C0C0C 100
# Color mixing values must be between 0 (no mixing) and 100 (fully replaces the color)
border_content_tint_weight = 0
background_content_tint_weight = 0

# Background 3 - active taskbar
rounded = 0
border_width = 0
border_sides = LRTB
border_color = #272729 100
border_color_hover = #272729 8
border_color_pressed = #272729 8
background_color = #272729 100
background_color_hover = #272729 100
background_color_pressed = #272729 100
# Color mixing values must be between 0 (no mixing) and 100 (fully replaces the color)
border_content_tint_weight = 0
background_content_tint_weight = 0

# Background 4 - urgent tasks
rounded = 0
border_width = 1
#border_sides = T  #LRTB
border_color = #C12A2A 100
border_color_hover = #C12A2A 100
border_color_pressed = #C12A2A 100
background_color = #C12A2A 100
background_color_hover = #C12A2A 100
background_color_pressed = #C12A2A 100
border_color_pressed = #C12A2A 100
# Color mixing values must be between 0 (no mixing) and 100 (fully replaces the color)
border_content_tint_weight = 0
background_content_tint_weight = 0

# Background 5 - tooltips
rounded = 0
border_width = 1
border_sides = T  #LRTB
border_color = #111111 100
border_color_hover = #111111 100
border_color_pressed = #111111 100
background_color = #BDBDBD 100
background_color_hover = #BDBDBD 100
background_color_pressed = #BDBDBD 100
border_color_pressed = #BDBDBD 100
# Color mixing values must be between 0 (no mixing) and 100 (fully replaces the color)
border_content_tint_weight = 0
background_content_tint_weight = 0

# Previous desktop
#button = new
#button_icon = ~/.local/share/icons/go-prevtr.png
#button_text =
#button_tooltip =
#button_font = Roboto Regular 8
#button_font_color = #888888 100
#button_background_id = 0
#button_centered = 0
#button_padding = 0 0 0
#button_max_icon_size = 32
#button_lclick_command = xdotool key ctrl+alt+Left
#button_mclick_command =
#button_rclick_command = xdotool key ctrl+alt+Left
#button_uwheel_command =
#button_dwheel_command =

button = new
button_icon = ~/.config/tint2/void-trmenu.png
button_text =
# button_tooltip = text
button_font = Fira Sans Regular 11
button_font_color = #d6d6d6 100
button_background_id = 0
button_centered = 0
button_padding = 4 2 3
button_max_icon_size = 32
button_lclick_command = jgmenu_run
button_mclick_command = pkill -SIGUSR1 -x tint2
button_rclick_command = jgmenu_run
button_uwheel_command =
button_dwheel_command =

# next desktop
#button = new
#button_icon = ~/.local/share/icons/go-nexttr.png
#button_text =
#button_tooltip =
#button_font = Roboto Regular 8
#button_font_color = #888888 100
#button_background_id = 0
#button_centered = 0
#button_padding = 0 0 0
#button_max_icon_size = 32
#button_lclick_command = xdotool key ctrl+alt+Right
#button_mclick_command =
#button_rclick_command = xdotool key ctrl+alt+Right
#button_uwheel_command =
#button_dwheel_command =

# Panel

# L shows the Launcher
# T shows the Taskbar
# S shows the Systray (also called notification area)
# B shows the Battery status
# C shows the Clock
# F adds an extensible spacer (freespace). You can specify more than one. Has no effect if T is also present. (since 0.12)
# E adds an executor plugin. You can specify more than one. (since 0.12.4)
# P adds a push button. You can specify more than one. (since 0.14)
# : adds a separator. You can specify more than one. (since 0.13.0)

# panel_items = PPP:T:SEEB:C
panel_items = P:TSEEB:C
# panel_items = P:T:SB:C
panel_window_name = tint2_panel
panel_monitor = all
primary_monitor_first = 0
panel_position = bottom left horizontal
panel_size = 0 32
# scale_relative_to_dpi =
# scale_relative_to_screen_height =
panel_shrink = 0
panel_margin = 0 0
panel_padding = 0 0 0
font_shadow = 0
panel_background_id = 1
wm_menu = 0
panel_dock = 0
panel_layer = normal
strut_policy = follow_size
# panel_pivot_struts = 0
disable_transparency = 1
mouse_effects = 1
# mouse_hover_icon_asb = alpha (0 to 100) saturation (-100 to 100) brightness (-100 to 100)
# mouse_pressed_icon_asb = alpha (0 to 100) saturation (-100 to 100) brightness (-100 to 100)
autohide = boolean 0
autohide_show_timeout = 0.7
autohide_hide_timeout = 1.5
autohide_height = 2

# Taskbar
taskbar_mode = multi_desktop
taskbar_hide_if_empty = 0
taskbar_distribute_size = 0
taskbar_padding = 4 2 4
taskbar_background_id = 2
taskbar_active_background_id = 3
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 0
taskbar_hide_different_desktop = 0
taskbar_always_show_all_desktop_tasks = 0
taskbar_sort_order = none
task_align = left
taskbar_name = 0
taskbar_name_padding = 4
taskbar_name_background_id = 0
taskbar_name_font = Roboto Regular 11
taskbar_name_font_color = #DDDDDD 100
taskbar_name_active_background_id = 0
taskbar_name_active_font_color = #222222

task_background_id = 0
task_active_background_id = 0
task_iconified_background_id = 0
task_urgent_background_id = 4
task_icon = 1
task_text = 0
task_centered = 0
task_maximum_size = 36 32
task_tooltip = 1
task_thumbnail = 0
task_thumbnail_size = 64
task_padding = 1 1 1
urgent_nb_of_blink = 10
task_font = Roboto Regular 10
task_font_color = #DDDDDD 100
task_active_font_color = #DDDDDD 100
task_iconified_font_color = #797979 100
task_icon_asb = 100 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 70 0 0

# systemtray
systray_padding = 4 1 4
systray_background_id = 0
systray_sort = right2left
systray_icon_size = 18
systray_icon_asb = 100 0 0
systray_monitor = primary
#systray_name_filter = string

# Battery
battery_hide = never
battery_low_status = 12
battery_low_cmd = notify-send -t 10000 "Battery Low"
battery_full_cmd = notify-send -t 3000 "Battery Full"
bat1_font = Fira Code Regular 10
#bat2_font = Roboto Regular 9
# battery_font_color = #AAAAAA 100
# battery_font_color = #CC8029 100
battery_font_color = #BDBDBD 100
bat1_format = BAT: %p
#bat2_format = %s
#
#%s: State (charging, discharging, full, unknown).
#%m: Minutes left until completely charged/discharged (estimated).
#%h: Hours left until completely charged/discharged (estimated).
#%t: Time left. Shows "hrs:mins" when charging/discharging, or "Ful" when full.
#%p: Percentage. Includes the % sign.
#%P: Percentage. Without the % sign.
#
battery_padding = 12 1
battery_background_id = 0
battery_tooltip_enabled = 1
ac_connected_cmd = notify-send -t 3000 "AC Connected"
ac_disconnected_cmd = notify-send -t 3000 "AC Disconnected"
#battery_lclick_command = text
#battery_rclick_command = text
#battery_mclick_command = text
#battery_uwheel_command = text
#battery_dwheel_command = text

# Clock
time1_format = %k:%M
time1_timezone = :US/Eastern
time1_font = Fira Code Regular 10
# time2_format = %A %d %B
# time2_timezone = :Europe/Berlin
# time2_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]
clock_font_color = #BDBDBD 100
clock_padding = 12 1
clock_background_id = 0
clock_tooltip = %x %R
#clock_tooltip_timezone = :UTC
clock_tooltip_timezone =:US/Eastern
# clock_rclick_command = yad --class="fbox_cal" --title="Fbox_Calendar" --width 320 --calendar --text ""
clock_rclick_command = yad --calendar --width 320 --height 256 --class fbox-calendar --title `date +%F` --text ""
#clock_lclick_command =
#clock_mclick_command =
#clock_uwheel_command = text : Command to execute on wheel scroll up. (since 0.12.1)
#clock_dwheel_command = text : Command to execute on wheel scroll down. (since 0.12.1)

# Mouse
mouse_left = toggle_iconify
mouse_middle = maximize_restore
mouse_right = close
#mouse_scroll_up = toggle
#mouse_scroll_down = iconify

# Tooltips
tooltip_padding = 4 1
tooltip_show_timeout = 0.8
tooltip_hide_timeout = 0.3
tooltip_background_id = 5
tooltip_font = Roboto Regular 9
tooltip_font_color = #131313 100

# separators
separator = new
separator_background_id = 0
separator_color = #0C0C0C 55
# separator_style = [empty | line | dots]
separator_style = line
separator_size = 1
separator_padding = 0 0

# separators
separator = new
separator_background_id = 0
separator_color = #0C0C0C 55
# separator_style = [empty | line | dots]
separator_style = line
separator_size = 1
separator_padding = 0 0

# Executor
execp = new
# execp_command = psuinfo -Cca -N -S2
execp_command = psuinfo -Ca -N -S2
execp_interval = 3
execp_continuous = 0
execp_has_icon = 0
execp_cache_icon = 0
execp_icon_w = 0
execp_icon_h = 0
execp_tooltip =
execp_font = Fira Code Regular 10
execp_font_color = #BDBDBD 100
execp_markup = 0
execp_background_id = 0
execp_centered = 1
execp_padding = 12 1 4
#execp_lclick_command =
#execp_mclick_command =
#execp_rclick_command =
#execp_uwheel_command =
#execp_dwheel_command =

# Executor
execp = new
execp_command = cpu-temp.pl
execp_interval = 3
execp_continuous = 0
execp_has_icon = 0
execp_cache_icon = 0
execp_icon_w = 0
execp_icon_h = 0
execp_tooltip =
execp_font = Fira Code Regular 10
execp_font_color = #BDBDBD 100
execp_markup = 0
execp_background_id = 0
execp_centered = 1
execp_padding = 4 1 4
#execp_lclick_command =
#execp_mclick_command =
#execp_rclick_command =
#execp_uwheel_command =
#execp_dwheel_command =

I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo