mirror of https://github.com/tiyn/dotfiles
parent
bb7b37bb93
commit
6876ac5a72
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
date +" %d %b %H:%M"
|
date +"^b#282828^^c#dfdfdf^ ^d^ %d %b %H:%M"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ "$1" = "amd" ]; then
|
if [ "$1" = "amd" ]; then
|
||||||
sensors | awk '/Tctl/ {print " " $2}'
|
sensors | awk '/Tctl/ {print "^b#282828^^c#dfdfdf^ ^d^ " $2}'
|
||||||
elif [ "$1" = "intel" ]; then
|
elif [ "$1" = "intel" ]; then
|
||||||
sensors | awk '/Core 0/ {print " " $3}'
|
sensors | awk '/Core 0/ {print "^b#282828^^c#dfdfdf^ ^d^ " $3}'
|
||||||
fi
|
fi
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
#
|
#
|
||||||
|
|
||||||
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon=" -%"
|
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon=" ^d^ -%"
|
||||||
|
|
||||||
[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "", int($3 * 100 / 70) "%" }')
|
[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print " ^d^", int($3 * 100 / 70) "%" }')
|
||||||
|
|
||||||
printf "%s %s\n" "$(cat /sys/class/net/e*/operstate | sed "s/down//;s/up//")" "$wifiicon"
|
printf "%s %s\n" "$(cat /sys/class/net/e*/operstate | sed "s/down/^b#282828^^c#dfdfdf^ /;s/up/^b#282828^^c#dfdfdf^ /")" "$wifiicon"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
free -h | awk '/^Mem:/ {print " " $3 "/" $2}'
|
free -h | awk '/^Mem:/ {print "^b#282828^^c#dfdfdf^ ^d^ " $3 "/" $2}'
|
||||||
|
Loading…
Reference in new issue