vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit bcd853f3c2e6b00f572f5ece5112e1b2960554ee
parent 737ca983ad159413411a67c2581771501fec265f
Author: Cem Keylan <cem@ckyln.com>
Date:   Sun, 29 Sep 2019 21:07:40 +0300

replace with slstatus

Diffstat:
D.local/bin/bar.sh | 34----------------------------------
1 file changed, 0 insertions(+), 34 deletions(-)

diff --git a/.local/bin/bar.sh b/.local/bin/bar.sh @@ -1,34 +0,0 @@ -#!/bin/sh - -# VARIABLES -ETHERNET="eno1" -WIRELESS="wlo1" -# enter your wireless or wired device names e.g. eth0 wlp2s0 - -getip() { \ - IP="$(ip a show $1 | grep 'inet ' | cut -d: -f2 | awk '{print $2}')" - [ -z "$IP" ] && IP="N/A" - IP="$1 ${IP}" - printf "$IP\n" -} -network() { \ - WIP="$(getip $WIRELESS)" - EIP="$(getip $ETHERNET)" - SSID="$(iwgetid -r)" - printf "| NET $EIP $SSID $WIP |" -} - -NM=`nightmodecheck` -HOMESIZE=`df -h | grep '/home$' | awk '{print $3}' | sed s/G//`/`df -h | grep '/home$' | awk '{print $2}' | sed s/G/\ GB/` -ROOTSIZE=`df -h | grep '/$' | awk '{print $3}' | sed s/G//`/`df -h | grep '/$' | awk '{print $2}' | sed s/G/\ GB/` -BAT=`cat /sys/class/power_supply/BAT?/capacity` -BATSTATUS=`cat /sys/class/power_supply/BAT?/status` -[ "$BATSTATUS" = "Unknown" ] && BATSTATUS="" -MPDCP="`mpc current`" -HOST=`cat /etc/hostname` -[ -n "$MPDCP" ] && MPDCP="| Now Playing: $MPDCP " -VOL="$(pamixer --get-volume-human)" - - - -xsetroot -name " $USER@$HOST $MPDCP| NM:$NM | /HOME:$HOMESIZE /:$ROOTSIZE `network` VOL: $VOL | BAT:$BAT% $BATSTATUS | `date +%a\ %e\ %b\ %Y\ %H:%M`"