DSK, tint2: Migrate to tint2

Now all of my dependencies are in the Debian repos\!
This commit is contained in:
Salt 2018-11-16 22:56:06 -06:00
parent 7c13b0779c
commit 1910d2b26c
4 changed files with 374 additions and 35 deletions

View File

@ -1,35 +0,0 @@
#! /usr/bin/env bash
# Make sure we have our xrdb stuff going
if which xrdbupdate > /dev/null 2>&1; then
xrdbupdate > /dev/null 2>&1
fi
# Restack compatibility
if pgrep -U "$UID" bspwm > /dev/null 2>&1; then
export PB_WM_RESTACK="bspwm"
fi
# Spawn bars on the primary monitor
export PB_MONITOR=$(xrandr -q | awk '/primary/{print $1}')
polybar -r primary &
polybar -r primary-2 &
# Spawn more for each secondary
export secondary_monitors=$(xrandr -q | grep ' connected' | grep -v 'primary' | awk '{print $1}')
if [ "$secondary_monitors" == "" ]; then
return 0
fi
for monitor in $secondary_monitors; do
PB_MONITOR=$monitor
polybar -r secondary &
polybar -r secondary-2 &
done
# Trap our exit
die() {
pkill -P "$PID"
}
trap die EXIT
# And wait
wait

2
.config/dsk/run/tint2 Executable file
View File

@ -0,0 +1,2 @@
#! /usr/bin/env bash
tint2

186
.config/tint2/salt.tint2rc Normal file
View File

@ -0,0 +1,186 @@
#---- Generated by tint2conf 8e60 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Gradients
#-------------------------------------
# Backgrounds
# Background 1: Inactive desktop name, Panel
rounded = 0
border_width = 0
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #282828 100
border_color = #000000 0
background_color_hover = #282828 100
border_color_hover = #000000 0
background_color_pressed = #282828 100
border_color_pressed = #000000 0
# Background 2: Active desktop name, Active task
rounded = 0
border_width = 0
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #83a598 100
border_color = #000000 0
background_color_hover = #282828 100
border_color_hover = #000000 0
background_color_pressed = #282828 100
border_color_pressed = #000000 0
# Background 3: Active taskbar, Tooltip
rounded = 0
border_width = 0
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #3c3836 100
border_color = #000000 0
background_color_hover = #282828 100
border_color_hover = #000000 0
background_color_pressed = #282828 100
border_color_pressed = #000000 0
#-------------------------------------
# Panel
panel_items = TBC
panel_size = 100% 36
panel_margin = 0 0
panel_padding = 0 0 8
panel_background_id = 1
wm_menu = 0
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
autohide_height = 1
strut_policy = follow_size
panel_window_name = tint2
disable_transparency = 0
mouse_effects = 0
font_shadow = 0
mouse_hover_icon_asb = 100 0 10
mouse_pressed_icon_asb = 100 0 0
scale_relative_to_dpi = 0
scale_relative_to_screen_height = 0
#-------------------------------------
# Taskbar
taskbar_mode = multi_desktop
taskbar_hide_if_empty = 0
taskbar_padding = 0 0 10
taskbar_background_id = -1
taskbar_active_background_id = 3
taskbar_name = 1
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 1
taskbar_hide_different_desktop = 0
taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 24 0
taskbar_name_background_id = 1
taskbar_name_active_background_id = 2
taskbar_name_font = Inconsolata 10
taskbar_name_font_color = #ebdbb2 100
taskbar_name_active_font_color = #282828 100
taskbar_distribute_size = 0
taskbar_sort_order = center
task_align = left
#-------------------------------------
# Task
task_text = 0
task_icon = 1
task_centered = 0
urgent_nb_of_blink = 0
task_maximum_size = 36 36
task_padding = 10 10 4
task_font = Inconsolata Medium 10
task_tooltip = 0
task_thumbnail = 0
task_thumbnail_size = 480
task_font_color = #ebdbb2 100
task_active_font_color = #282828 100
task_urgent_font_color = #fabd2f 100
task_active_background_id = 2
mouse_left = none
mouse_middle = none
mouse_right = none
mouse_scroll_up = none
mouse_scroll_down = none
#-------------------------------------
# System tray (notification area)
systray_padding = 0 0 0
systray_background_id = -1
systray_sort = ascending
systray_icon_size = 0
systray_icon_asb = 100 0 0
systray_monitor = primary
systray_name_filter =
#-------------------------------------
# Launcher
launcher_padding = 0 0 0
launcher_background_id = -1
launcher_icon_background_id = -1
launcher_icon_size = 0
launcher_icon_asb = 100 0 0
launcher_icon_theme_override = 0
startup_notifications = 0
launcher_tooltip = 0
#-------------------------------------
# Clock
time1_format = %a %I:%M %p
time2_format =
time1_font = Inconsolata 10
time1_timezone =
time2_timezone =
clock_font_color = #ebdbb2 100
clock_padding = 16 0
clock_background_id = 0
clock_tooltip =
clock_tooltip_timezone =
clock_lclick_command =
clock_rclick_command =
clock_mclick_command =
clock_uwheel_command =
clock_dwheel_command =
#-------------------------------------
# Battery
battery_tooltip = 0
battery_low_status = 20
battery_low_cmd =
battery_full_cmd =
bat1_font = Inconsolata 10
battery_font_color = #b8bb26 100
bat1_format = %p
bat2_format =
battery_padding = 0 0
battery_background_id = 0
battery_hide = 0
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
tooltip_hide_timeout = 0
tooltip_padding = 4 4
tooltip_background_id = 3
tooltip_font_color = #ebdbb2 100
tooltip_font = Noto Sans 10

186
.config/tint2/tint2rc Normal file
View File

@ -0,0 +1,186 @@
#---- Generated by tint2conf 8e60 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Gradients
#-------------------------------------
# Backgrounds
# Background 1: Inactive desktop name, Panel
rounded = 0
border_width = 0
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #282828 100
border_color = #000000 0
background_color_hover = #282828 100
border_color_hover = #000000 0
background_color_pressed = #282828 100
border_color_pressed = #000000 0
# Background 2: Active desktop name, Active task
rounded = 0
border_width = 0
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #83a598 100
border_color = #000000 0
background_color_hover = #282828 100
border_color_hover = #000000 0
background_color_pressed = #282828 100
border_color_pressed = #000000 0
# Background 3: Active taskbar, Tooltip
rounded = 0
border_width = 0
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #3c3836 100
border_color = #000000 0
background_color_hover = #282828 100
border_color_hover = #000000 0
background_color_pressed = #282828 100
border_color_pressed = #000000 0
#-------------------------------------
# Panel
panel_items = TBC
panel_size = 100% 36
panel_margin = 0 0
panel_padding = 0 0 8
panel_background_id = 1
wm_menu = 0
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
autohide_height = 1
strut_policy = follow_size
panel_window_name = tint2
disable_transparency = 0
mouse_effects = 0
font_shadow = 0
mouse_hover_icon_asb = 100 0 10
mouse_pressed_icon_asb = 100 0 0
scale_relative_to_dpi = 0
scale_relative_to_screen_height = 0
#-------------------------------------
# Taskbar
taskbar_mode = multi_desktop
taskbar_hide_if_empty = 0
taskbar_padding = 0 0 10
taskbar_background_id = -1
taskbar_active_background_id = 3
taskbar_name = 1
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 1
taskbar_hide_different_desktop = 0
taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 24 0
taskbar_name_background_id = 1
taskbar_name_active_background_id = 2
taskbar_name_font = Inconsolata 10
taskbar_name_font_color = #ebdbb2 100
taskbar_name_active_font_color = #282828 100
taskbar_distribute_size = 0
taskbar_sort_order = center
task_align = left
#-------------------------------------
# Task
task_text = 0
task_icon = 1
task_centered = 0
urgent_nb_of_blink = 0
task_maximum_size = 36 36
task_padding = 10 10 4
task_font = Inconsolata Medium 10
task_tooltip = 0
task_thumbnail = 0
task_thumbnail_size = 480
task_font_color = #ebdbb2 100
task_active_font_color = #282828 100
task_urgent_font_color = #fabd2f 100
task_active_background_id = 2
mouse_left = none
mouse_middle = none
mouse_right = none
mouse_scroll_up = none
mouse_scroll_down = none
#-------------------------------------
# System tray (notification area)
systray_padding = 0 0 0
systray_background_id = -1
systray_sort = ascending
systray_icon_size = 0
systray_icon_asb = 100 0 0
systray_monitor = primary
systray_name_filter =
#-------------------------------------
# Launcher
launcher_padding = 0 0 0
launcher_background_id = -1
launcher_icon_background_id = -1
launcher_icon_size = 0
launcher_icon_asb = 100 0 0
launcher_icon_theme_override = 0
startup_notifications = 0
launcher_tooltip = 0
#-------------------------------------
# Clock
time1_format = %a %I:%M %p
time2_format =
time1_font = Inconsolata 10
time1_timezone =
time2_timezone =
clock_font_color = #ebdbb2 100
clock_padding = 16 0
clock_background_id = 0
clock_tooltip =
clock_tooltip_timezone =
clock_lclick_command =
clock_rclick_command =
clock_mclick_command =
clock_uwheel_command =
clock_dwheel_command =
#-------------------------------------
# Battery
battery_tooltip = 0
battery_low_status = 20
battery_low_cmd =
battery_full_cmd =
bat1_font = Inconsolata 10
battery_font_color = #b8bb26 100
bat1_format = %p
bat2_format =
battery_padding = 0 0
battery_background_id = 0
battery_hide = 0
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
tooltip_hide_timeout = 0
tooltip_padding = 4 4
tooltip_background_id = 3
tooltip_font_color = #ebdbb2 100
tooltip_font = Noto Sans 10