From 856231100cc7b44d491239d95b021a549511a08c Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Sun, 23 Oct 2022 17:02:32 -0400 Subject: [PATCH] Added tint2 --- bin/tint2-launcher | 18 +++ config/tint2/tint2rc | 280 +++++++++++++++++++++++++++++++++++ config/tint2/tint2rc.default | 201 +++++++++++++++++++++++++ 3 files changed, 499 insertions(+) create mode 100755 bin/tint2-launcher create mode 100644 config/tint2/tint2rc create mode 100644 config/tint2/tint2rc.default diff --git a/bin/tint2-launcher b/bin/tint2-launcher new file mode 100755 index 0000000..251b288 --- /dev/null +++ b/bin/tint2-launcher @@ -0,0 +1,18 @@ +#!/bin/bash + +# Terminate already running bar instances +killall -q tint2 + +# Wait until the processes have been shut down +while pgrep -u $UID -x tint2 >/dev/null; do sleep 1; done + +# Launch tint2 +tint2 & disown + +# Final command won't work without sleep +sleep 1 && + +# Keep tint2 below other windows in fullscreen +if pgrep -x "tint2" > /dev/null ; then + xdo above -t "$(xdo id -N Bspwm -n root | sort | head -n 1)" $(xdo id -n tint2) +fi diff --git a/config/tint2/tint2rc b/config/tint2/tint2rc new file mode 100644 index 0000000..8666d6f --- /dev/null +++ b/config/tint2/tint2rc @@ -0,0 +1,280 @@ +#---- Generated by tint2conf aeaf ---- +# See https://gitlab.com/o9000/tint2/wikis/Configure for +# full documentation of the configuration options. + +#------------------------------------- +# Gradients + +# Gradient 1: thin film effect +gradient = horizontal +start_color = #111122 30 +end_color = #112211 30 +color_stop = 60 #221111 30 + +# Gradient 2: radial glow +gradient = radial +start_color = #ffffff 20 +end_color = #ffffff 0 + +#------------------------------------- +# Backgrounds + +# Background 1: Panel +rounded = 0 +border_width = 0 +border_sides = TBLR +background_color = #323d43 100 +border_color = #323d43 30 +background_color_hover = #323d43 70 +border_color_hover = #323d43 30 +background_color_pressed = #323d43 100 +border_color_pressed = #323d43 30 + +# Background 2: Default task, Iconified task +rounded = 4 +border_width = 1 +border_sides = TBLR +background_color = #4a555b 20 +border_color = #525c62 30 +background_color_hover = #aaaaaa 22 +border_color_hover = #eaeaea 44 +background_color_pressed = #555555 4 +border_color_pressed = #eaeaea 44 + +# Background 3: Active task +rounded = 4 +border_width = 1 +border_sides = TBLR +background_color = #7fbbb3 40 +border_color = #d8caac 40 +background_color_hover = #aaaaaa 22 +border_color_hover = #eaeaea 44 +background_color_pressed = #555555 4 +border_color_pressed = #eaeaea 44 + +# Background 4: Urgent task +rounded = 4 +border_width = 1 +border_sides = TBLR +background_color = #e26c6e 100 +border_color = #d5b26b 100 +background_color_hover = #dbbc7f 100 +border_color_hover = #d5b26b 100 +background_color_pressed = #555555 4 +border_color_pressed = #d5b26b 100 + +# Background 5: Tooltip +rounded = 1 +border_width = 1 +border_sides = TBLR +background_color = #9bb86f 100 +border_color = #4a555b 100 +background_color_hover = #ffffaa 100 +border_color_hover = #000000 100 +background_color_pressed = #ffffaa 100 +border_color_pressed = #000000 100 + +#------------------------------------- +# Panel +panel_items = TEEB:SCP +panel_size = 100% 48 +scale_relative_to_dpi = 216 +panel_margin = 0 0 +panel_padding = 2 0 2 +panel_background_id = 1 +wm_menu = 1 +panel_dock = 0 +panel_position = top center horizontal +panel_layer = bottom +panel_monitor = all +panel_shrink = 0 +autohide = 0 +autohide_show_timeout = 0 +autohide_hide_timeout = 0.5 +autohide_height = 2 +strut_policy = follow_size +panel_window_name = tint2 +disable_transparency = 1 +mouse_effects = 1 +font_shadow = 0 +mouse_hover_icon_asb = 100 0 10 +mouse_pressed_icon_asb = 100 0 0 + +#------------------------------------- +# Taskbar +taskbar_mode = multi_desktop +taskbar_hide_if_empty = 1 +taskbar_padding = 0 0 2 +taskbar_background_id = 0 +taskbar_active_background_id = 0 +taskbar_name = 1 +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 = Hack 18 +taskbar_name_font_color = #d8caac 100 +taskbar_name_active_font_color = #d0bf9b 100 +taskbar_distribute_size = 0 +taskbar_sort_order = none +task_align = left + +#------------------------------------- +# Task +task_text = 1 +task_icon = 1 +task_centered = 1 +urgent_nb_of_blink = 100000 +task_maximum_size = 150 35 +task_padding = 2 4 2 +task_tooltip = 1 +task_thumbnail = 0 +task_thumbnail_size = 210 +task_font = Hack 10 +task_font_color = #d8caac 100 +task_background_id = 2 +task_active_background_id = 3 +task_urgent_background_id = 4 +task_iconified_background_id = 2 +mouse_left = toggle +mouse_middle = none +mouse_right = close +mouse_scroll_up = prev_task +mouse_scroll_down = next_task + +#------------------------------------- +# System tray (notification area) +systray_padding = 2 4 4 +systray_background_id = 0 +systray_sort = ascending +systray_icon_size = 28 +systray_icon_asb = 100 0 0 +systray_monitor = 1 +systray_name_filter = + +#------------------------------------- +# Launcher +launcher_padding = 2 4 2 +launcher_background_id = 0 +launcher_icon_background_id = 0 +launcher_icon_size = 24 +launcher_icon_asb = 100 0 0 +launcher_icon_theme_override = 0 +startup_notifications = 1 +launcher_tooltip = 1 +launcher_item_app = tint2conf.desktop +launcher_item_app = firefox.desktop +launcher_item_app = iceweasel.desktop +launcher_item_app = chromium-browser.desktop +launcher_item_app = google-chrome.desktop + +#------------------------------------- +# Clock +time1_format = %H:%M +time2_format = %a %d %b +time1_font = Hack 14 +time2_font = Hack 10 +time1_timezone = +time2_timezone = +clock_font_color = #d8caac 100 +clock_padding = 6 0 +clock_background_id = 0 +clock_tooltip = %H:%M %A %d %B %Y +clock_tooltip_timezone = +clock_lclick_command = gsimplecal +clock_rclick_command = +clock_mclick_command = +clock_uwheel_command = +clock_dwheel_command = + +#------------------------------------- +# Battery +battery_tooltip = 1 +battery_low_status = 10 +battery_low_cmd = notify-send "Low battery: 10%" +battery_full_cmd = notify-send "Battery done charging" +bat1_font = Hack 14 +battery_font_color = #d8caac 100 +bat1_format = | Bat: %s %p %t +bat2_format = +battery_padding = 1 0 +battery_background_id = 0 +battery_hide = 101 +battery_lclick_command = +battery_rclick_command = +battery_mclick_command = +battery_uwheel_command = +battery_dwheel_command = +ac_connected_cmd = notify-send "AC Power connected" +ac_disconnected_cmd = "AC Power disconnected" + +#------------------------------------- +# Tooltip +tooltip_show_timeout = 0.5 +tooltip_hide_timeout = 0.1 +tooltip_padding = 4 4 +tooltip_background_id = 5 +tooltip_font_color = #4a555b 100 +tooltip_font = Hack 14 + +#------------------------------------- +# Separators + +# Separator1 +separator = new +separator_background_id = 0 +separator_color = #7fbbb3 +separator_style = dots +separator_size = 4 +separator_padding = 12 0 + +# Separator2 +separator = new +separator_background_id = 0 +separator_color = #7fbbb3 80 +separator_style = line +separator_size = 2 +separator_padding = 12 0 + +# Separator3 +separator = new +separator_background_id = 0 +separator_color = #7fbbb3 +separator_style = empty +separator_size = 6 +separator_padding = 12 0 + +#------------------------------------- +# Executors + +# Exec1 +# Note the use of "stdbuf -oL" to force the program to flush the output line by line. +execp = new +execp_command = free -b -s10| stdbuf -oL awk '/^Mem:/ { printf "Mem: %s / \n", $3 }' | stdbuf -oL numfmt --to=iec-i --field=2 -d' ' +execp_interval = 10 +execp_continuous = 1 +execp_font = Hack 14 +execp_font_color = #d8caac 100 + +# Exec2 +execp = new +execp_command = free -b -s10| stdbuf -oL awk '/^Mem:/ { printf "%s %.0f%%\n", $2, 100 * ($2 - $7) / $2 }' | stdbuf -oL numfmt --to=iec-i --field=1 -d' ' +execp_interval = 10 +execp_continuous = 1 +execp_font = Hack 14 +execp_font_color = #d8caac 100 + +#------------------------------------- +# Buttons + +#Button1 +button = new +button_text = +button_icon = /usr/share/icons/Papirus-Dark/24x24/actions/exit.svg +button_background_id = 0 +button_lclick_command = rofi -dpi 240 -show power-menu -modi power-menu:/usr/bin/rofi-power-menu +button_mclick_command = rofi -dpi 240 -show power-menu -modi power-menu:"/usr/bin/rofi-power-menu --choose suspend/hibernate" +button_rclick_command = rofi -dpi 240 -show power-menu -modi power-menu:"/usr/bin/rofi-power-menu --choices reboot/shutdown" diff --git a/config/tint2/tint2rc.default b/config/tint2/tint2rc.default new file mode 100644 index 0000000..d2176cb --- /dev/null +++ b/config/tint2/tint2rc.default @@ -0,0 +1,201 @@ +#---- Generated by tint2conf aeaf ---- +# See https://gitlab.com/o9000/tint2/wikis/Configure for +# full documentation of the configuration options. +#------------------------------------- +# Gradients +#------------------------------------- +# Backgrounds +# Background 1: Panel +rounded = 0 +border_width = 0 +border_sides = TBLR +background_color = #000000 60 +border_color = #000000 30 +background_color_hover = #000000 60 +border_color_hover = #000000 30 +background_color_pressed = #000000 60 +border_color_pressed = #000000 30 + +# Background 2: Default task, Iconified task +rounded = 4 +border_width = 1 +border_sides = TBLR +background_color = #777777 20 +border_color = #777777 30 +background_color_hover = #aaaaaa 22 +border_color_hover = #eaeaea 44 +background_color_pressed = #555555 4 +border_color_pressed = #eaeaea 44 + +# Background 3: Active task +rounded = 4 +border_width = 1 +border_sides = TBLR +background_color = #777777 20 +border_color = #ffffff 40 +background_color_hover = #aaaaaa 22 +border_color_hover = #eaeaea 44 +background_color_pressed = #555555 4 +border_color_pressed = #eaeaea 44 + +# Background 4: Urgent task +rounded = 4 +border_width = 1 +border_sides = TBLR +background_color = #aa4400 100 +border_color = #aa7733 100 +background_color_hover = #cc7700 100 +border_color_hover = #aa7733 100 +background_color_pressed = #555555 4 +border_color_pressed = #aa7733 100 + +# Background 5: Tooltip +rounded = 1 +border_width = 1 +border_sides = TBLR +background_color = #222222 100 +border_color = #333333 100 +background_color_hover = #ffffaa 100 +border_color_hover = #000000 100 +background_color_pressed = #ffffaa 100 +border_color_pressed = #000000 100 + +#------------------------------------- +# Panel +panel_items = LTSC +panel_size = 100% 30 +panel_margin = 0 0 +panel_padding = 2 0 2 +panel_background_id = 1 +wm_menu = 1 +panel_dock = 0 +panel_position = bottom center horizontal +panel_layer = top +panel_monitor = all +panel_shrink = 0 +autohide = 0 +autohide_show_timeout = 0 +autohide_hide_timeout = 0.5 +autohide_height = 2 +strut_policy = follow_size +panel_window_name = tint2 +disable_transparency = 1 +mouse_effects = 1 +font_shadow = 0 +mouse_hover_icon_asb = 100 0 10 +mouse_pressed_icon_asb = 100 0 0 + +#------------------------------------- +# Taskbar +taskbar_mode = single_desktop +taskbar_hide_if_empty = 0 +taskbar_padding = 0 0 2 +taskbar_background_id = 0 +taskbar_active_background_id = 0 +taskbar_name = 1 +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 + +#------------------------------------- +# Task +task_text = 1 +task_icon = 1 +task_centered = 1 +urgent_nb_of_blink = 100000 +task_maximum_size = 150 35 +task_padding = 2 2 4 +task_tooltip = 1 +task_thumbnail = 0 +task_thumbnail_size = 210 +task_font_color = #ffffff 100 +task_background_id = 2 +task_active_background_id = 3 +task_urgent_background_id = 4 +task_iconified_background_id = 2 +mouse_left = toggle_iconify +mouse_middle = none +mouse_right = close +mouse_scroll_up = toggle +mouse_scroll_down = iconify + +#------------------------------------- +# System tray (notification area) +systray_padding = 0 4 2 +systray_background_id = 0 +systray_sort = ascending +systray_icon_size = 24 +systray_icon_asb = 100 0 0 +systray_monitor = 1 +systray_name_filter = + +#------------------------------------- +# Launcher +launcher_padding = 2 4 2 +launcher_background_id = 0 +launcher_icon_background_id = 0 +launcher_icon_size = 24 +launcher_icon_asb = 100 0 0 +launcher_icon_theme_override = 0 +startup_notifications = 1 +launcher_tooltip = 1 +launcher_item_app = tint2conf.desktop +launcher_item_app = firefox.desktop +launcher_item_app = iceweasel.desktop +launcher_item_app = chromium-browser.desktop +launcher_item_app = google-chrome.desktop + +#------------------------------------- +# Clock +time1_format = %H:%M +time2_format = %A %d %B +time1_timezone = +time2_timezone = +clock_font_color = #ffffff 100 +clock_padding = 2 0 +clock_background_id = 0 +clock_tooltip = +clock_tooltip_timezone = +clock_lclick_command = +clock_rclick_command = orage +clock_mclick_command = +clock_uwheel_command = +clock_dwheel_command = + +#------------------------------------- +# Battery +battery_tooltip = 1 +battery_low_status = 10 +battery_low_cmd = xmessage 'tint2: Battery low!' +battery_full_cmd = +battery_font_color = #ffffff 100 +bat1_format = +bat2_format = +battery_padding = 1 0 +battery_background_id = 0 +battery_hide = 101 +battery_lclick_command = +battery_rclick_command = +battery_mclick_command = +battery_uwheel_command = +battery_dwheel_command = +ac_connected_cmd = +ac_disconnected_cmd = + +#------------------------------------- +# Tooltip +tooltip_show_timeout = 0.5 +tooltip_hide_timeout = 0.1 +tooltip_padding = 4 4 +tooltip_background_id = 5 +tooltip_font_color = #dddddd 100 +