clean 🫠
This commit is contained in:
parent
d3435e53a4
commit
d16174b447
9565 changed files with 0 additions and 1315422 deletions
|
@ -1,159 +0,0 @@
|
|||
#!/bin/sh
|
||||
# colors
|
||||
#source ~/.local/bin/statusbar/themes/sweetmars
|
||||
#source ~/.local/bin/statusbar/themes/dracula
|
||||
#source ~/.local/bin/statusbar/themes/sweetdracula
|
||||
#source ~/.local/bin/statusbar/themes/tomorrow-night
|
||||
source ~/.local/bin/statusbar/themes/tomorrow-dark
|
||||
#source ~/.local/bin/statusbar/themes/tomorrow
|
||||
#source ~/.local/bin/statusbar/themes/vacuous
|
||||
#source ~/.local/bin/statusbar/themes/doom
|
||||
|
||||
interval=0
|
||||
|
||||
# Battery :
|
||||
bat(){
|
||||
for battery in /sys/class/power_supply/BAT?*; do
|
||||
# If non-first battery, print a space separator.
|
||||
[ -n "${capacity+x}" ] && printf " "
|
||||
# Sets up the status and capacity
|
||||
case "$(cat "$battery/status" 2>&1)" in
|
||||
"Full") status=" " ;;
|
||||
"Discharging") status=" " ;;
|
||||
"Charging") status=" " ;;
|
||||
"Not charging") status=" " ;;
|
||||
"Unknown") status=" " ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
capacity="$(cat "$battery/capacity" 2>&1)"
|
||||
# Will make a warn variable if discharging and low
|
||||
[ "$status" = " " ] && [ "$capacity" -le 25 ] && warn=" "
|
||||
# Prints the info
|
||||
printf "%s%s%d%%" "^c$cyan^$status" "$warn" "$capacity"; unset warn
|
||||
done && printf "^d^\\n"
|
||||
}
|
||||
|
||||
# Date && clock :
|
||||
dat(){
|
||||
date="$(date +"%a %d %b %H:%M"| sed 's/ / /g')"
|
||||
#echo -e " $date"
|
||||
echo -e "^c$blue^ $date^d^"
|
||||
|
||||
}
|
||||
|
||||
# Cpu Temp :
|
||||
tmp(){
|
||||
ctmp=$(sensors | awk '/Core 0/ {print$3}' | sed 's/+//')
|
||||
echo -e "^c$red^ $ctmp^d^"
|
||||
}
|
||||
|
||||
# Cpu Usage :
|
||||
cpu(){
|
||||
read cpu a b c previdle rest < /proc/stat
|
||||
prevtotal=$((a+b+c+previdle))
|
||||
sleep 0.5
|
||||
read cpu a b c idle rest < /proc/stat
|
||||
total=$((a+b+c+idle))
|
||||
cpu=$((100*( (total-prevtotal) - (idle-previdle) ) / (total-prevtotal) ))
|
||||
#echo -e " $cpu%"
|
||||
echo -e "^c$cyan^ $cpu%^d^"
|
||||
}
|
||||
|
||||
# Keybord Layout :
|
||||
key(){
|
||||
kb="$(xkb-switch)" || exit 1
|
||||
#echo " $kb"
|
||||
echo -e "^c$green^ $kb^d^"
|
||||
|
||||
}
|
||||
|
||||
# Screen Light :
|
||||
lit(){
|
||||
#lit="$(xbacklight | sed 's/\..*//g')"
|
||||
#echo " $lit%"
|
||||
lit="$(brightnessctl | grep -oP '[^()]+%')"
|
||||
#echo " $lit"
|
||||
echo -e "^c$yellow^ $lit^d^"
|
||||
}
|
||||
|
||||
# Memory :
|
||||
mem(){
|
||||
mem="$(free -h | awk '/^Mem/ { print $3 }' | sed s/i//g)"
|
||||
echo -e "^c$green^ $mem^d^"
|
||||
}
|
||||
|
||||
# Volume :
|
||||
vol(){
|
||||
[ $(pamixer --get-mute) = true ] && echo && exit
|
||||
|
||||
vol="$(pamixer --get-volume)"
|
||||
|
||||
if [ "$vol" -gt "70" ]; then
|
||||
icon=""
|
||||
elif [ "$vol" -gt "30" ]; then
|
||||
icon=""
|
||||
elif [ "$vol" -gt "0" ]; then
|
||||
icon=""
|
||||
else
|
||||
echo "" && exit
|
||||
fi
|
||||
echo "^c$magenta^$icon $vol%^d^"
|
||||
}
|
||||
|
||||
|
||||
net() {
|
||||
connected=$(cat /sys/class/net/e*/operstate 2>/dev/null)
|
||||
if [[ "$connected" =~ "up" ]]; then
|
||||
printf "^c$green^ ^d^%s"
|
||||
elif [[ "$connected" =~ "down" ]]; then
|
||||
check_wifi=$(cat /sys/class/net/wl*/operstate 2>/dev/null)
|
||||
if [[ "$check_wifi" =~ "up" ]]; then
|
||||
printf "^c$green^ ^d^%s"
|
||||
elif [[ "$check_wifi" =~ "down" ]]; then
|
||||
printf "^c$green^睊 ^d^%s"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Network traffic
|
||||
nettrf(){
|
||||
|
||||
update() {
|
||||
sum=0
|
||||
for arg; do
|
||||
read -r i < "$arg"
|
||||
sum=$(( sum + i ))
|
||||
done
|
||||
cache=${XDG_CACHE_HOME:-$HOME/.cache}/${1##*/}
|
||||
[ -f "$cache" ] && read -r old < "$cache" || old=0
|
||||
printf %d\\n "$sum" > "$cache"
|
||||
printf %d\\n $(( sum - old ))
|
||||
}
|
||||
|
||||
rx=$(update /sys/class/net/[ew]*/statistics/rx_bytes)
|
||||
tx=$(update /sys/class/net/[ew]*/statistics/tx_bytes)
|
||||
|
||||
printf "^c$magenta^ %4sB %4sB^d^\\n" $(numfmt --to=iec $rx) $(numfmt --to=iec $tx)
|
||||
}
|
||||
|
||||
# Updates
|
||||
pkg_updates() {
|
||||
#updates=$(xbps-install -un | wc -l) # void
|
||||
updates=$(pacman -Qu | grep -Fcv "[ignored]" | sed "s/^//;s/^0$//g") # arch , needs pacman contrib
|
||||
# updates=$(aptitude search '~U' | wc -l) # apt (ubuntu,debian etc)
|
||||
|
||||
if [ "$updates" == "0" ]; then
|
||||
printf "^c$green^ Fully Updated^d^"
|
||||
else
|
||||
printf "^c$green^ $updates"" updates^d^"
|
||||
fi
|
||||
}
|
||||
while true; do
|
||||
[ $interval = 0 ] || [ $(($interval % 3600)) = 0 ] && updates=$(pkg_updates)
|
||||
interval=$((interval + 1))
|
||||
space=" "
|
||||
range="^c$red^|"
|
||||
|
||||
xsetroot -name "$range$space$updates$space$(nettrf)$space$(tmp)$space$(cpu)$space$(mem)$space$(vol)$space$(lit)$space$(bat)$space$(key)$space$(dat)$space$(net)$range"
|
||||
sleep 0.2
|
||||
done &
|
|
@ -1,161 +0,0 @@
|
|||
#!/bin/sh
|
||||
# colors
|
||||
#source ~/.local/bin/statusbar/themes/sweetmars
|
||||
#source ~/.local/bin/statusbar/themes/dracula
|
||||
#source ~/.local/bin/statusbar/themes/sweetdracula
|
||||
#source ~/.local/bin/statusbar/themes/tomorrow-night
|
||||
source ~/.local/bin/statusbar/themes/tomorrow-dark
|
||||
#source ~/.local/bin/statusbar/themes/tomorrow
|
||||
#source ~/.local/bin/statusbar/themes/vacuous
|
||||
#source ~/.local/bin/statusbar/themes/doom
|
||||
|
||||
|
||||
interval=0
|
||||
|
||||
# Battery :
|
||||
bat(){
|
||||
for battery in /sys/class/power_supply/BAT?*; do
|
||||
# If non-first battery, print a space separator.
|
||||
[ -n "${capacity+x}" ] && printf " "
|
||||
# Sets up the status and capacity
|
||||
case "$(cat "$battery/status" 2>&1)" in
|
||||
"Full") status="" ;;
|
||||
"Discharging") status="" ;;
|
||||
"Charging") status="" ;;
|
||||
"Not charging") status="" ;;
|
||||
"Unknown") status="" ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
capacity="$(cat "$battery/capacity" 2>&1)"
|
||||
# Will make a warn variable if discharging and low
|
||||
[ "$status" = " " ] && [ "$capacity" -le 25 ] && warn=" "
|
||||
# Prints the info
|
||||
printf "%s%s%d%%" "^c$cyan^^c$black^^b$cyan^ $status" "^c$black^^b$cyan^ $warn" "$capacity"; unset warn
|
||||
done && printf " \\n"
|
||||
}
|
||||
|
||||
# Date && clock :
|
||||
dat(){
|
||||
date="$(date +"%a %d %b %H:%M"| sed 's/ / /g')"
|
||||
#echo -e " $date"
|
||||
echo -e "^c$blue^^c$black^^b$blue^ $date "
|
||||
|
||||
}
|
||||
|
||||
# Cpu Temp :
|
||||
tmp(){
|
||||
ctmp=$(sensors | awk '/Core 0/ {print$3}' | sed 's/+//')
|
||||
echo -e "^c$red^^c$black^^b$red^ $ctmp "
|
||||
}
|
||||
|
||||
# Cpu Usage :
|
||||
cpu(){
|
||||
read cpu a b c previdle rest < /proc/stat
|
||||
prevtotal=$((a+b+c+previdle))
|
||||
sleep 0.5
|
||||
read cpu a b c idle rest < /proc/stat
|
||||
total=$((a+b+c+idle))
|
||||
cpu=$((100*( (total-prevtotal) - (idle-previdle) ) / (total-prevtotal) ))
|
||||
#echo -e " $cpu%"
|
||||
echo -e "^c$cyan^^c$black^^b$cyan^ $cpu% "
|
||||
}
|
||||
|
||||
# Keybord Layout :
|
||||
key(){
|
||||
kb="$(xkb-switch)" || exit 1
|
||||
#echo " $kb"
|
||||
echo -e "^c$green^^b$green^^c$black^^b$green^ $kb "
|
||||
|
||||
}
|
||||
|
||||
# Screen Light :
|
||||
lit(){
|
||||
#lit="$(xbacklight | sed 's/\..*//g')"
|
||||
#echo " $lit%"
|
||||
lit="$(brightnessctl | grep -oP '[^()]+%')"
|
||||
#echo " $lit"
|
||||
echo -e "^c$yellow^^b$yellow^^c$black^^b$yellow^ $lit "
|
||||
}
|
||||
|
||||
# Memory :
|
||||
mem(){
|
||||
mem="$(free -h | awk '/^Mem/ { print $3 }' | sed s/i//g)"
|
||||
echo -e "^c$green^^b$green^^c$black^^b$green^ $mem "
|
||||
}
|
||||
|
||||
# Volume :
|
||||
vol(){
|
||||
[ $(pamixer --get-mute) = true ] && echo && exit
|
||||
|
||||
vol="$(pamixer --get-volume)"
|
||||
|
||||
if [ "$vol" -gt "70" ]; then
|
||||
icon=""
|
||||
elif [ "$vol" -gt "30" ]; then
|
||||
icon=""
|
||||
elif [ "$vol" -gt "0" ]; then
|
||||
icon=""
|
||||
else
|
||||
echo "" && exit
|
||||
fi
|
||||
echo "^c$magenta^^b$magenta^^c$black^^b$magenta^ $icon $vol% "
|
||||
}
|
||||
|
||||
|
||||
net() {
|
||||
connected=$(cat /sys/class/net/e*/operstate 2>/dev/null)
|
||||
if [[ "$connected" =~ "up" ]]; then
|
||||
printf "^c$green^^b$green^^c$black^ %s"
|
||||
elif [[ "$connected" =~ "down" ]]; then
|
||||
check_wifi=$(cat /sys/class/net/wl*/operstate 2>/dev/null)
|
||||
if [[ "$check_wifi" =~ "up" ]]; then
|
||||
printf "^b$green^^c$black^ %s"
|
||||
elif [[ "$check_wifi" =~ "down" ]]; then
|
||||
printf "^c$green^^b$green^^c$black^ 睊 %s"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Network traffic
|
||||
nettrf(){
|
||||
|
||||
update() {
|
||||
sum=0
|
||||
for arg; do
|
||||
read -r i < "$arg"
|
||||
sum=$(( sum + i ))
|
||||
done
|
||||
cache=${XDG_CACHE_HOME:-$HOME/.cache}/${1##*/}
|
||||
[ -f "$cache" ] && read -r old < "$cache" || old=0
|
||||
printf %d\\n "$sum" > "$cache"
|
||||
printf %d\\n $(( sum - old ))
|
||||
}
|
||||
|
||||
rx=$(update /sys/class/net/[ew]*/statistics/rx_bytes)
|
||||
tx=$(update /sys/class/net/[ew]*/statistics/tx_bytes)
|
||||
|
||||
printf "^c$magenta^^b$magenta^^c$black^ ^c$black^^b$magenta^ %4sB ^b$magenta^^c$black^ ^c$black^^b$magenta^ %4sB \\n" $(numfmt --to=iec $rx) $(numfmt --to=iec $tx)
|
||||
}
|
||||
|
||||
# Updates
|
||||
pkg_updates() {
|
||||
#updates=$(xbps-install -un | wc -l) # void
|
||||
updates=$(pacman -Qu | grep -Fcv "[ignored]" | sed "s/^//;s/^0$//g") # arch , needs pacman contrib
|
||||
# updates=$(aptitude search '~U' | wc -l) # apt (ubuntu,debian etc)
|
||||
|
||||
if [ "$updates" == "0" ]; then
|
||||
printf "^c$green^^b$green^^c$black^ ^c$green^^b$black^Fully Updated^d^"
|
||||
else
|
||||
printf "^c$green^^b$green^^c$black^ $updates " "^c$green^^b$black^updates ^d^"
|
||||
fi
|
||||
}
|
||||
while true; do
|
||||
[ $interval = 0 ] || [ $(($interval % 3600)) = 0 ] && updates=$(pkg_updates)
|
||||
interval=$((interval + 1))
|
||||
space=" "
|
||||
range="|"
|
||||
|
||||
#xsetroot -name "$updates$(nettrf)$(tmp)$(cpu)$(mem)$(vol)$(lit)$(bat)$(key)$(dat)$(net)"
|
||||
xsetroot -name "$(cpu)$(mem)$(vol)$(lit)$(bat)$(key)$(dat)$(net)"
|
||||
sleep 0.2
|
||||
done &
|
|
@ -1,125 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Battery :
|
||||
bat(){
|
||||
for battery in /sys/class/power_supply/BAT?*; do
|
||||
# If non-first battery, print a space separator.
|
||||
[ -n "${capacity+x}" ] && printf " "
|
||||
# Sets up the status and capacity
|
||||
case "$(cat "$battery/status" 2>&1)" in
|
||||
"Full") status="⚡" ;;
|
||||
"Discharging") status="🔋" ;;
|
||||
"Charging") status="🔌" ;;
|
||||
"Not charging") status="🛑" ;;
|
||||
"Unknown") status="♻️" ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
capacity="$(cat "$battery/capacity" 2>&1)"
|
||||
# Will make a warn variable if discharging and low
|
||||
[ "$status" = "🔋" ] && [ "$capacity" -le 25 ] && warn="❗"
|
||||
# Prints the info
|
||||
printf "%s%s%d%%" "$status" "$warn" "$capacity"; unset warn
|
||||
done && printf "\\n"
|
||||
}
|
||||
|
||||
# Date && clock :
|
||||
dat(){
|
||||
clock=$(date '+%I')
|
||||
case "$clock" in
|
||||
"00") icon="🕛" ;;
|
||||
"01") icon="🕐" ;;
|
||||
"02") icon="🕑" ;;
|
||||
"03") icon="🕒" ;;
|
||||
"04") icon="🕓" ;;
|
||||
"05") icon="🕔" ;;
|
||||
"06") icon="🕕" ;;
|
||||
"07") icon="🕖" ;;
|
||||
"08") icon="🕗" ;;
|
||||
"09") icon="🕘" ;;
|
||||
"10") icon="🕙" ;;
|
||||
"11") icon="🕚" ;;
|
||||
"12") icon="🕛" ;;
|
||||
esac
|
||||
date "+📅%a %d %b %Y|$icon%I:%M%p"
|
||||
}
|
||||
|
||||
# Cpu Temp :
|
||||
tmp(){
|
||||
sensors | awk '/Core 0/ {print "🌡" $3}'
|
||||
}
|
||||
|
||||
# Cpu Usage :
|
||||
cpu(){
|
||||
cpu=$(top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{printf "%02.1f%%" , 100 - $1}')
|
||||
echo -e "💻$cpu"
|
||||
}
|
||||
|
||||
# Keybord Layout :
|
||||
key(){
|
||||
kb="$(xkb-switch)" || exit 1
|
||||
echo "🔤$kb"
|
||||
}
|
||||
|
||||
# Screen Light :
|
||||
lit(){
|
||||
#lit="$(xbacklight | sed 's/\..*//g')"
|
||||
#echo "💡$lit%"
|
||||
lit="$(brightnessctl | grep -oP '[^()]+%')"
|
||||
echo "💡$lit"
|
||||
}
|
||||
|
||||
# Memory :
|
||||
mem(){
|
||||
free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠%2.2fGiB/%2.2fGiB\n", ( $3 / 1024), ($2 / 1024))}'
|
||||
}
|
||||
|
||||
# Volume :
|
||||
vol(){
|
||||
[ $(pamixer --get-mute) = true ] && echo 🔇 && exit
|
||||
|
||||
vol="$(pamixer --get-volume)"
|
||||
|
||||
if [ "$vol" -gt "70" ]; then
|
||||
icon="🔊"
|
||||
elif [ "$vol" -gt "30" ]; then
|
||||
icon="🔉"
|
||||
elif [ "$vol" -gt "0" ]; then
|
||||
icon="🔈"
|
||||
else
|
||||
echo 🔇 && exit
|
||||
fi
|
||||
echo "$icon$vol%"
|
||||
}
|
||||
net(){
|
||||
if grep -xq 'up' /sys/class/net/w*/operstate 2>/dev/null ; then
|
||||
wifiicon="$(awk '/^\s*w/ { print "📶", int($3 * 100 / 70) "% " }' /proc/net/wireless)"
|
||||
elif grep -xq 'down' /sys/class/net/w*/operstate 2>/dev/null ; then
|
||||
grep -xq '0x1003' /sys/class/net/w*/flags && wifiicon="📡 " || wifiicon="❌ "
|
||||
fi
|
||||
|
||||
printf "%s%s%s\n" "$wifiicon" "$(sed "s/down/❎/;s/up/🌐/" /sys/class/net/e*/operstate 2>/dev/null)" "$(sed "s/.*/🔒/" /sys/class/net/tun*/operstate 2>/dev/null)"
|
||||
}
|
||||
nettrf(){
|
||||
|
||||
update() {
|
||||
sum=0
|
||||
for arg; do
|
||||
read -r i < "$arg"
|
||||
sum=$(( sum + i ))
|
||||
done
|
||||
cache=${XDG_CACHE_HOME:-$HOME/.cache}/${1##*/}
|
||||
[ -f "$cache" ] && read -r old < "$cache" || old=0
|
||||
printf %d\\n "$sum" > "$cache"
|
||||
printf %d\\n $(( sum - old ))
|
||||
}
|
||||
|
||||
rx=$(update /sys/class/net/[ew]*/statistics/rx_bytes)
|
||||
tx=$(update /sys/class/net/[ew]*/statistics/tx_bytes)
|
||||
|
||||
printf "🔻%4sB 🔺%4sB\\n" $(numfmt --to=iec $rx) $(numfmt --to=iec $tx)
|
||||
}
|
||||
|
||||
while true; do
|
||||
xsetroot -name "|$(nettrf)|$(net)|$(tmp)|$(cpu)|$(mem)|$(vol)|$(lit)|$(bat)|$(key)|$(dat) |"
|
||||
sleep 0.2
|
||||
done &
|
|
@ -1,110 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Battery :
|
||||
bat(){
|
||||
for battery in /sys/class/power_supply/BAT?*; do
|
||||
# If non-first battery, print a space separator.
|
||||
[ -n "${capacity+x}" ] && printf " "
|
||||
# Sets up the status and capacity
|
||||
case "$(cat "$battery/status" 2>&1)" in
|
||||
"Full") status="" ;;
|
||||
"Discharging") status="" ;;
|
||||
"Charging") status="" ;;
|
||||
"Not charging") status="" ;;
|
||||
"Unknown") status="" ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
capacity="$(cat "$battery/capacity" 2>&1)"
|
||||
# Will make a warn variable if discharging and low
|
||||
[ "$status" = "" ] && [ "$capacity" -le 25 ] && warn=" "
|
||||
# Prints the info
|
||||
printf "%s%s%d%%" "$status" "$warn" "$capacity"; unset warn
|
||||
done && printf "\\n"
|
||||
}
|
||||
|
||||
# Date && clock :
|
||||
dat(){
|
||||
date="$(date +"%a %d %b %H:%M"| sed 's/ / /g')"
|
||||
echo -e " $date"
|
||||
}
|
||||
|
||||
# Cpu Temp :
|
||||
tmp(){
|
||||
sensors | awk '/Core 0/ {print "" $3}'
|
||||
}
|
||||
|
||||
# Cpu Usage :
|
||||
cpu(){
|
||||
read cpu a b c previdle rest < /proc/stat
|
||||
prevtotal=$((a+b+c+previdle))
|
||||
sleep 0.5
|
||||
read cpu a b c idle rest < /proc/stat
|
||||
total=$((a+b+c+idle))
|
||||
cpu=$((100*( (total-prevtotal) - (idle-previdle) ) / (total-prevtotal) ))
|
||||
echo -e " $cpu%"
|
||||
}
|
||||
|
||||
# Keybord Layout :
|
||||
key(){
|
||||
kb="$(xkb-switch)" || exit 1
|
||||
echo " $kb"
|
||||
}
|
||||
|
||||
# Screen Light :
|
||||
lit(){
|
||||
#lit="$(xbacklight | sed 's/\..*//g')"
|
||||
#echo " $lit%"
|
||||
lit="$(brightnessctl | grep -oP '[^()]+%')"
|
||||
echo " $lit"
|
||||
}
|
||||
|
||||
# Memory :
|
||||
mem(){
|
||||
mem="$(free -h | awk '/^Mem/ { print $3 }' | sed s/i//g)"
|
||||
echo -e " $mem"
|
||||
}
|
||||
|
||||
# Volume :
|
||||
vol(){
|
||||
[ $(pamixer --get-mute) = true ] && echo 🔇 && exit
|
||||
|
||||
vol="$(pamixer --get-volume)"
|
||||
|
||||
if [ "$vol" -gt "70" ]; then
|
||||
icon=""
|
||||
elif [ "$vol" -gt "30" ]; then
|
||||
icon=""
|
||||
elif [ "$vol" -gt "0" ]; then
|
||||
icon=""
|
||||
else
|
||||
echo && exit
|
||||
fi
|
||||
echo "$icon $vol%"
|
||||
}
|
||||
|
||||
# Network traffic
|
||||
nettrf(){
|
||||
|
||||
update() {
|
||||
sum=0
|
||||
for arg; do
|
||||
read -r i < "$arg"
|
||||
sum=$(( sum + i ))
|
||||
done
|
||||
cache=${XDG_CACHE_HOME:-$HOME/.cache}/${1##*/}
|
||||
[ -f "$cache" ] && read -r old < "$cache" || old=0
|
||||
printf %d\\n "$sum" > "$cache"
|
||||
printf %d\\n $(( sum - old ))
|
||||
}
|
||||
|
||||
rx=$(update /sys/class/net/[ew]*/statistics/rx_bytes)
|
||||
tx=$(update /sys/class/net/[ew]*/statistics/tx_bytes)
|
||||
|
||||
printf " %4sB %4sB\\n" $(numfmt --to=iec $rx) $(numfmt --to=iec $tx)
|
||||
}
|
||||
|
||||
while true; do
|
||||
|
||||
xsetroot -name "[$(nettrf)][$(tmp)][$(cpu)][$(mem)][$(vol)][$(lit)][$(bat)][$(key)][$(dat)]"
|
||||
sleep 0.2
|
||||
done &
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
# colors
|
||||
|
||||
black=#1c1f24
|
||||
red=#ff6c6b
|
||||
green=#98be65
|
||||
yellow=#da8548
|
||||
blue=#51afef
|
||||
magenta=#c678dd
|
||||
cyan=#5699af
|
||||
white=#202328
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
# colors
|
||||
|
||||
black=#21222c
|
||||
red=#ff5555
|
||||
green=#50fa7b
|
||||
yellow=#f1fa8c
|
||||
blue=#bd93f9
|
||||
magenta=#ff79c6
|
||||
cyan=#8be9fd
|
||||
white=#f8f8f2
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/sh
|
||||
# colors
|
||||
|
||||
black=#1a1e21
|
||||
red=#ff6c6b
|
||||
green=#50fa7b
|
||||
yellow=#f1fa8c
|
||||
blue=#bd93f9
|
||||
magenta=#ff6c6b
|
||||
cyan=#8be9fd
|
||||
white=#f8f8f2
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
# colors
|
||||
|
||||
black=#1a1e21
|
||||
red=#cc241d
|
||||
green=#98971a
|
||||
yellow=#d79921
|
||||
blue=#458588
|
||||
magenta=#b16286
|
||||
cyan=#689d6a
|
||||
white=#a89984
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
# colors
|
||||
|
||||
black=#1D1F21
|
||||
red=#fb4934
|
||||
green=#98971a
|
||||
yellow=#d7992a
|
||||
blue=#458588
|
||||
magenta=#b16286
|
||||
cyan=#689d6a
|
||||
white=#373b41
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
# colors
|
||||
|
||||
black=#1D1F21
|
||||
red=#a54242
|
||||
green=#8c9440
|
||||
yellow=#de935f
|
||||
blue=#5f819d
|
||||
magenta=#85678f
|
||||
cyan=#5e8d87
|
||||
white=#707880
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
# colors
|
||||
|
||||
black=#1d1f21
|
||||
red=#cc6666
|
||||
green=#b5bd68
|
||||
yellow=#e6c547
|
||||
blue=#81a2be
|
||||
magenta=#b294bb
|
||||
cyan=#70c0ba
|
||||
white=#373b41
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
# colors
|
||||
|
||||
black=#202020
|
||||
red=#b91e2e
|
||||
green=#81957c
|
||||
yellow=#f9bb80
|
||||
blue=#356579
|
||||
magenta=#87314e
|
||||
cyan=#0b3452
|
||||
white=#909090
|
Loading…
Add table
Add a link
Reference in a new issue