Commit 08a74ea3 authored by Jay Ta'ala's avatar Jay Ta'ala
Browse files

Update on tint2 starting and urgent colour.

parent ae7989fd
...@@ -122,7 +122,7 @@ exec --no-startup-id fcitx -d ...@@ -122,7 +122,7 @@ exec --no-startup-id fcitx -d
exec --no-startup-id nm-applet exec --no-startup-id nm-applet
exec --no-startup-id optimus-manager-qt exec --no-startup-id optimus-manager-qt
exec --no-startup-id xfce4-power-manager 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" set $picom_start "pkill picom; sleep 1; picom -b"
exec_always --no-startup-id $picom_start exec_always --no-startup-id $picom_start
#exec --no-startup-id yes | xsm --restore #exec --no-startup-id yes | xsm --restore
...@@ -132,7 +132,8 @@ bindsym $mod+t exec --no-startup-id $picom_start ...@@ -132,7 +132,8 @@ bindsym $mod+t exec --no-startup-id $picom_start
bindsym $mod+ctrl+t exec --no-startup-id "killall picom" bindsym $mod+ctrl+t exec --no-startup-id "killall picom"
# tint2 configuration (needs tint2 package) # tint2 configuration (needs tint2 package)
exec --no-startup-id tint2 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) # 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 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) # subscribe to urgent event being selected and set _NET_WM_STATE_FOCUSED (for tint2)
......
#---- Generated by tint2conf 3dd0 ---- #---- Generated by tint2conf 7786 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for # See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options. # full documentation of the configuration options.
#------------------------------------- #-------------------------------------
...@@ -63,7 +63,7 @@ border_width = 2 ...@@ -63,7 +63,7 @@ border_width = 2
border_sides = TBLR border_sides = TBLR
border_content_tint_weight = 0 border_content_tint_weight = 0
background_content_tint_weight = 0 background_content_tint_weight = 0
background_color = #000000 0 background_color = #ed333b 50
border_color = #ed333b 100 border_color = #ed333b 100
background_color_hover = #000000 0 background_color_hover = #000000 0
border_color_hover = #ed333b 100 border_color_hover = #ed333b 100
......
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