all repos — dotfiles @ 37e3aaed55e62d4b55e6d68ebcba603cb46a7f80

my *nix dotfiles

bin: add bar script
Anirudh Oppiliappan x@icyphox.sh
Mon, 07 Mar 2022 10:01:20 +0530
commit

37e3aaed55e62d4b55e6d68ebcba603cb46a7f80

parent

ddaf8c92fd60f4bc6da960f978a7bd1b0ad4b219

5 files changed, 18 insertions(+), 16 deletions(-)

jump to
M bin/barbin/bar

@@ -1,11 +1,20 @@

#!/bin/sh +dt() { + date +"%a, %d %b" | tr A-Z a-z +} + +vol() { + v="$(sndioctl -n output.level)" + echo $(echo "$v"*100 / 1 | bc)% +} + +pad="%{015}" + while :; do - vol="$(sndioctl -n output.level)" bat="$(bat -q)" time="$(date +"%H:%M")" - date="$(date.sh)" -# printf '%s\t\t\t\t%s\t\t\t\t%s\t\t\t%s' "$bat" "vol $(echo $vol*100 / 1 | bc)" "$date" "$time" - echo "$(date)" + echo "$pad $(dt) $pad $time %{r}bat $bat %{O14}vol $(vol) $pad" sleep 0.5 -done | ~/code/barito/barito +done | lemonbar-xft -n bar -f 'Input:style=Regular:size=12:antialias=true' -g x30 \ + -F '#f4f4f4' -B '#222'
D bin/date.sh

@@ -1,6 +0,0 @@

-#!/usr/bin/env bash - -date="$(date +"%a, %d %b" | tr A-Z a-z)" - -printf "%s " "$date" -
M home/.cwmrchome/.cwmrc

@@ -53,8 +53,8 @@

# other borderwidth 1 snapdist 10 -ignore barito -gap 0 0 0 0 +ignore bar +gap 30 0 0 0 autogroup 0 barito # colors
M home/.tmux.confhome/.tmux.conf

@@ -69,9 +69,6 @@ set -g window-status-format "#[fg=colour8] #W"

set -g @resurrect-strategy-nvim 'session' set -g status-left-length 100 -set -g status-left "#[fg=colour8]time #[fg=colour15]#(date +"%H:%M") " -set -ag status-left "#[fg=colour8]date #[fg=colour15]#(date.sh) " -set -ag status-left "#[fg=colour8]bat #[fg=colour15]#(~/bin/bat -q) " set -ag status-left "#[fg=colour8]cwd #[fg=colour15]#(prompt -p #{pane_current_path}) " set -ag status-left "#[fg=colour8]#(prompt -gb #{pane_current_path}) " set -ag status-left "#[fg=colour15]#(prompt -gs #{pane_current_path})"
M home/.xsessionhome/.xsession

@@ -42,5 +42,7 @@ }

notifycpu > "$XNOTIFY_FIFO" & +~/bin/bar & + # window manager ~/leet/cwm/cwm