update
This commit is contained in:
5
.local/scripts/9994_ram
Executable file
5
.local/scripts/9994_ram
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
mem="$(free -h | awk '/Mem:/ {print $3 "/" $2}')"
|
||||
|
||||
echo " $mem"
|
5
.local/scripts/9995_cpu
Normal file
5
.local/scripts/9995_cpu
Normal 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
.local/scripts/9996_wifi
Normal file
6
.local/scripts/9996_wifi
Normal 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
.local/scripts/9997_disk
Normal file
6
.local/scripts/9997_disk
Normal 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
.local/scripts/9998_lang
Normal file
5
.local/scripts/9998_lang
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
lang=$(xkblayout-state print %s)
|
||||
|
||||
echo " $lang"
|
6
.local/scripts/9999_date
Normal file
6
.local/scripts/9999_date
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
date=$(date +"%d.%m.%y")
|
||||
time=$(date +"%H:%M:%S")
|
||||
|
||||
echo " $date $time"
|
Reference in New Issue
Block a user