dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 1451a8bff074a0b4a7ddf0abb70e3a1a0f4383b0
parent af784a277d5ccba7ccb92290402c9165e97bce26
Author: Anders Damsgaard Christensen <adc@geo.au.dk>
Date:   Sat, 23 Jul 2016 18:50:47 -0700

update clock and date format in bitbar and tmux

Diffstat:
M.tmux.conf | 4++--
Abitbar-plugins/calendar.30s.sh | 2++
Abitbar-plugins/clock.5s.sh | 2++
3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/.tmux.conf b/.tmux.conf @@ -114,8 +114,8 @@ set -g status-left "#[fg=red]#(hostname|sed \"s/\\\\..*$//\") #[fg=green]s:#S #[ #set -g status-right "#[fg=cyan]#(~/bin/battery) #[fg=yellow]#(cat /proc/loadavg|awk '{print $1;}') #[fg=green]%d %b %R" # #set -g status-right "#[fg=cyan]#(~/bin/battery) #[fg=yellow]#(uptime|awk '{print \$NF;}') #[fg=green]%d %b %R" -if-shell 'uname | grep -qi Darwin' "set -g status-right \"#[fg=cyan]#(~/bin/battery-osx) #[fg=red]M: #(find ~/Mail/*/INBOX/new -type f | wc -l | sed 's/ *//') #[fg=yellow]#(uptime|sed 's/.* //') #[fg=green]%d %b %R\"" -if-shell 'uname | grep -qi Linux' "set -g status-right \"#[fg=cyan]#(acpi|sed 's/Battery//; s/0://; s/Discharging//; s/Full, //; s/remaining//; s/ , //; s/Charging, /+/; s/ until charged/ /; s/, / /; s/Unknown //; s/ $//;') #[fg=red]M: #(find ~/Mail/*/INBOX/new -type f | wc -l | sed 's/ *//') #[fg=yellow]#(cat /proc/loadavg|awk '{print $1;}') #[fg=green]%d %b %R\"" +if-shell 'uname | grep -qi Darwin' "set -g status-right \"#[fg=cyan]#(~/bin/battery-osx) #[fg=red]M: #(find ~/Mail/*/INBOX/new -type f | wc -l | sed 's/ *//') #[fg=yellow]#(uptime|sed 's/.* //') #[fg=green]%Y-%m-%d %R\"" +if-shell 'uname | grep -qi Linux' "set -g status-right \"#[fg=cyan]#(acpi|sed 's/Battery//; s/0://; s/Discharging//; s/Full, //; s/remaining//; s/ , //; s/Charging, /+/; s/ until charged/ /; s/, / /; s/Unknown //; s/ $//;') #[fg=red]M: #(find ~/Mail/*/INBOX/new -type f | wc -l | sed 's/ *//') #[fg=yellow]#(cat /proc/loadavg|awk '{print $1;}') #[fg=green]%Y-%m-%d %R\"" set -g status-justify centre #set -g status-bg default #set -g status-fg cyan diff --git a/bitbar-plugins/calendar.30s.sh b/bitbar-plugins/calendar.30s.sh @@ -0,0 +1,2 @@ +#!/bin/bash +echo "$(date +'%Y-%m-%d') | color=#666666" diff --git a/bitbar-plugins/clock.5s.sh b/bitbar-plugins/clock.5s.sh @@ -0,0 +1,2 @@ +#!/bin/bash +date +'%H:%m:%S'