config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit acfb0265acf29a59400217983fa1586aa4153db3
parent a734d77b126159c29557e24322ec046a00c1fdb7
Author: jacob@thinkpad <jacobouno@protonmail.com>
Date:   Wed,  8 Apr 2020 17:37:20 -0700

remove log

Diffstat:
Mlemonbar/.local/bin/lemon | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lemonbar/.local/bin/lemon b/lemonbar/.local/bin/lemon @@ -1,4 +1,4 @@ -#!/bin/dash +#!/usr/bin/env dash # Jacob Edwards, January to Febuary, 2020 # completly ugly (sourcecode), functianal, lemonbar config. @@ -82,7 +82,7 @@ getdate(){ cpu(){ # I was overcomplecating things, thankyou. - # https://stackoverflow.com/questions/9229333/how-to-get-overall-cpu-usage-e-g-57-on-linux + # https://stackoverflow.com/questions/9229333/how-to-get-overall-cpu-usage-e-g-57-on-linux local cpu="$( ps -A -o pcpu | tail -n +2 | paste -sd+ | bc )" cpu="$( calc "$cpu" / 4 )" # maybe dividing it by treads will make it accurate? @@ -91,7 +91,7 @@ cpu(){ mpd_playing(){ local current="$( mpc status | head -n 2 | tail -n 1 | awk '{print $1}' )" - + if [ "$current" = '[playing]' ] || [ "$current" = '[paused]' ]; then printf "$c_mpd_status$( mpc status | head -n 2 | tail -n 1 | awk '{print $1}' ) " printf "$c_mpd_title$(mpc current | awk -F ' - ' '{print $2}')" @@ -113,7 +113,7 @@ battery(){ elif [ "$status" -eq '1' ]; then printf "${c_battery_prefix}^${c_battery_charging}" fi - + printf "$perc" printf "$c_battery_perc_sign%%" } @@ -139,7 +139,7 @@ if [ "$profile" = 'laptop' ]; then gettime="$( gettime )" ws="$( bspwm_workspace )" memory="$( memory_meg )" - timesince="$( log "$LOG" )" + #timesince="$( rdate "$LOG" | tail -n1)" bat="$( battery )" mpd="$( mpd_playing )" #cpu="$( cpu )"