dot-files

Dot files managed with stow
git clone http://milesalan.com/git/dot-files
Log | Files | Refs | Mirror | README

commit 16758269ec461ef12c438a4bd42d11740f5f586e
parent bcb848b4ea23040200f818c3a389e22db20e112b
Author: mil <miles.sandlar@gmail.com>
Date:   Fri, 21 Jun 2013 20:11:45 -0400

updates to status bar

Diffstat:
M.xinitrc | 10++++++++--
MScripts/X/status-bar | 16+++++++++++-----
2 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/.xinitrc b/.xinitrc @@ -11,6 +11,12 @@ xmodmap ~/.xmodmap & feh --bg-scale ~/.wallpaper.jpg & # setwm -keynav & +if [ -f "/usr/bin/tpb" ]; +then +sudo tpb & +fi & +bar-start & +xbindkeys & dunst & -exec i3 +keynav & +exec foo-wm diff --git a/Scripts/X/status-bar b/Scripts/X/status-bar @@ -95,6 +95,12 @@ loop do rescue stack = [] end + + # Bar Colors + focus = 6 + unfocus = 3 + + stack.each_with_index do |c, i| if c["type"] == "client" then name = %x[xptr-to-title #{c["id"]}].chomp! @@ -103,11 +109,11 @@ loop do end foc = foo("get focus")["node"] if (c["node"] == foc) then - name = name[0..16].fg(6) - name = name + " , ".fg(3) unless c == stack.last + name = name[0..130].fg(focus) + name = name + " , ".fg(unfocus) unless c == stack.last elsif ((i != 0 && foc == stack[i - 1]["node"]) || (stack[i] != stack.last && foc == stack[i + 1]["node"])) then name = name[0..8].fg(1) - name = name + " , ".fg(3) unless c == stack.last + name = name + " , ".fg(unfocus) unless c == stack.last else name = ".".fg(1) end @@ -130,7 +136,7 @@ loop do count = count + 1 if (count > 1) then - sleep 20 - #%x[inotifywait -t 20 /tmp/bar-refresh] + #sleep 20 + %x[inotifywait -t 20 /tmp/bar-refresh] end end