Commit d90439a2 authored by Jay Ta'ala's avatar Jay Ta'ala
Browse files

Merge branch 'tint2' into reverse-layout

parents d1374db4 4a06c946
......@@ -123,7 +123,7 @@ exec --no-startup-id fcitx -d
exec --no-startup-id nm-applet
exec --no-startup-id optimus-manager-qt
exec --no-startup-id xfce4-power-manager
exec_always --no-startup-id "pkill conky; sleep 0.5; conky -c ~/.config/conky; conky -c ~/.config/conky_shortcuts"
exec_always --no-startup-id pkill conky && sleep 0.5; conky -c ~/.config/conky; conky -c ~/.config/conky_shortcuts
set $picom_start "pkill picom; sleep 1; picom -b"
exec_always --no-startup-id $picom_start
#exec --no-startup-id yes | xsm --restore
......@@ -132,12 +132,24 @@ exec_always --no-startup-id $picom_start
bindsym $mod+t exec --no-startup-id $picom_start
bindsym $mod+ctrl+t exec --no-startup-id "killall picom"
# tint2 configuration (needs tint2 package)
exec_always --no-startup-id killall tint2 && sleep 0.5; tint2
for_window [class="(?i)^tint2conf$"] floating disable
# subscribe to urgent event and set _NET_WM_STATE_DEMANDS_ATTENTION (for tint2)
exec_always --no-startup-id i3-msg -t subscribe -m '[ "window" ]' | jq --unbuffered -Mrc '. | select(.change == "urgent" and .container.urgent == true and .container.focused == false) | .container.window' | xargs -I{} xprop -id {} -f _NET_WM_STATE 32a -set _NET_WM_STATE _NET_WM_STATE_DEMANDS_ATTENTION
# subscribe to urgent event being selected and set _NET_WM_STATE_FOCUSED (for tint2)
exec_always --no-startup-id i3-msg -t subscribe -m '[ "window" ]' | jq --unbuffered -Mrc '. | select(.change == "urgent" and .container.focused == true) | .container.window' | xargs -I{} xprop -id {} -f _NET_WM_STATE 32a -set _NET_WM_STATE _NET_WM_STATE_FOCUSED
# never steal focus
focus_on_window_activation urgent
bindsym $mod+period [urgent=latest] focus
# kill focused window
bindsym $mod+Shift+q kill
# start program launcher
#bindsym $mod+d exec --no-startup-id dmenu_recency
bindsym $mod_next+Tab exec --no-startup-id "rofi -show-icons -modi drun,window -show drun -scroll-method 1 -kb-element-next \\"\\" -kb-element-next \\"\\" -kb-mode-next \\"Tab\\" -kb-row-up \\"Super+k\\" -kb-row-down \\"Super+j\\" -theme lb -theme-str '* { font: \\"DejaVu Sans Mono 16\\"; foreground: #ffffff; border-color: $accent-bg; separatorcolor: $accent-bg; selected-normal-background: $accent-bg; } window { height: 80%; }'"
bindsym $mod_next+Tab exec --no-startup-id "rofi -show-icons -modi window,drun -show window -scroll-method 1 -kb-element-next \\"\\" -kb-element-next \\"\\" -kb-mode-next \\"Tab\\" -kb-row-up \\"Super+k\\" -kb-row-down \\"Super+j\\" -theme lb -theme-str '* { font: \\"DejaVu Sans Mono 16\\"; foreground: #ffffff; border-color: $accent-bg; separatorcolor: $accent-bg; selected-normal-background: $accent-bg; } window { height: 80%; }'"
# instant layout
# REQUIRES i3-instant-layout and XDOTOOL
......@@ -190,8 +202,8 @@ bindsym $mod+d focus right
# convenience move
bindsym $mod+z move left
bindsym $mod+x move right
bindsym $mod+Ctrl+z move left; focus right
bindsym $mod+Ctrl+x move right; focus left
bindsym $mod+Shift+z move left; focus right
bindsym $mod+Shift+x move right; focus left
# move focused window
bindsym $mod+Shift+h move left 50px
......@@ -256,7 +268,7 @@ bindsym $mod_next+Shift+e layout splitv, layout fill_order default
bindsym $mod_next+Shift+s layout stacking, layout fill_order default
# child container layout bindsyms (creates a child container from currently select window)
bindsym $mod+c split h, layout splitv
bindsym $mod+c split h, layout splitv, focus parent, $border_no_name, focus child
bindsym $mod+$mod_next+c split h, layout tabbed reverse
bindsym $mod+$mod_next+z focus left; move right
bindsym $mod+$mod_next+x focus right; move left
......@@ -415,9 +427,6 @@ bindsym $mod_next+Shift+d exec --no-startup-id smplayer -send-action forward1
bindsym $mod_next+Shift+h exec --no-startup-id smplayer -send-action rewind1
bindsym $mod_next+Shift+l exec --no-startup-id smplayer -send-action forward1
# switch to workspace with urgent window automatically
for_window [urgent=latest] focus
# reload the configuration file
bindsym $mod+Ctrl+Shift+c reload
......@@ -515,37 +524,46 @@ mode "$mode_redshift" {
bindsym Escape mode "default"
}
# Start i3bar to display a workspace bar (plus the system information i3status if available)
bar {
i3bar_command i3bar
status_command py3status -c ~/.i3status.conf
position bottom
## please set your primary output first. Example: 'xrandr --output eDP1 --primary'
# tray_output primary
# tray_output eDP1
bindsym button4 nop bindsym button5 nop
# font xft:URWGothic-Book 11
strip_workspace_numbers no
colors {
#background #4a4a4a
background #000000
#statusline #F9FAF9
statusline $accent-bg
#separator #454947
separator $accent-bg
# border backgr. text
focused_workspace $accent-txt $accent-bg $accent-txt
active_workspace #595B5B #353836 #FDF6E3
inactive_workspace #595B5B #283339 #EEE8D5
binding_mode $accent-bg #2C2C2C #F9FAF9
urgent_workspace $accent-bg #FDF6E3 #E5201D
}
position top
mode hide
modifier none
workspace_buttons no
tray_output none
}
## Start i3bar to display a workspace bar (plus the system information i3status if available)
#bar {
# i3bar_command i3bar
# status_command py3status -c ~/.i3status.conf
# position bottom
#
### please set your primary output first. Example: 'xrandr --output eDP1 --primary'
## tray_output primary
## tray_output eDP1
#
# bindsym button4 nop bindsym button5 nop
## font xft:URWGothic-Book 11
# strip_workspace_numbers no
#
# colors {
# #background #4a4a4a
# background #000000
# #statusline #F9FAF9
# statusline $accent-bg
# #separator #454947
# separator $accent-bg
#
## border backgr. text
# focused_workspace $accent-txt $accent-bg $accent-txt
# active_workspace #595B5B #353836 #FDF6E3
# inactive_workspace #595B5B #283339 #EEE8D5
# binding_mode $accent-bg #2C2C2C #F9FAF9
# urgent_workspace $accent-bg #FDF6E3 #E5201D
# }
#}
# hide/unhide i3status bar
bindsym $mod+Control+m bar mode toggle
......
......@@ -114,6 +114,17 @@ exec_always --no-startup-id vmware-user-suid-wrapper
bindsym $mod+t exec --no-startup-id $picom_start
bindsym $mod+ctrl+t exec --no-startup-id "killall picom"
# tint2 configuration (needs tint2 package)
exec --no-startup-id tint2
# subscribe to urgent event and set _NET_WM_STATE_DEMANDS_ATTENTION (for tint2)
exec_always --no-startup-id i3-msg -t subscribe -m '[ "window" ]' | jq --unbuffered -Mrc '. | select(.change == "urgent" and .container.urgent == true and .container.focused == false) | .container.window' | xargs -I{} xprop -id {} -f _NET_WM_STATE 32a -set _NET_WM_STATE _NET_WM_STATE_DEMANDS_ATTENTION
# subscribe to urgent event being selected and set _NET_WM_STATE_FOCUSED (for tint2)
exec_always --no-startup-id i3-msg -t subscribe -m '[ "window" ]' | jq --unbuffered -Mrc '. | select(.change == "urgent" and .container.focused == true) | .container.window' | xargs -I{} xprop -id {} -f _NET_WM_STATE 32a -set _NET_WM_STATE _NET_WM_STATE_FOCUSED
# never steal focus
focus_on_window_activation urgent
bindsym $mod+period [urgent=latest] focus
# kill focused window
bindsym $mod+Shift+q kill
......@@ -131,9 +142,8 @@ bindsym $mod+$mod_next+v exec --no-startup-id "killall volumeicon; sleep 1; volu
################################################################################################
# start dmenu (a program launcher)
#bindsym $mod_next+Tab exec --no-startup-id "rofi -show-icons -modi drun,window -show drun -scroll-method 1 -kb-element-next \\"\\" -kb-element-next \\"\\" -kb-mode-next \\"Tab\\" -kb-row-up \\"Super+k\\" -kb-row-down \\"Super+j\\" -theme lb -theme-str '* { font: \\"DejaVu Sans Mono 16\\"; foreground: #ffffff; border-color: $accent-bg; separatorcolor: $accent-bg; selected-normal-background: $accent-bg; } window { height: 80%; }'"
bindsym $mod_next+d exec --no-startup-id dmenu_run -sb "$accent-bg"
bindsym $mod_next+Return exec --no-startup-id dmenu_run "$accent-bg"
#bindsym $mod_next+Tab exec --no-startup-id "rofi -show-icons -modi window,drun -show window -scroll-method 1 -kb-element-next \\"\\" -kb-element-next \\"\\" -kb-mode-next \\"Tab\\" -kb-row-up \\"Super+k\\" -kb-row-down \\"Super+j\\" -theme lb -theme-str '* { font: \\"DejaVu Sans Mono 16\\"; foreground: #ffffff; border-color: $accent-bg; separatorcolor: $accent-bg; selected-normal-background: $accent-bg; } window { height: 80%; }'"
bindsym $mod_next+Tab exec --no-startup-id dmenu_run -sb "$accent-bg"
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
......@@ -162,8 +172,8 @@ bindsym $mod+d focus right
# convenience move
bindsym $mod+z move left
bindsym $mod+x move right
bindsym $mod+Ctrl+z move left; focus right
bindsym $mod+Ctrl+x move right; focus left
bindsym $mod+Shift+z move left; focus right
bindsym $mod+Shift+x move right; focus left
# move focused window
bindsym $mod+Shift+h move left 50px
......@@ -228,7 +238,7 @@ bindsym $mod_next+Shift+e layout splitv, layout fill_order default
bindsym $mod_next+Shift+s layout stacking, layout fill_order default
# child container layout bindsyms (creates a child container from currently select window)
bindsym $mod+c split h, layout splitv
bindsym $mod+c split h, layout splitv, focus parent, $border_no_name, focus child
bindsym $mod+$mod_next+c split h, layout tabbed reverse
bindsym $mod+$mod_next+z focus left; move right
bindsym $mod+$mod_next+x focus right; move left
......@@ -384,37 +394,45 @@ bindsym $mod+$mod_next+Shift+j resize grow height 100 px or 10 ppt
bindsym $mod+$mod_next+Shift+k resize shrink height 100 px or 10 ppt
bindsym $mod+$mod_next+Shift+l resize grow width 100 px or 10 ppt
# Start i3bar to display a workspace bar (plus the system information i3status if available)
bar {
i3bar_command i3bar
status_command i3status
position bottom
## please set your primary output first. Example: 'xrandr --output eDP1 --primary'
# tray_output primary
# tray_output eDP1
bindsym button4 nop bindsym button5 nop
# font xft:URWGothic-Book 11
strip_workspace_numbers no
colors {
#background #4a4a4a
background #000000
#statusline #F9FAF9
statusline $accent-bg
#separator #454947
separator $accent-bg
# border backgr. text
focused_workspace $accent-txt $accent-bg $accent-txt
active_workspace #595B5B #353836 #FDF6E3
inactive_workspace #595B5B #283339 #EEE8D5
binding_mode $accent-bg #2C2C2C #F9FAF9
urgent_workspace $accent-bg #FDF6E3 #E5201D
}
position top
mode hide
modifier none
workspace_buttons no
tray_output none
}
## Start i3bar to display a workspace bar (plus the system information i3status if available)
#bar {
# i3bar_command i3bar
# status_command py3status -c ~/.i3status.conf
# position bottom
#
### please set your primary output first. Example: 'xrandr --output eDP1 --primary'
## tray_output primary
## tray_output eDP1
#
# bindsym button4 nop bindsym button5 nop
## font xft:URWGothic-Book 11
# strip_workspace_numbers no
#
# colors {
# #background #4a4a4a
# background #000000
# #statusline #F9FAF9
# statusline $accent-bg
# #separator #454947
# separator $accent-bg
#
## border backgr. text
# focused_workspace $accent-txt $accent-bg $accent-txt
# active_workspace #595B5B #353836 #FDF6E3
# inactive_workspace #595B5B #283339 #EEE8D5
# binding_mode $accent-bg #2C2C2C #F9FAF9
# urgent_workspace $accent-bg #FDF6E3 #E5201D
# }
#}
# hide/unhide i3status bar
bindsym $mod+Control+m bar mode toggle
#---- Generated by tint2conf 7786 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Gradients
#-------------------------------------
# Backgrounds
# Background 1: Panel, Tooltip
rounded = 5
border_width = 1
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #000000 80
border_color = #555555 80
background_color_hover = #000000 80
border_color_hover = #555555 80
background_color_pressed = #000000 80
border_color_pressed = #555555 80
# Background 2: Default task, Iconified task
rounded = 5
border_width = 1
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #777777 0
border_color = #777777 0
background_color_hover = #777777 4
border_color_hover = #cccccc 30
background_color_pressed = #333333 4
border_color_pressed = #777777 30
# Background 3:
rounded = 3
border_width = 2
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #555555 10
border_color = #777777 4
background_color_hover = #cccccc 10
border_color_hover = #ffffff 60
background_color_pressed = #555555 10
border_color_pressed = #ffffff 60
# Background 4: Active desktop name
rounded = 3
border_width = 1
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #07eded 100
border_color = #777777 30
background_color_hover = #07eded 100
border_color_hover = #cccccc 30
background_color_pressed = #777777 0
border_color_pressed = #777777 30
# Background 5: Urgent task
rounded = 2
border_width = 2
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #ed333b 50
border_color = #ed333b 100
background_color_hover = #000000 0
border_color_hover = #ed333b 100
background_color_pressed = #000000 0
border_color_pressed = #000000 0
# Background 6: Active task
rounded = 2
border_width = 2
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #000000 0
border_color = #07eded 100
background_color_hover = #000000 0
border_color_hover = #07eded 100
background_color_pressed = #000000 0
border_color_pressed = #000000 0
# Background 7: Active taskbar
rounded = 0
border_width = 0
border_sides =
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #07eded 44
border_color = #000000 0
background_color_hover = #000000 0
border_color_hover = #000000 0
background_color_pressed = #000000 0
border_color_pressed = #000000 0
#-------------------------------------
# Panel
panel_items = TFEE:E:BSC
panel_size = 100% 32
panel_margin = 0 0
panel_padding = 4 2 4
panel_background_id = 1
wm_menu = 1
panel_dock = 1
panel_pivot_struts = 0
panel_position = bottom left horizontal
panel_layer = normal
panel_monitor = all
panel_shrink = 0
autohide = 0
autohide_show_timeout = 0
autohide_hide_timeout = 0.1
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
scale_relative_to_dpi = 0
scale_relative_to_screen_height = 0
#-------------------------------------
# Taskbar
taskbar_mode = multi_desktop
taskbar_hide_if_empty = 0
taskbar_padding = 2 0 2
taskbar_background_id = 0
taskbar_active_background_id = 7
taskbar_name = 1
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 0
taskbar_hide_different_desktop = 0
taskbar_always_show_all_desktop_tasks = 1
taskbar_name_padding = 6 0
taskbar_name_background_id = 0
taskbar_name_active_background_id = 4
taskbar_name_font = sans Bold 12
taskbar_name_font_color = #07eded 100
taskbar_name_active_font_color = #000000 100
taskbar_distribute_size = 0
taskbar_sort_order = application
task_align = left
#-------------------------------------
# Task
task_text = 0
task_icon = 1
task_centered = 1
urgent_nb_of_blink = 0
task_maximum_size = 28 0
task_padding = 0 0 0
task_font = Sans 12
task_tooltip = 1
task_thumbnail = 0
task_thumbnail_size = 210
task_font_color = #eeeeee 100
task_icon_asb = 97 30 30
task_background_id = 2
task_active_background_id = 6
task_urgent_background_id = 5
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 = 0 0 2
systray_background_id = 0
systray_sort = ascending
systray_icon_size = 22
systray_icon_asb = 100 0 0
systray_monitor = primary
systray_name_filter =
#-------------------------------------
# Launcher
launcher_padding = 0 0 2
launcher_background_id = 0
launcher_icon_background_id = 0
launcher_icon_size = 22
launcher_icon_asb = 100 0 0
launcher_icon_theme_override = 0
startup_notifications = 1
launcher_tooltip = 1
launcher_item_app = tint2conf.desktop
#-------------------------------------
# Clock
time1_format = %Y-%m-%dT%H:%M:%S
time2_format =
time1_font = sans Bold 12
time1_timezone =
time2_timezone =
clock_font_color = #eeeeee 100
clock_padding = 1 0
clock_background_id = 0
clock_tooltip =
clock_tooltip_timezone =
clock_lclick_command = zenity --calendar --text ""
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 'Battery low'
battery_full_cmd =
bat1_font = sans 12
bat2_font = sans 6
battery_font_color = #eeeeee 100
bat1_format = %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 =
ac_disconnected_cmd =
#-------------------------------------
# Separator 1
separator = new
separator_background_id = 0
separator_color = #777777 80
separator_style = dots
separator_size = 3
separator_padding = 1 0
#-------------------------------------
# Separator 2
separator = new
separator_background_id = 0
separator_color = #777777 80
separator_style = line
separator_size = 3
separator_padding = 1 0
#-------------------------------------
# Executor 1
execp = new
execp_command = stdbuf -oL bwm-ng -o csv -t 1000 | stdbuf -oL awk -F ';' '/total/ { printf "NET: %6.3f MB/s\n", ($5/1.0e6) }'
execp_interval = 1
execp_has_icon = 0
execp_cache_icon = 1
execp_continuous = 1
execp_markup = 0
execp_monitor = all
execp_lclick_command =
execp_rclick_command =
execp_mclick_command =
execp_uwheel_command =
execp_dwheel_command =
execp_font = Bitstream Vera Sans 12
execp_font_color = #ffffff 100
execp_padding = 0 0
execp_background_id = 0
execp_centered = 0
execp_icon_w = 0
execp_icon_h = 0
#-------------------------------------
# Executor 2
execp = new
execp_command = echo IP:$(curl http://whatismyip.akamai.com)
execp_interval = 10
execp_has_icon = 0
execp_cache_icon = 1
execp_continuous = 0
execp_markup = 1
execp_monitor = all
execp_lclick_command =
execp_rclick_command =
execp_mclick_command =
execp_uwheel_command =
execp_dwheel_command =
execp_font = Bitstream Vera Sans 12
execp_font_color = #ffffff 100
execp_padding = 0 0
execp_background_id = 0
execp_centered = 0
execp_icon_w = 0
execp_icon_h = 0
#-------------------------------------
# Executor 3
execp = new
execp_command = echo $(ifconfig wlp3s0 | grep netmask | awk '{print $2}')
execp_interval = 10
execp_has_icon = 0
execp_cache_icon = 0
execp_continuous = 0
execp_markup = 0
execp_monitor = all
execp_lclick_command =
execp_rclick_command =
execp_mclick_command =
execp_uwheel_command =
execp_dwheel_command =
execp_font = Bitstream Vera Sans 12
execp_font_color = #ffffff 100
execp_padding = 0 0
execp_background_id = 0
execp_centered = 1
execp_icon_w = 0
execp_icon_h = 0
#-------------------------------------
# Tooltip
tooltip_show_timeout = 0
tooltip_hide_timeout = 0
tooltip_padding = 10 6
tooltip_background_id = 1
tooltip_font_color = #ffffff 100
tooltip_font = sans 14
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment