[download]

config/i3/watch

   1 #!/bin/bash
   2 
   3 border=$(i3-msg -t get_config | awk '/default_border / { print $2, $3 }')
   4 floating_border=$(i3-msg -t get_config | awk '/default_floating_border / { print $2, $3 }')
   5 
   6 i3-msg -t subscribe -m '[ "window", "binding" ]' | while read; do
   7     xsetroot -name ''
   8 
   9     i3-msg [tiling]   border $border
  10     i3-msg [floating] border $floating_border
  11 done