This commit is contained in:
Linux User
2022-08-13 18:10:53 +00:00
parent c3bb83fe14
commit 2db42127d0
11 changed files with 71 additions and 12 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
mem="$(free -h | awk '/Mem:/ {print $3 "/" $2}')"
echo " $mem"
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
usage=$(cat <(grep 'cpu ' /proc/stat) <(sleep 0.3 && grep 'cpu ' /proc/stat) | awk -v RS="" '{print ($13-$2+$15-$4)*100/($13-$2+$15-$4+$16-$5)}' | cut -d'.' -f1)"%"
echo " $usage"
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
power=$(nmcli -f IN-USE,SIGNAL,SSID device wifi | grep "*" | cut -d' ' -f8)
name=$(nmcli -f IN-USE,SIGNAL,SSID device wifi | grep "*" | cut -d' ' -f14)
echo " $name $power"
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
used=$(df -h / | sed -n '1!p' | cut -d' ' -f22)
total=$(df -h / | sed -n '1!p' | cut -d' ' -f16)
echo " $used/$total"
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
lang=$(xkblayout-state print %s)
echo " $lang"
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
date=$(date +"%d.%m.%y")
time=$(date +"%H:%M:%S")
echo " $date  $time"